mirror of
https://github.com/lancedb/lancedb.git
synced 2026-05-16 03:20:40 +00:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced full-text search capabilities with support for phrase queries, fuzzy matching, boosting, and multi-column matching. - Search methods now accept full-text query objects directly, improving query flexibility and precision. - Python and JavaScript SDKs updated to handle full-text queries seamlessly, including async search support. - **Tests** - Added comprehensive tests covering fuzzy search, phrase search, and boosted queries to ensure robust full-text search functionality. - **Documentation** - Updated query class documentation to reflect new constructor options and removal of deprecated methods for clarity and simplicity. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: BubbleCal <bubble-cal@outlook.com>
56 lines
1.0 KiB
Markdown
56 lines
1.0 KiB
Markdown
[**@lancedb/lancedb**](../README.md) • **Docs**
|
|
|
|
***
|
|
|
|
[@lancedb/lancedb](../globals.md) / PhraseQuery
|
|
|
|
# Class: PhraseQuery
|
|
|
|
Represents a full-text query interface.
|
|
This interface defines the structure and behavior for full-text queries,
|
|
including methods to retrieve the query type and convert the query to a dictionary format.
|
|
|
|
## Implements
|
|
|
|
- [`FullTextQuery`](../interfaces/FullTextQuery.md)
|
|
|
|
## Constructors
|
|
|
|
### new PhraseQuery()
|
|
|
|
```ts
|
|
new PhraseQuery(query, column): PhraseQuery
|
|
```
|
|
|
|
Creates an instance of `PhraseQuery`.
|
|
|
|
#### Parameters
|
|
|
|
* **query**: `string`
|
|
The phrase to search for in the specified column.
|
|
|
|
* **column**: `string`
|
|
The name of the column to search within.
|
|
|
|
#### Returns
|
|
|
|
[`PhraseQuery`](PhraseQuery.md)
|
|
|
|
## Methods
|
|
|
|
### queryType()
|
|
|
|
```ts
|
|
queryType(): FullTextQueryType
|
|
```
|
|
|
|
The type of the full-text query.
|
|
|
|
#### Returns
|
|
|
|
[`FullTextQueryType`](../enumerations/FullTextQueryType.md)
|
|
|
|
#### Implementation of
|
|
|
|
[`FullTextQuery`](../interfaces/FullTextQuery.md).[`queryType`](../interfaces/FullTextQuery.md#querytype)
|