@lancedb/lancedb • Docs
@lancedb/lancedb / 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¶
Constructors¶
new PhraseQuery()¶
Creates an instance of PhraseQuery.
Parameters¶
-
query:
stringThe phrase to search for in the specified column. -
column:
stringThe name of the column to search within. -
options? Optional parameters for the phrase query.
slop: The maximum number of intervening unmatched positions allowed between words in the phrase (default is 0).
-
options.slop?:
number
Returns¶
Methods¶
queryType()¶
The type of the full-text query.