Couchbase C++ SDK 1.0.4 (rev. 5355b0f)
Loading...
Searching...
No Matches
search_facet Class Referenceabstract

Base class for full text facets of search queries. More...

#include <couchbase/search_facet.hxx>

Inheritance diagram for search_facet:
Inheritance graph

Public Member Functions

virtual ~search_facet ()=default
 
virtual auto encode () const -> encoded_search_facet=0
 

Protected Member Functions

 search_facet (std::string field, std::uint32_t size)
 
 search_facet (std::string field)
 

Protected Attributes

std::string field_
 
std::optional< std::uint32_t > size_ {}
 

Detailed Description

Base class for full text facets of search queries.

Constructor & Destructor Documentation

◆ ~search_facet()

virtual ~search_facet ( )
virtualdefault

◆ search_facet() [1/2]

search_facet ( std::string field,
std::uint32_t size )
inlineprotected

◆ search_facet() [2/2]

search_facet ( std::string field)
inlineprotected

Member Function Documentation

◆ encode()

virtual auto encode ( ) const -> encoded_search_facet
nodiscardpure virtual
Returns
encoded representation of the search facet.
Since
1.0.0
Internal
Internal interface

Implemented in date_range_facet, numeric_range_facet, and term_facet.

Member Data Documentation

◆ field_

std::string field_
protected

◆ size_

std::optional<std::uint32_t> size_ {}
protected

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