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 aQueryTreenode from a querydefault TokenStreamwrapTermStream(String field, TokenStream in) Adds additional processing to theTokenStreamover a document's terms index
-
Method Details
-
handleQuery
Builds aQueryTreenode from a query -
wrapTermStream
Adds additional processing to theTokenStreamover a document's terms index
-