Skip to content

@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,
   options?): 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.

  • options? Optional parameters for the multi-match query.

    • boosts: An array of boost factors for each column (default is 1.0 for all).
  • options.boosts?: number[]

Returns

MultiMatchQuery

Methods

queryType()

queryType(): FullTextQueryType

The type of the full-text query.

Returns

FullTextQueryType

Implementation of

FullTextQuery.queryType