as mentioned here span_multi can only wrap term, range, prefix, wildcard, regexp or fuzzy query. Why do you need span_multi in the second clause? Can't you simply use span_term query and combine them in a span_near?
Hi,
instead if you combine two span_near queries with a large slop inside another span_near query you might get what you need. Its hard to tell because your use case still isn't quiet clear to me. I wonder why you need all that and/or logic with span-queries. Can't you simply use one or more bool queries at the top level and then use the individual span_near queries inside it?
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.