public interface CustomQueryHandler
QueryTree
for a query that needs custom treatment
The default query analyzers will use the QueryVisitor API to extract
terms from queries. If different handling is needed, implement a
CustomQueryHandler and pass it to the presearcherModifier and Type | Method and Description |
---|---|
QueryTree |
handleQuery(Query query,
TermWeightor termWeightor)
Builds a
QueryTree node from a query |
default TokenStream |
wrapTermStream(String field,
TokenStream in)
Adds additional processing to the
TokenStream over a document's
terms index |
QueryTree handleQuery(Query query, TermWeightor termWeightor)
QueryTree
node from a querydefault TokenStream wrapTermStream(String field, TokenStream in)
TokenStream
over a document's
terms indexCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.