{"id":4072,"date":"2016-05-08T23:26:22","date_gmt":"2016-05-08T23:26:22","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=4072"},"modified":"2016-05-08T23:26:22","modified_gmt":"2016-05-08T23:26:22","slug":"fixing-solr-error-cannot-parse-audio_length0-900-encountered","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/fixing-solr-error-cannot-parse-audio_length0-900-encountered\/","title":{"rendered":"Fixing Solr error: Cannot parse &#8216;audio_length:[0 to 900]&#8217;: Encountered \\&#8221;"},"content":{"rendered":"<p>If you try to do a Solr range query like this:<\/p>\n<pre>\nfq=audio_length:[0 to 900]\n<\/pre>\n<p>You can get an error:<\/p>\n<pre>\nCannot parse 'audio_length:[0 to 900]': Encountered \\\" <RANGE_GOOP> \n<\/pre>\n<p>The actual answer to this error is to capitalize the &#8220;TO&#8221; &#8211; the documentation Lucidworks provides is incorrect<sup><a href=\"#footnote_0_4072\" id=\"identifier_0_4072\" class=\"footnote-link footnote-identifier-link\" title=\"https:\/\/lucidworks.com\/blog\/2009\/09\/02\/faceted-search-with-solr\/\">1<\/a><\/sup>:<\/p>\n<pre>\nfq=audio_length:[0 TO 900]\n<\/pre>\n<ol class=\"footnotes\"><li id=\"footnote_0_4072\" class=\"footnote\">https:\/\/lucidworks.com\/blog\/2009\/09\/02\/faceted-search-with-solr\/<span class=\"footnote-back-link-wrapper\"> [<a href=\"#identifier_0_4072\" class=\"footnote-link footnote-back-link\">&#8617;<\/a>]<\/span><\/li><\/ol>","protected":false},"excerpt":{"rendered":"<p>Fixing solr range query<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[9],"tags":[517],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/4072"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=4072"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/4072\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=4072"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=4072"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=4072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}