module SimpleSolrClient::Core::Search
Public Instance Methods
all()
click to toggle source
# File lib/simple_solr_client/core/search.rb, line 12 def all fv_search('*', '*') end
fv_search(field, value)
click to toggle source
# File lib/simple_solr_client/core/search.rb, line 5 def fv_search(field, value) v = value v = SimpleSolrClient.lucene_escape Array(value).join(' ') unless v == '*' kv = "#{field}:(#{v})" get('select', {:q => kv}, SimpleSolrClient::Response::QueryResponse) end
id(i)
click to toggle source
# File lib/simple_solr_client/core/search.rb, line 16 def id(i) fv_search('id', i).first end