Package org.apache.lucene.monitor
Interface CustomQueryHandler
-
- All Known Implementing Classes:
RegexpQueryHandler
public interface CustomQueryHandlerBuilds aQueryTreefor 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 QueryTreehandleQuery(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 Detail
-
handleQuery
QueryTree handleQuery(Query query, TermWeightor termWeightor)
Builds aQueryTreenode from a query
-
wrapTermStream
default TokenStream wrapTermStream(String field, TokenStream in)
Adds additional processing to theTokenStreamover a document's terms index
-
-