Skip to content

Instantly share code, notes, and snippets.

@jraczak
Created September 17, 2014 00:02
Show Gist options
  • Save jraczak/2b5562283a5f4fbb7477 to your computer and use it in GitHub Desktop.
Save jraczak/2b5562283a5f4fbb7477 to your computer and use it in GitHub Desktop.
RSolr::Error::Http: RSolr::Error::Http - 400 Bad Request Error: {'responseHeader'=>{'status'=>400,'QTime'=>1,'params'=>{'mm'=>'2','fl'=>'* score','sort'=>'geodist(location_ll,,) asc','start'=>'0','q'=>'steak','qf'=>'name_text^5.0 name_without_punc_text^5.0 category_text^3.5 tips_text','wt'=>'ruby','fq'=>['type:Venue','{!geofilt sfield=location_ll pt=, d=12.427999999999999}'],'rows'=>'30','defType'=>'edismax'}},'error'=>{'msg'=>'sort param could not be parsed as a query, and is not a field that exists in the index: geodist(location_ll,,)','code'=>400}} Request Data: "fq=type%3AVenue&fq=%7B%21geofilt+sfield%3Dlocation_ll+pt%3D%2C+d%3D12.427999999999999%7D&sort=geodist%28location_ll%2C%2C%29+asc&q=steak&fl=%2A+score&qf=name_text%5E5.0+name_wi...rumentation' /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/notifications.rb:123:in `block in instrument' /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/notifications.rb:123:in `instrument' /app/vendor/bundle/ruby/1.9.1/gems/sunspot_rails-2.1.0/lib/sunspot/rails/solr_instrumentation.rb:15:in `send_and_receive_with_as_instrumentation' (eval):2:in `post' /app/vendor/bundle/ruby/1.9.1/gems/sunspot-2.1.0/lib/sunspot/search/abstract_search.rb:45:in `execute' /app/vendor/bundle/ruby/1.9.1/gems/sunspot_rails-2.1.0/lib/sunspot/rails/searchable.rb:344:in `solr_execute_search'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment