Skip to content

Instantly share code, notes, and snippets.

@mark-dce
Created June 16, 2017 21:21
Show Gist options
  • Save mark-dce/d220c26c8c9f6a2f2d4fa8319f04907b to your computer and use it in GitHub Desktop.
Save mark-dce/d220c26c8c9f6a2f2d4fa8319f04907b to your computer and use it in GitHub Desktop.
Blacklight Request Error
Blacklight::Exceptions::InvalidRequest in CatalogController#index
RSolr::Error::Http - 400 Bad Request Error: {"responseHeader":{"status":400,"QTime":6,"params":{"facet.field":["names_sim","year_sim","subject_sim","object_type_sim","deposit_method_ssi","qrStatus_sim"],"qt":"search","qf":"id creator_tesim title_tesim subject_tesim description_tesim identifier_tesim alternative_tesim contributor_tesim abstract_tesim toc_tesim publisher_tesim source_tesim date_tesim date_created_tesim date_copyrighted_tesim date_submitted_tesim date_accepted_tesim date_issued_tesim date_available_tesim date_modified_tesim language_tesim type_tesim format_tesim extent_tesim medium_tesim persname_tesim corpname_tesim geogname_tesim genre_tesim provenance_tesim rights_tesim access_rights_tesim rights_holder_tesim license_tesim replaces_tesim isReplacedBy_tesim hasFormat_tesim isFormatOf_tesim hasPart_tesim isPartOf_tesim accrualPolicy_tesim audience_tesim references_tesim spatial_tesim bibliographic_citation_tesim temporal_tesim funder_tesim resolution_tesim bitdepth_tesim colorspace_tesim filesize_tesim steward_tesim name_tesim comment_tesim retentionPeriod_tesim displays_ssim embargo_tesim status_tesim startDate_tesim expDate_tesim qrStatus_tesim rejectionReason_tesim note_tesim object_type_ssim","fq":["({!terms f=edit_access_group_ssim}public,registered) OR ({!terms f=discover_access_group_ssim}public,registered) OR ({!terms f=read_access_group_ssim}public,registered) OR edit_access_person_ssim:jumbo@dce.com OR discover_access_person_ssim:jumbo@dce.com OR read_access_person_ssim:jumbo@dce.com","{!terms f=has_model_ssim}TuftsVideo,TuftsTei,TuftsRcr,TuftsPdf,TuftsImage,TuftsEad,TuftsAudio,TuftsGenericObject,TuftsVotingRecord,Work,Collection","-suppressed_bsi:true"],"sort":"score desc, system_create_dtsi desc, title_si asc","rows":"10","wt":"json"}},"error":{"metadata":["error-class","org.apache.solr.common.SolrException","root-error-class","org.apache.solr.common.SolrException"],"msg":"sort param field can't be found: system_create_dtsi","code":400}} URI: http://127.0.0.1:8983/solr/hydra-development/select?wt=json&qt=search&facet.field=names_sim&facet.field=year_sim&facet.field=subject_sim&facet.field=object_type_sim&facet.field=deposit_method_ssi&facet.field=qrStatus_sim&&&fq=%28%7B%21terms+f%3Dedit_access_group_ssim%7Dpublic%2Cregistered%29+OR+%28%7B%21terms+f%3Ddiscover_access_group_ssim%7Dpublic%2Cregistered%29+OR+%28%7B%21terms+f%3Dread_access_group_ssim%7Dpublic%2Cregistered%29+OR+edit_access_person_ssim%3Ajumbo%40dce.com+OR+discover_access_person_ssim%3Ajumbo%40dce.com+OR+read_access_person_ssim%3Ajumbo%40dce.com&fq=%7B%21terms+f%3Dhas_model_ssim%7DTuftsVideo%2CTuftsTei%2CTuftsRcr%2CTuftsPdf%2CTuftsImage%2CTuftsEad%2CTuftsAudio%2CTuftsGenericObject%2CTuftsVotingRecord%2CWork%2CCollection&fq=-suppressed_bsi%3Atrue&&qf=id+creator_tesim+title_tesim+subject_tesim+description_tesim+identifier_tesim+alternative_tesim+contributor_tesim+abstract_tesim+toc_tesim+publisher_tesim+source_tesim+date_tesim+date_created_tesim+date_copyrighted_tesim+date_submitted_tesim+date_accepted_tesim+date_issued_tesim+date_available_tesim+date_modified_tesim+language_tesim+type_tesim+format_tesim+extent_tesim+medium_tesim+persname_tesim+corpname_tesim+geogname_tesim+genre_tesim+provenance_tesim+rights_tesim+access_rights_tesim+rights_holder_tesim+license_tesim+replaces_tesim+isReplacedBy_tesim+hasFormat_tesim+isFormatOf_tesim+hasPart_tesim+isPartOf_tesim+accrualPolicy_tesim+audience_tesim+references_tesim+spatial_tesim+bibliographic_citation_tesim+temporal_tesim+funder_tesim+resolution_tesim+bitdepth_tesim+colorspace_tesim+filesize_tesim+steward_tesim+name_tesim+comment_tesim+retentionPeriod_tesim+displays_ssim+embargo_tesim+status_tesim+startDate_tesim+expDate_tesim+qrStatus_tesim+rejectionReason_tesim+note_tesim+object_type_ssim&rows=10&sort=score+desc%2C+system_create_dtsi+desc%2C+title_si+asc Backtrace: /Users/mark/.rvm/gems/ruby-2.3.4@mira/gems/rsolr-2.0.2/lib/rsolr/client.rb:195:in `rescue in execute' /Users/mark/.rvm/gems/ruby-2.3.4@mira/gems/rsolr-2.0.2/lib/rsolr/client.rb:185:in `execute' /Users/mark/.rvm/gems/ruby-2.3.4@mira/gems/rsolr-2.0.2/lib/rsolr/client.rb:180:in `send_and_receive' /Users/mark/.rvm/gems/ruby-2.3.4@mira/gems/blacklight-6.9.0/lib/blacklight/solr/repository.rb:38:in `block in send_and_receive' /Users/mark/.rvm/gems/ruby-2.3.4@mira/gems/activesupport-5.0.3/lib/active_support/benchmarkable.rb:41:in `block in benchmark' /Users/mark/.rvm/gems/ruby-2.3.4@mira/gems/activesupport-5.0.3/lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/mark/.rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/benchmark.rb:308:in `realtime' /Users/mark/.rvm/gems/ruby-2.3.4@mira/gems/activesupport-5.0.3/lib/active_support/core_ext/benchmark.rb:12:in `ms' /Users/mark/.rvm/gems/ruby-2.3.4@mira/gems/activesupport-5.0.3/lib/active_support/benchmarkable.rb:41:in `benchmark' /Users/mark/.rvm/gems/ruby-2.3.4@mira/gems/blacklight-6.9.0/lib/blacklight/solr/repository.rb:36:in `send_and_receive' /Users/mark/.rvm/gems/ruby-2.3.4@mira/gems/blacklight-6.9.0/lib/blacklight/solr/repository.rb:22:in `search'
Extracted source (around line #19):
17
18
19
20
21
22
def index
redirect_to contributions_path unless current_user.admin?
super
end
configure_blacklight do |config|
Rails.root: /Users/mark/Documents/workspace/_no_backup_/RubyMine_Projects/mira
Application Trace | Framework Trace | Full Trace
app/controllers/catalog_controller.rb:19:in `index'
Request
Parameters:
None
Toggle session dump
Toggle env dump
Response
Headers:
None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment