Span Multi with range query

(Praveen) #1

Hi All,

I am trying to do date range query within span_multi but I get below error. Any suggestions ?

Error : "unsupported_operation_exception: unsupported inner query, should be but was"


"query": {
"range" : {
"ts" : {
"gt" : "2017",
"format": "dd/MM/yyyy||yyyy"

(Jimferenczi) #2

The span_multi accepts only multi-terms queries like prefix, wildcard or regexp. It also accepts the range query but only if the field is a keyword or text field. Span queries need to access the position of each match and numeric and date fields do not record this information.

(Praveen) #3

Thanks for clarification.

(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.