mirror of
https://github.com/lancedb/lancedb.git
synced 2025-12-27 15:12:53 +00:00
<!-- 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.4 KiB
1.4 KiB
@lancedb/lancedb • Docs
@lancedb/lancedb / BoostQuery
Class: BoostQuery
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 BoostQuery()
new BoostQuery(
positive,
negative,
negativeBoost): BoostQuery
Creates an instance of BoostQuery.
Parameters
-
positive:
FullTextQueryThe positive query that boosts the relevance score. -
negative:
FullTextQueryThe negative query that reduces the relevance score. -
negativeBoost:
numberThe factor by which the negative query reduces the score.
Returns
Methods
queryType()
queryType(): FullTextQueryType
Returns
Implementation of
toDict()
toDict(): Record<string, unknown>
Returns
Record<string, unknown>