Couchbase C++ SDK 1.0.2 (rev. 51f4775)
|
Base class for full text search queries. More...
#include <couchbase/search_query.hxx>
Public Member Functions | |
virtual | ~search_query ()=default |
template<typename derived_query = search_query, std::enable_if_t< std::is_base_of_v< search_query, derived_query >, bool > = true> | |
auto | boost (double boost) -> derived_query & |
The boost parameter is used to increase the relative weight of a clause (with a boost greater than 1) or decrease the relative weight (with a boost between 0 and 1). | |
virtual auto | encode () const -> encoded_search_query=0 |
Protected Member Functions | |
search_query ()=default | |
Protected Attributes | |
std::optional< double > | boost_ {} |
Base class for full text search queries.
|
virtualdefault |
|
protecteddefault |
|
inline |
The boost parameter is used to increase the relative weight of a clause (with a boost greater than 1) or decrease the relative weight (with a boost between 0 and 1).
boost | boost value |
derived_query | by default it returns this as search_query, but it can also down-cast to derived query class. |
|
nodiscardpure virtual |
Implemented in boolean_field_query, boolean_query, conjunction_query, date_range_query, disjunction_query, doc_id_query, geo_bounding_box_query, geo_distance_query, geo_polygon_query, match_all_query, match_none_query, match_phrase_query, match_query, numeric_range_query, phrase_query, prefix_query, query_string_query, regexp_query, term_query, term_range_query, and wildcard_query.
|
protected |