Sha256: cdfd6d28de462d20cfb4e8965fa17d93b74d33884d6243c80b59cc61a8eb7416
Contents?: true
Size: 416 Bytes
Versions: 3
Compression:
Stored size: 416 Bytes
Contents
require 'simple_solr_client/response/query_response' module SimpleSolrClient::Core::Search 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 def all fv_search('*', '*') end def id(i) fv_search('id', i).first end end
Version data entries
3 entries across 3 versions & 1 rubygems