Package org.apache.lucene.monitor
Interface CustomQueryHandler
-
- All Known Implementing Classes:
RegexpQueryHandler
public interface CustomQueryHandler
Builds aQueryTree
for a query that needs custom treatmentThe 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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description QueryTree
handleQuery(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 Detail
-
handleQuery
QueryTree handleQuery(Query query, TermWeightor termWeightor)
Builds aQueryTree
node from a query
-
wrapTermStream
default TokenStream wrapTermStream(String field, TokenStream in)
Adds additional processing to theTokenStream
over a document's terms index
-
-