@FunctionalInterface public interface LuceneQueryProvider extends Serializable
A factory for Query objects. An implementation of this interface is required by
LuceneQueryFactory.create(String, String, LuceneQueryProvider) so that a query can be
serialized and distributed to multiple nodes.
Instances of this interface are serialized using the standard
DataSerializer.writeObject(Object, DataOutput),
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.search.Query |
getQuery(LuceneIndex index) |
org.apache.lucene.search.Query getQuery(LuceneIndex index) throws LuceneQueryException
index - The LuceneIndex the query is being executed against.Query which will be executed against a Lucene index.LuceneQueryException - if the provider fails to construct the query object. This will be
propagated to callers of the LuceneQuery find methods.