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 org.apache.lucene.search.MultiTermQuery but was org.apache.lucene.search.IndexOrDocValuesQuery"
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.
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.