Lance C/C++ Bindings
C ABI and header-only C++ RAII wrappers for the Lance columnar data format
Loading...
Searching...
No Matches
lance::FtsQuery Class Reference

#include <lance/detail/declarations.hpp>

Public Member Functions

 FtsQuery (FtsQuery &&) noexcept=default
 
FtsQuery & operator= (FtsQuery &&) noexcept=default
 
 FtsQuery (const FtsQuery &)=delete
 
FtsQuery & operator= (const FtsQuery &)=delete
 
const LanceFtsQuery * c_handle () const
 

Static Public Member Functions

static FtsQuery match (const std::string &terms, std::optional< std::string > column=std::nullopt, const FtsMatchOptions &options={})
 
static FtsQuery phrase (const std::string &terms, std::optional< std::string > column=std::nullopt, const FtsPhraseOptions &options={})
 
static FtsQuery boolean (const std::vector< std::pair< FtsOccur, const FtsQuery * > > &clauses)
 
static FtsQuery boost (const FtsQuery &positive, const FtsQuery &negative, const FtsBoostOptions &options={})
 
static FtsQuery multi_match (const std::string &terms, const std::vector< std::string > &columns, const FtsMultiMatchOptions &options={})
 
static FtsQuery combined_fields (const std::string &terms, const std::vector< std::string > &columns, const FtsCombinedFieldsOptions &options={})
 

Detailed Description

Immutable full-text query value. Composite factories copy their child values, and Scanner::full_text_search snapshots the tree, so handles may be destroyed before the scan runs.

Definition at line 2186 of file declarations.hpp.

Constructor & Destructor Documentation

◆ FtsQuery() [1/2]

lance::FtsQuery::FtsQuery ( FtsQuery && )
defaultnoexcept

◆ FtsQuery() [2/2]

lance::FtsQuery::FtsQuery ( const FtsQuery & )
delete

Member Function Documentation

◆ boolean()

static FtsQuery lance::FtsQuery::boolean ( const std::vector< std::pair< FtsOccur, const FtsQuery * > > & clauses)
static

Boolean query. An empty clause list is allowed here; scan planning rejects a tree without a positive clause.

◆ boost()

static FtsQuery lance::FtsQuery::boost ( const FtsQuery & positive,
const FtsQuery & negative,
const FtsBoostOptions & options = {} )
static

Boost (boosting) query: the negative child's score is multiplied by negative_boost and subtracted from the positive child's score.

◆ c_handle()

const LanceFtsQuery * lance::FtsQuery::c_handle ( ) const

◆ combined_fields()

static FtsQuery lance::FtsQuery::combined_fields ( const std::string & terms,
const std::vector< std::string > & columns,
const FtsCombinedFieldsOptions & options = {} )
static

CombinedFields (BM25F) query: blends term statistics across all target columns.

◆ match()

static FtsQuery lance::FtsQuery::match ( const std::string & terms,
std::optional< std::string > column = std::nullopt,
const FtsMatchOptions & options = {} )
static

Match query. A null column lets scan planning resolve the indexed columns.

◆ multi_match()

static FtsQuery lance::FtsQuery::multi_match ( const std::string & terms,
const std::vector< std::string > & columns,
const FtsMultiMatchOptions & options = {} )
static

MultiMatch query: scores each field independently and keeps the maximum field score.

◆ operator=() [1/2]

FtsQuery & lance::FtsQuery::operator= ( const FtsQuery & )
delete

◆ operator=() [2/2]

FtsQuery & lance::FtsQuery::operator= ( FtsQuery && )
defaultnoexcept

◆ phrase()

static FtsQuery lance::FtsQuery::phrase ( const std::string & terms,
std::optional< std::string > column = std::nullopt,
const FtsPhraseOptions & options = {} )
static

Phrase query. A null column lets scan planning resolve the indexed columns.


The documentation for this class was generated from the following file: