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.
1082 1083 1084 |
# File 'lib/parade_db/search_methods.rb', line 1082 def _paradedb_facet_fields @_paradedb_facet_fields end |
Instance Method Details
#facets ⇒ Object
1089 1090 1091 1092 |
# File 'lib/parade_db/search_methods.rb', line 1089 def facets validate_facet_query_shape! @_facets_cache ||= extract_facets_from_results end |
#load ⇒ Object
1084 1085 1086 1087 |
# File 'lib/parade_db/search_methods.rb', line 1084 def load(*) validate_facet_query_shape! super end |