Join GitHub today
Query DSL: Support SpanMultiTermQueryWrapper #2400
Elasticsearch does not support lucene's SpanMultiTermQueryWrapper. This lucene query allows users to form complicated queries such as wildcards or prefix queries embedded within span queries. These complex queries are regularly used in certain fields (e.g., legal research) and adding support for it would open ES up to a new field.
Unfortunately, adding support is not possible using a plugin because the plugin system offers no way to install new query types as plugins. All of the QueryBuilders are hard-coded in QueryBuilders.java.
This is not a bug, but a feature request to expose SpanMultiTermQueryWrapper to ES's query API.
Some additional information on this feature request can be found here: