Skip to content

@lancedb/lancedb β€’ Docs


@lancedb/lancedb / BooleanQuery

Class: BooleanQuery

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 BooleanQuery()

new BooleanQuery(queries): BooleanQuery

Creates an instance of BooleanQuery.

Parameters

  • queries: [Occur, FullTextQuery][[`Occur`](../enumerations/Occur.md), [`FullTextQuery`](../interfaces/FullTextQuery.md)] An array of (Occur, FullTextQuery objects) to combine. Occur specifies whether the query must match, or should match.

Returns

BooleanQuery

Methods

queryType()

queryType(): FullTextQueryType

The type of the full-text query.

Returns

FullTextQueryType

Implementation of

FullTextQuery.queryType