Files
lancedb/docs/src/js/classes/MultiMatchQuery.md
Weston Pace 625bab3f21 feat: update to lance 0.25.3b1 (#2294)
<!-- 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>
2025-04-01 06:36:42 -07:00

1.6 KiB

@lancedb/lancedbDocs


@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: string The 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. The boosts array should have the same length as columns. If not provided, all columns will have a default boost of 1.0. If the length of boosts is less than columns, it will be padded with 1.0s.

Returns

MultiMatchQuery

Methods

queryType()

queryType(): FullTextQueryType

Returns

FullTextQueryType

Implementation of

FullTextQuery.queryType


toDict()

toDict(): Record<string, unknown>

Returns

Record<string, unknown>

Implementation of

FullTextQuery.toDict