Skip to content

Instantly share code, notes, and snippets.

@sagarbommidi
Created July 26, 2016 14:45
Show Gist options
  • Save sagarbommidi/deff3e6db1322443482d4d0a360975c5 to your computer and use it in GitHub Desktop.
Save sagarbommidi/deff3e6db1322443482d4d0a360975c5 to your computer and use it in GitHub Desktop.
D, [2016-07-26T20:14:20.297579 #48336] DEBUG -- : SOLR Request (7.3ms) [ path=select parameters={fq: ["type:Artist", "({!join from=artist_id_i to=id_i}show_name_s:Sample OR {!join from=artist_id_i to=id_i}show_time_d:[* TO 2016-05-20T21:00:00Z])"], start: 0, rows: 30, q: "*:*"} ]
RSolr::Error::Http: RSolr::Error::Http - 400 Bad Request
Error: 'org.apache.solr.search.SyntaxError: Cannot parse \'show_time_d:[*\': Encountered "<EOF>" at line 1, column 14.
URI: http://localhost:8982/solr/development/select?wt=ruby
Request Headers: {"Content-Type"=>"application/x-www-form-urlencoded; charset=UTF-8"}
Request Data: "fq=type%3AArtist&fq=%28%7B%21join+from%3Dartist_id_i+to%3Did_i%7Dshow_name_s%3ASample+OR+%7B%21join+from%3Dartist_id_i+to%3Did_i%7Dshow_time_d%3A%5B*+TO+2016%5C-05%5C-20T21%5C%3A00%5C%3A00Z%5D%29&start=0&rows=30&q=*%3A*"
Backtrace: /Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/rsolr-1.1.1/lib/rsolr/client.rb:288:in `adapt_response'
/Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/rsolr-1.1.1/lib/rsolr/client.rb:189:in `execute'
/Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/rsolr-1.1.1/lib/rsolr/client.rb:175:in `send_and_receive'
/Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/sunspot_rails-2.2.5/lib/sunspot/rails/solr_instrumentation.rb:16:in `block in send_and_receive_with_as_instrumentation'
/Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument'
/Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument'
/Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/sunspot_rails-2.2.5/lib/sunspot/rails/solr_instrumentation.rb:15:in `send_and_receive_with_as_instrumentation'
(eval):2:in `post'
/Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/sunspot-2.2.5/lib/sunspot/search/abstract_search.rb:49:in `execute'
/Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/sunspot_rails-2.2.5/lib/sunspot/rails/searchable.rb:389:in `solr_execute_search'
from /Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/rsolr-1.1.1/lib/rsolr/client.rb:288:in `adapt_response'
from /Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/rsolr-1.1.1/lib/rsolr/client.rb:189:in `execute'
from /Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/rsolr-1.1.1/lib/rsolr/client.rb:175:in `send_and_receive'
from /Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/sunspot_rails-2.2.5/lib/sunspot/rails/solr_instrumentation.rb:16:in `block in send_and_receive_with_as_instrumentation'
from /Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument'
from /Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
from /Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument'
from /Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/sunspot_rails-2.2.5/lib/sunspot/rails/solr_instrumentation.rb:15:in `send_and_receive_with_as_instrumentation'
from (eval):2:in `post'
from /Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/sunspot-2.2.5/lib/sunspot/search/abstract_search.rb:49:in `execute'
from /Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/sunspot_rails-2.2.5/lib/sunspot/rails/searchable.rb:389:in `solr_execute_search'
from /Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/sunspot_rails-2.2.5/lib/sunspot/rails/searchable.rb:165:in `solr_search'
from /Users/sagarb/workspace/GroupTicketing-Backend/app/models/artist.rb:19:in `res'
from (irb):1
from /Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/railties-4.2.4/lib/rails/commands/console.rb:110:in `start'
from /Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/railties-4.2.4/lib/rails/commands/console.rb:9:in `start'
from /Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:68:in `console'
from /Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/railties-4.2.4/lib/rails/commands.rb:17:in `<top (required)>'
from /Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'
from /Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `block in require'
from /Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'
from /Users/sagarb/workspace/GroupTicketing-Backend/bin/rails:9:in `<top (required)>'
from /Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:268:in `load'
from /Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:268:in `block in load'
from /Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Users/sagarb/.rvm/gems/ruby-2.2.2@magnifi_gt/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:268:in `load'
from /Users/sagarb/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/sagarb/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment