Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

6 lines (4 sloc) 0.233 kB
# TODO rework text_for_solr to remove non-word characters
event = Event.find(:first)
query = SolrQuery.new{Fuzzy(event.text_for_solr)}.to_s.gsub(/[^\w\s]/, ' ')
rs = Event.find_by_solr(query, :scores => true, :order => "score asc")
Jump to Line
Something went wrong with that request. Please try again.