Class: Ferret::Search::TopFieldDocs
- Defined in:
- lib/ferret/search/top_field_docs.rb
Overview
Expert: Returned by low-level sorted search implementations.
Instance Attribute Summary collapse
-
#fields ⇒ Object
The fields which were used to sort results by.
Attributes inherited from TopDocs
Instance Method Summary collapse
-
#initialize(total_hits, score_docs, fields) ⇒ TopFieldDocs
constructor
Creates one of these objects.
Methods inherited from TopDocs
Constructor Details
#initialize(total_hits, score_docs, fields) ⇒ TopFieldDocs
Creates one of these objects.
- total_hits
-
Total number of hits for the query.
- score_docs
-
The top hits for the query.
- fields
-
The sort criteria used to find the top hits.
12 13 14 15 |
# File 'lib/ferret/search/top_field_docs.rb', line 12 def initialize(total_hits, score_docs, fields) super(total_hits, score_docs) @fields = fields end |
Instance Attribute Details
#fields ⇒ Object
The fields which were used to sort results by.
6 7 8 |
# File 'lib/ferret/search/top_field_docs.rb', line 6 def fields @fields end |