Module: ParadeDB::SearchMethods::FacetRelation
- Defined in:
- lib/parade_db/search_methods.rb
Overview
Module to add .facets accessor to relations
Instance Attribute Summary collapse
-
#_paradedb_facet_fields ⇒ Object
Returns the value of attribute _paradedb_facet_fields.
Instance Method Summary collapse
Instance Attribute Details
#_paradedb_facet_fields ⇒ Object
Returns the value of attribute _paradedb_facet_fields.
1101 1102 1103 |
# File 'lib/parade_db/search_methods.rb', line 1101 def _paradedb_facet_fields @_paradedb_facet_fields end |
Instance Method Details
#facets ⇒ Object
1108 1109 1110 1111 |
# File 'lib/parade_db/search_methods.rb', line 1108 def facets validate_facet_query_shape! @_facets_cache ||= extract_facets_from_results end |
#load ⇒ Object
1103 1104 1105 1106 |
# File 'lib/parade_db/search_methods.rb', line 1103 def load(*) validate_facet_query_shape! super end |