RSolr::Error::Http - 400 Bad Request
Error: Error when parsing json query, expect a json object here, but found : null
URI: http://127.0.0.1:8983/solr/blacklight-core/advanced?wt=json
Request Headers: {"Content-Type"=>"application/json"}
Request Data: "{\"params\":{\"qt\":null,\"rows\":10,\"spellcheck.dictionary\":\"title\",\"qf\":\"${title_qf}\",\"pf\":\"${title_pf}\",\"facet\":true,\"facet.field\":[\"format\",\"{!ex=pub_date_ssim_single}pub_date_ssim\",\"subject_ssim\",\"language_ssim\",\"lc_1letter_ssim\",\"subject_geo_ssim\",\"subject_era_ssim\"],\"f.subject_ssim.facet.limit\":21,\"f.language_ssim.facet.limit\":11,\"facet.pivot\":[\"format,language_ssim\"],\"facet.query\":[\"pub_date_ssim:[2018 TO *]\",\"pub_date_ssim:[2013 TO *]\",\"pub_date_ssim:[1998 TO *]\"],\"sort\":\"score desc, pub_date_si desc, title_si asc\"},\"query\":{\"bool\":{\"must\":[{\"edismax\":{\"spellcheck.dictionary\":\"title\",\"qf\":\"${title_qf}\",\"pf\":\"${title_pf}\",\"query\":null}}]}}}"
Steps to recreate
Create a local development environment running Solr 7 or 8, and with a solrconfig.xml that specifies a luceneMatchVersion of 7.1 or lower.
Confirm that you can access http://localhost:3000/?search_field=title, and that it returns all titles in your solr.
Configure your title field to use the JSON Query DSL in the catalog controller (using the clause_params configuration option). For example:
Restart your rails server
Note that http://localhost:3000/?search_field=title now returns an error: