Class SingleValueQuery

java.lang.Object
org.elasticsearch.xpack.esql.core.querydsl.query.Query
org.elasticsearch.xpack.esql.querydsl.query.SingleValueQuery

public class SingleValueQuery extends Query
Lucene query that wraps another query and only selects documents that match the wrapped query and have a single field value.

This allows us to wrap regular lucene queries to have ESQL style semantics which will allow us to continue to push expressions to Lucene.

We could have chosen not to wrap the lucene query and instead double check the results after they are loaded. That could be faster in some cases, but for now we're going to always wrap so we can always push. When we find cases where double checking is better we'll try that.

NOTE: This will only work with text fields.