mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-08 04:42:57 +00:00
- operator for match query - slop for phrase query - boolean query <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced support for boolean full-text search queries with AND/OR logic and occurrence conditions. - Added operator options for match and multi-match queries to control term combination logic. - Enabled phrase queries to specify proximity (slop) for flexible phrase matching. - Added new enumerations (`Operator`, `Occur`) and the `BooleanQuery` class for enhanced query expressiveness. - **Bug Fixes** - Improved validation and error handling for invalid operator and occurrence inputs in full-text queries. - **Tests** - Expanded test coverage with new cases for boolean queries and operator-based full-text searches. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: BubbleCal <bubble-cal@outlook.com>
29 lines
426 B
Markdown
29 lines
426 B
Markdown
[**@lancedb/lancedb**](../README.md) • **Docs**
|
|
|
|
***
|
|
|
|
[@lancedb/lancedb](../globals.md) / Occur
|
|
|
|
# Enumeration: Occur
|
|
|
|
Enum representing the occurrence of terms in full-text queries.
|
|
|
|
- `Must`: The term must be present in the document.
|
|
- `Should`: The term should contribute to the document score, but is not required.
|
|
|
|
## Enumeration Members
|
|
|
|
### Must
|
|
|
|
```ts
|
|
Must: "MUST";
|
|
```
|
|
|
|
***
|
|
|
|
### Should
|
|
|
|
```ts
|
|
Should: "SHOULD";
|
|
```
|