-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Like the following example:
class Book < BigRecord::Base
include BigIndex::Resource
column :url, :string
index :url, :string
end
Book.find(:first)
Dec 2, 2009 3:50:00 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/select params={fl=pk_s,type_s_mv,id&qt=standard&wt=ruby&q=type_s_mv:"Book"^0.01&rows=1} hits=1 status=0 QTime=1
=> #<Book attribute:type: 0, id: "581428e4-38aa-44b3-a0dc-e7d3447fada2", attribute:url: "http://www.bigrecord.org/bigrecord-driver/">
Book.find_by_url('http://www.bigrecord.org/bigrecord-driver/')
Dec 2, 2009 3:52:18 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/select params={fl=pk_s,type_s_mv,#BigIndex::IndexField:0x2200a9c_t,id&qt=standard&wt=ruby&q=(url_s:("http_t://www.bigrecord.org/bigrecord-driver/"))+AND+type_s_mv:"Book"^0.01&rows=1} hits=0 status=0 QTime=1
=> nil