Package org.apache.lucene.monitor
Interface CustomQueryHandler
- All Known Implementing Classes:
RegexpQueryHandler
public interface CustomQueryHandler
Builds a
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 presearcher
-
Method Summary
Modifier and TypeMethodDescriptionhandleQuery
(Query query, TermWeightor termWeightor) Builds aQueryTree
node from a querydefault TokenStream
wrapTermStream
(String field, TokenStream in) Adds additional processing to theTokenStream
over a document's terms index
-
Method Details
-
handleQuery
Builds aQueryTree
node from a query -
wrapTermStream
Adds additional processing to theTokenStream
over a document's terms index
-