7
votes

http://localhost:8983/solr/select?wt=json&q=lat:[35%20to%2038] results in

org.apache.lucene.queryParser.ParseException: Cannot parse 'lat:[35 to 38]': Encountered " <RANGEIN_GOOP> "38 "" at line 1, column 11.
Was expecting:
    "]" 

This is a pretty basic range query and this error will prevent us from using SOLR for our projects

3

3 Answers

21
votes
0
votes

Switched default to use dismax instead of lucene parser.

0
votes
/_search?q=lat:[35 TO 38]
or
/_search?q=lat:[35%20TO%2038]

Working & Tested the same.

https://search-xxxx-scyleqdxxxxx57yi4m.us-east-2.es.amazonaws.com/id/_search?q=id:2017-10-28&size=100

https://search-xxxx-scyleqdxxxxx57yi4m.us-east-2.es.amazonaws.com/id/_search?q=v:[0%20TO%20100]&size=100

https://search-xxxx-scyleqdxxxxx57yi4m.us-east-2.es.amazonaws.com/id/_search?q=id:[2017-10-26%20TO%202017-10-27]&size=100