Package | Description |
---|---|
org.apache.lucene.monitor |
Monitoring framework
|
Modifier and Type | Field and Description |
---|---|
static TermWeightor |
TermWeightor.DEFAULT
A default TermWeightor based on token length
|
static TermWeightor |
TermFilteredPresearcher.DEFAULT_WEIGHTOR
The default TermWeightor, weighting by token length
|
private TermWeightor |
TermFilteredPresearcher.weightor |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<java.util.function.Function<TermWeightor,QueryTree>> |
QueryAnalyzer.QueryBuilder.children |
private java.util.function.BiFunction<Query,TermWeightor,QueryTree> |
QueryAnalyzer.unknownQueryMapper |
Modifier and Type | Method and Description |
---|---|
static TermWeightor |
TermWeightor.combine(TermWeightor... weightors)
Combine weightors by multiplication
|
static TermWeightor |
TermWeightor.fieldWeightor(double weight,
java.util.Set<java.lang.String> fields)
QueryTerms with a field from the selected set will be assigned the given weight
|
static TermWeightor |
TermWeightor.fieldWeightor(double weight,
java.lang.String... fields)
QueryTerms with a field from the selected set will be assigned the given weight
|
static TermWeightor |
TermWeightor.lengthWeightor(double a,
double k)
QueryTerms will be assigned a weight based on their term length
Weights are assigned by the function
a * e ^ (-k * length) . |
static TermWeightor |
TermWeightor.termAndFieldWeightor(double weight,
java.util.Set<Term> terms)
QueryTerms with a term and field value from the selected set will be assigned the given weight
|
static TermWeightor |
TermWeightor.termAndFieldWeightor(double weight,
Term... terms)
QueryTerms with a term and field value from the selected set will be assigned the given weight
|
static TermWeightor |
TermWeightor.termFreqWeightor(java.util.Map<java.lang.String,java.lang.Integer> frequencies,
double n,
double k)
QueryTerms will be assigned a weight based on their term frequency
More infrequent terms are weighted higher.
|
static TermWeightor |
TermWeightor.termWeightor(double weight,
BytesRef... terms)
QueryTerms with a term value from the selected set will be assigned the given weight
|
static TermWeightor |
TermWeightor.termWeightor(double weight,
java.util.Set<BytesRef> terms)
QueryTerms with a term value from the selected set will be assigned the given weight
|
Modifier and Type | Method and Description |
---|---|
private static java.util.function.BiFunction<Query,TermWeightor,QueryTree> |
QueryAnalyzer.buildMapper(java.util.List<CustomQueryHandler> mappers) |
Modifier and Type | Method and Description |
---|---|
QueryTree |
QueryAnalyzer.QueryBuilder.apply(TermWeightor termWeightor) |
QueryTree |
QueryAnalyzer.Disjunction.apply(TermWeightor termWeightor) |
(package private) QueryTree |
QueryAnalyzer.buildTree(Query luceneQuery,
TermWeightor weightor)
Create a
QueryTree from a passed in Query or Filter |
static TermWeightor |
TermWeightor.combine(TermWeightor... weightors)
Combine weightors by multiplication
|
static QueryTree |
QueryTree.conjunction(java.util.List<java.util.function.Function<TermWeightor,QueryTree>> children,
TermWeightor weightor)
Returns a conjunction of a set of child nodes
|
static QueryTree |
QueryTree.disjunction(java.util.List<java.util.function.Function<TermWeightor,QueryTree>> children,
TermWeightor weightor)
Returns a disjunction of a set of child nodes
|
QueryTree |
RegexpQueryHandler.handleQuery(Query q,
TermWeightor termWeightor) |
QueryTree |
CustomQueryHandler.handleQuery(Query query,
TermWeightor termWeightor)
Builds a
QueryTree node from a query |
static QueryTree |
QueryTree.term(Term term,
TermWeightor weightor)
Returns a leaf node for a particular term
|
Modifier and Type | Method and Description |
---|---|
static QueryTree |
QueryTree.conjunction(java.util.List<java.util.function.Function<TermWeightor,QueryTree>> children,
TermWeightor weightor)
Returns a conjunction of a set of child nodes
|
static QueryTree |
QueryTree.disjunction(java.util.List<java.util.function.Function<TermWeightor,QueryTree>> children,
TermWeightor weightor)
Returns a disjunction of a set of child nodes
|
Constructor and Description |
---|
MultipassTermFilteredPresearcher(int passes,
float minWeight,
TermWeightor weightor,
java.util.List<CustomQueryHandler> queryHandlers,
java.util.Set<java.lang.String> filterFields)
Construct a new MultipassTermFilteredPresearcher
|
TermFilteredPresearcher(TermWeightor weightor,
java.util.List<CustomQueryHandler> customQueryHandlers,
java.util.Set<java.lang.String> filterFields)
Creates a new TermFilteredPresearcher
|