NOTE: The recommended way to use facet refinement is to use the token
string. Each FacetResult will have a token that is acceptable instead of this
class. To provide manual FacetRefinement, an instance of this class can be
passed to SearchOptions.
NOTE: that either value or facet_range should be set but not both.
Example: Request for a range refinement for a numeric facet:
FacetRefinement(name='rating', facet_range=FacetRange(start=1.0,end=2.5))
Args
name
The name of the facet.
value
Value of the facet.
facet_range
A FacetRange to refine facet based on a range.
Raises
TypeError
If any of the parameters have invalid types, or an unknown
attribute is passed.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[],[],null,[]]