Skip to content

Building queries by hand

sujal edited this page Apr 19, 2012 · 1 revision

While we wait for official documentation on this, here's an option that will work:

Post.search do
  adjust_solr_params do |params|
    params[:q] = "{!lucene q.op=AND df=title} bob"
  end
end