<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Updated dependency versions for improved performance and compatibility. - **New Features** - Added support for structured full-text search with expanded query types (e.g., match, phrase, boost, multi-match) and flexible input formats. - Introduced a new method to check server support for structural full-text search features. - Enhanced the query system with new classes and interfaces for handling various full-text queries. - Expanded the functionality of existing methods to accept more complex query structures, including updates to method signatures. - **Bug Fixes** - Improved error handling and reporting for full-text search queries. - **Refactor** - Enhanced query processing with streamlined input handling and improved error reporting, ensuring more robust and consistent search results across platforms. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: BubbleCal <bubble-cal@outlook.com> Co-authored-by: BubbleCal <bubble-cal@outlook.com>
1.6 KiB
@lancedb/lancedb • Docs
@lancedb/lancedb / MultiMatchQuery
Class: MultiMatchQuery
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 MultiMatchQuery()
new MultiMatchQuery(
query,
columns,
boosts): MultiMatchQuery
Creates an instance of MultiMatchQuery.
Parameters
-
query:
stringThe text query to search for across multiple columns. -
columns:
string[] An array of column names to search within. -
boosts:
number[] =...(Optional) An array of boost factors corresponding to each column. Default is an array of 1.0 for each column. Theboostsarray should have the same length ascolumns. If not provided, all columns will have a default boost of 1.0. If the length ofboostsis less thancolumns, it will be padded with 1.0s.
Returns
Methods
queryType()
queryType(): FullTextQueryType
Returns
Implementation of
toDict()
toDict(): Record<string, unknown>
Returns
Record<string, unknown>