Class: Solr::Query::Request
- Inherits:
-
Object
- Object
- Solr::Query::Request
- Defined in:
- lib/solr/query/request.rb,
lib/solr/query/request/facet.rb,
lib/solr/query/request/filter.rb,
lib/solr/query/request/sorting.rb,
lib/solr/query/request/boosting.rb,
lib/solr/query/request/grouping.rb,
lib/solr/query/request/or_filter.rb,
lib/solr/query/request/and_filter.rb,
lib/solr/query/request/field_list.rb,
lib/solr/query/request/geo_filter.rb,
lib/solr/query/request/spellcheck.rb,
lib/solr/query/request/sorting/field.rb,
lib/solr/query/request/boost_magnitude.rb,
lib/solr/query/request/edismax_adapter.rb,
lib/solr/query/request/field_with_boost.rb,
lib/solr/query/request/sorting/function.rb,
lib/solr/query/request/boosting/geodist_function.rb,
lib/solr/query/request/boosting/ln_function_boost.rb,
lib/solr/query/request/boosting/scale_function_boost.rb,
lib/solr/query/request/boosting/exists_boost_function.rb,
lib/solr/query/request/boosting/phrase_proximity_boost.rb,
lib/solr/query/request/boosting/dictionary_boost_function.rb,
lib/solr/query/request/boosting/ranking_field_boost_function.rb,
lib/solr/query/request/boosting/field_value_match_boost_function.rb,
lib/solr/query/request/boosting/recent_field_value_boost_function.rb,
lib/solr/query/request/boosting/field_value_less_than_boost_function.rb,
lib/solr/query/request/boosting/numeric_field_value_match_boost_function.rb,
lib/solr/query/request/boosting/textual_field_value_match_boost_function.rb
Defined Under Namespace
Modules: BoostMagnitude Classes: AndFilter, Boosting, EdismaxAdapter, Facet, FieldList, FieldWithBoost, Filter, GeoFilter, Grouping, OrFilter, Sorting, Spellcheck
Instance Attribute Summary collapse
-
#boosting ⇒ Object
Returns the value of attribute boosting.
-
#debug_mode ⇒ Object
Returns the value of attribute debug_mode.
-
#facets ⇒ Object
Returns the value of attribute facets.
-
#field_list ⇒ Object
Returns the value of attribute field_list.
-
#filters ⇒ Object
Returns the value of attribute filters.
- #grouping ⇒ Object
-
#limit_docs_by_field ⇒ Object
Returns the value of attribute limit_docs_by_field.
-
#phrase_slop ⇒ Object
Returns the value of attribute phrase_slop.
-
#query_fields ⇒ Object
Returns the value of attribute query_fields.
-
#query_operator ⇒ Object
Returns the value of attribute query_operator.
-
#search_term ⇒ Object
readonly
Returns the value of attribute search_term.
- #sorting ⇒ Object
-
#spellcheck ⇒ Object
Returns the value of attribute spellcheck.
Instance Method Summary collapse
-
#initialize(search_term:, query_fields: [], field_list: Solr::Query::Request::FieldList.new, filters: []) ⇒ Request
constructor
A new instance of Request.
- #run(page: 1, page_size: 10) ⇒ Object
- #to_h ⇒ Object
Constructor Details
#initialize(search_term:, query_fields: [], field_list: Solr::Query::Request::FieldList.new, filters: []) ⇒ Request
Returns a new instance of Request.
26 27 28 29 30 31 |
# File 'lib/solr/query/request.rb', line 26 def initialize(search_term:, query_fields: [], field_list: Solr::Query::Request::FieldList.new, filters: []) @search_term = search_term @query_fields = query_fields @field_list = field_list @filters = filters end |
Instance Attribute Details
#boosting ⇒ Object
Returns the value of attribute boosting.
22 23 24 |
# File 'lib/solr/query/request.rb', line 22 def boosting @boosting end |
#debug_mode ⇒ Object
Returns the value of attribute debug_mode.
22 23 24 |
# File 'lib/solr/query/request.rb', line 22 def debug_mode @debug_mode end |
#facets ⇒ Object
Returns the value of attribute facets.
22 23 24 |
# File 'lib/solr/query/request.rb', line 22 def facets @facets end |
#field_list ⇒ Object
Returns the value of attribute field_list.
22 23 24 |
# File 'lib/solr/query/request.rb', line 22 def field_list @field_list end |
#filters ⇒ Object
Returns the value of attribute filters.
22 23 24 |
# File 'lib/solr/query/request.rb', line 22 def filters @filters end |
#grouping ⇒ Object
37 38 39 |
# File 'lib/solr/query/request.rb', line 37 def grouping @grouping ||= Solr::Query::Request::Grouping.none end |
#limit_docs_by_field ⇒ Object
Returns the value of attribute limit_docs_by_field.
22 23 24 |
# File 'lib/solr/query/request.rb', line 22 def limit_docs_by_field @limit_docs_by_field end |
#phrase_slop ⇒ Object
Returns the value of attribute phrase_slop.
22 23 24 |
# File 'lib/solr/query/request.rb', line 22 def phrase_slop @phrase_slop end |
#query_fields ⇒ Object
Returns the value of attribute query_fields.
22 23 24 |
# File 'lib/solr/query/request.rb', line 22 def query_fields @query_fields end |
#query_operator ⇒ Object
Returns the value of attribute query_operator.
22 23 24 |
# File 'lib/solr/query/request.rb', line 22 def query_operator @query_operator end |
#search_term ⇒ Object (readonly)
Returns the value of attribute search_term.
21 22 23 |
# File 'lib/solr/query/request.rb', line 21 def search_term @search_term end |
#sorting ⇒ Object
41 42 43 |
# File 'lib/solr/query/request.rb', line 41 def sorting @sorting ||= Solr::Query::Request::Sorting.none end |
#spellcheck ⇒ Object
Returns the value of attribute spellcheck.
22 23 24 |
# File 'lib/solr/query/request.rb', line 22 def spellcheck @spellcheck end |