public abstract class Presearcher extends 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,
BiPredicate<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,
Map<String,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, BiPredicate<String,BytesRef> termAcceptor)
reader
- a LeafReader
over the input documentstermAcceptor
- a predicate indicating if a term should be added to the queryCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.