Module: Pacer::Filter::ExternalIndexQuery
- Defined in:
- lib/pacer-titan/external_index_query.rb
Instance Attribute Summary collapse
-
#index_name ⇒ Object
Returns the value of attribute index_name.
-
#properties ⇒ Object
Returns the value of attribute properties.
-
#query ⇒ Object
Returns the value of attribute query.
-
#top ⇒ Object
Returns the value of attribute top.
Instance Method Summary collapse
Instance Attribute Details
#index_name ⇒ Object
Returns the value of attribute index_name.
23 24 25 |
# File 'lib/pacer-titan/external_index_query.rb', line 23 def index_name @index_name end |
#properties ⇒ Object
Returns the value of attribute properties.
23 24 25 |
# File 'lib/pacer-titan/external_index_query.rb', line 23 def properties @properties end |
#query ⇒ Object
Returns the value of attribute query.
23 24 25 |
# File 'lib/pacer-titan/external_index_query.rb', line 23 def query @query end |
#top ⇒ Object
Returns the value of attribute top.
23 24 25 |
# File 'lib/pacer-titan/external_index_query.rb', line 23 def top @top end |
Instance Method Details
#count ⇒ Object
30 31 32 |
# File 'lib/pacer-titan/external_index_query.rb', line 30 def count query_result.count end |
#top_hits(n) ⇒ Object
25 26 27 28 |
# File 'lib/pacer-titan/external_index_query.rb', line 25 def top_hits(n) self.top = n self end |