Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
6 lines (4 sloc) 233 Bytes
# 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")