Uses of Interface
org.apache.lucene.monitor.TermWeightor
-
Uses of TermWeightor in org.apache.lucene.monitor
Modifier and TypeFieldDescriptionstatic final TermWeightor
TermWeightor.DEFAULT
A default TermWeightor based on token lengthstatic final TermWeightor
TermFilteredPresearcher.DEFAULT_WEIGHTOR
The default TermWeightor, weighting by token lengthModifier and TypeMethodDescriptionstatic TermWeightor
TermWeightor.combine
(TermWeightor... weightors) Combine weightors by multiplicationstatic TermWeightor
TermWeightor.fieldWeightor
(double weight, String... fields) QueryTerms with a field from the selected set will be assigned the given weightstatic TermWeightor
TermWeightor.fieldWeightor
(double weight, Set<String> fields) QueryTerms with a field from the selected set will be assigned the given weightstatic TermWeightor
TermWeightor.lengthWeightor
(double a, double k) QueryTerms will be assigned a weight based on their term lengthstatic TermWeightor
TermWeightor.termAndFieldWeightor
(double weight, Set<Term> terms) QueryTerms with a term and field value from the selected set will be assigned the given weightstatic TermWeightor
TermWeightor.termAndFieldWeightor
(double weight, Term... terms) QueryTerms with a term and field value from the selected set will be assigned the given weightstatic TermWeightor
TermWeightor.termFreqWeightor
(Map<String, Integer> frequencies, double n, double k) QueryTerms will be assigned a weight based on their term frequencystatic TermWeightor
TermWeightor.termWeightor
(double weight, Set<BytesRef> terms) QueryTerms with a term value from the selected set will be assigned the given weightstatic TermWeightor
TermWeightor.termWeightor
(double weight, BytesRef... terms) QueryTerms with a term value from the selected set will be assigned the given weightModifier and TypeMethodDescriptionstatic TermWeightor
TermWeightor.combine
(TermWeightor... weightors) Combine weightors by multiplicationstatic QueryTree
QueryTree.conjunction
(List<Function<TermWeightor, QueryTree>> children, TermWeightor weightor) Returns a conjunction of a set of child nodesstatic QueryTree
QueryTree.disjunction
(List<Function<TermWeightor, QueryTree>> children, TermWeightor weightor) Returns a disjunction of a set of child nodesCustomQueryHandler.handleQuery
(Query query, TermWeightor termWeightor) Builds aQueryTree
node from a queryRegexpQueryHandler.handleQuery
(Query q, TermWeightor termWeightor) static QueryTree
QueryTree.term
(Term term, TermWeightor weightor) Returns a leaf node for a particular termModifier and TypeMethodDescriptionstatic QueryTree
QueryTree.conjunction
(List<Function<TermWeightor, QueryTree>> children, TermWeightor weightor) Returns a conjunction of a set of child nodesstatic QueryTree
QueryTree.disjunction
(List<Function<TermWeightor, QueryTree>> children, TermWeightor weightor) Returns a disjunction of a set of child nodesModifierConstructorDescriptionMultipassTermFilteredPresearcher
(int passes, float minWeight, TermWeightor weightor, List<CustomQueryHandler> queryHandlers, Set<String> filterFields) Construct a new MultipassTermFilteredPresearcherTermFilteredPresearcher
(TermWeightor weightor, List<CustomQueryHandler> customQueryHandlers, Set<String> filterFields) Creates a new TermFilteredPresearcher