Hi ,
I have a search request which passes lucene query string as search criteria as like
pagecount:{2 TO 4] which is produced from lucenes constantsearchrangequery. Since I m having "{" is in the search criteria I am unable to suceed. My full search request using JSON is as follows
And if you execute it with pagecount:[2 TO 4] or pagecount:{2 TO 4} it
works? If I am not mistaken, the query parser does not allow to mix { or }
with [ or ]. You can use the range query explicitly in the query DSL to
support that.
Hi ,
I have a search request which passes lucene query string as search criteria
as like
pagecount:{2 TO 4] which is produced from lucenes constantsearchrangequery.
Since I m having "{" is in the search criteria I am unable to suceed. My
full search request using JSON is as follows
Support for mixing curl and square brackets will be supported in the next
version of Lucene (as far as I can tell). You can use the explicit range
query definition (defined within the search body of a search request) to
specify different inclusion of upper and lower bounds.
Currently I m using query dsl with inclusion and exclusion, since I m unable to find a solution for mixing braces. So mixing the braces in next version will be added advantage and looking for the next release.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.