Class: Searchr::SolrQuery

Inherits:
Query
  • Object
show all
Defined in:
lib/searchr/solr_query.rb

Instance Attribute Summary

Attributes inherited from Query

#fields_to_query, #num_rows, #query, #start_row

Instance Method Summary collapse

Methods inherited from Query

#base_query_url, #debug_query?, #http_response, #indent?, #query_type, #return_type, #search, #url

Instance Method Details

#query_parametersObject



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/searchr/solr_query.rb', line 7

def query_parameters
  {
      start: start_row,
      rows: num_rows,
      q: query,
      qf: fields_to_query,
      wt: return_type,
      indent: indent?,
      debugQuery: debug_query?,
      defType: query_type,
  }
end

#result_with(http_response) ⇒ Object



3
4
5
# File 'lib/searchr/solr_query.rb', line 3

def result_with(http_response)
  SolrResult.new http_response
end