Modifier and Type | Method and Description |
---|---|
static QueryTree |
QueryTree.anyTerm(String reason)
Returns a leaf node that will match any document
|
static QueryTree |
QueryTree.conjunction(List<Function<TermWeightor,QueryTree>> children,
TermWeightor weightor)
Returns a conjunction of a set of child nodes
|
static QueryTree |
QueryTree.disjunction(List<Function<TermWeightor,QueryTree>> children,
TermWeightor weightor)
Returns a disjunction of a set of child nodes
|
QueryTree |
CustomQueryHandler.handleQuery(Query query,
TermWeightor termWeightor)
Builds a
QueryTree node from a query |
QueryTree |
RegexpQueryHandler.handleQuery(Query q,
TermWeightor termWeightor) |
static QueryTree |
QueryTree.term(String field,
BytesRef term,
double weight)
Returns a leaf node for a particular term and weight
The weight must be greater than 0
|
static QueryTree |
QueryTree.term(Term term,
double weight)
Returns a leaf node for a particular term and weight
The weight must be greater than 0
|
static QueryTree |
QueryTree.term(Term term,
TermWeightor weightor)
Returns a leaf node for a particular term
|
Modifier and Type | Method and Description |
---|---|
protected Document |
TermFilteredPresearcher.buildQueryDocument(QueryTree querytree)
Builds a
Document from the terms extracted from a query |
Document |
MultipassTermFilteredPresearcher.buildQueryDocument(QueryTree querytree) |
protected Map<String,BytesRefHash> |
TermFilteredPresearcher.collectTerms(QueryTree querytree)
Collects terms from a
QueryTree and maps them per-field |
Modifier and Type | Method and Description |
---|---|
static QueryTree |
QueryTree.conjunction(List<Function<TermWeightor,QueryTree>> children,
TermWeightor weightor)
Returns a conjunction of a set of child nodes
|
static QueryTree |
QueryTree.disjunction(List<Function<TermWeightor,QueryTree>> children,
TermWeightor weightor)
Returns a disjunction of a set of child nodes
|
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.