I'm trying to perform the following query with the Java API:
"query": {
"bool" : {
"must" : [ {
"field" : {
"space-time-id.timestamp" : "2014-03-17T16:57:47.136-07:00"
}
} ]
}
}
This fails presumably because the value has colons (which are special characters). Can someone point me to the Java API that escapes such characters?
org.apache.lucene.queryparser.classic.QueryParser.escape()
You can also use org.apache.lucene.queryparser.flexible.standard.QueryParserUtil.escape()
;)
Looks like the implementation is the same..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With