Sha256: a1b07452e6f72cdee47e44575d1bff765fae61cc47ca909ed279712cd46750ae
Contents?: true
Size: 409 Bytes
Versions: 2
Compression:
Stored size: 409 Bytes
Contents
require 'simple_solr/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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple_solr_client-0.1.1 | lib/simple_solr/core/search.rb |
simple_solr_client-0.1.0 | lib/simple_solr/core/search.rb |