public abstract class Presearcher
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Presearcher |
NO_FILTERING
A Presearcher implementation that does no query filtering, and runs all
registered queries
|
Constructor and Description |
---|
Presearcher() |
Modifier and Type | Method and Description |
---|---|
abstract Query |
buildQuery(LeafReader reader,
java.util.function.BiPredicate<java.lang.String,BytesRef> termAcceptor)
Build a query for a Monitor's queryindex from a LeafReader over a set of documents to monitor.
|
abstract Document |
indexQuery(Query query,
java.util.Map<java.lang.String,java.lang.String> metadata)
Build a lucene Document to index the query in a Monitor's queryindex
|
public static final Presearcher NO_FILTERING
public abstract Query buildQuery(LeafReader reader, java.util.function.BiPredicate<java.lang.String,BytesRef> termAcceptor)
reader
- a LeafReader
over the input documentstermAcceptor
- a predicate indicating if a term should be added to the querypublic abstract Document indexQuery(Query query, java.util.Map<java.lang.String,java.lang.String> metadata)
query
- the Query to indexmetadata
- a Map of arbitrary query metadata