BlendedTermQuery
A Query that blends index statistics across multiple terms. This is particularly useful when several terms should produce identical scores, regardless of their index statistics.
For instance imagine that you are resolving synonyms at search time, all terms should produce identical scores instead of the default behavior, which tends to give higher scores to rare terms.
An other useful use-case is cross-field search: imagine that you would like to search for john on two fields: first_name and last_name. You might not want to give a higher weight to matches on the field where john is rarer, in which case [ ] would help as well.
Types
A Builder for BlendedTermQuery.
A RewriteMethod that creates a DisjunctionMaxQuery out of the sub queries. This RewriteMethod is useful when having a good match on a single field is considered better than having average matches on several fields.
A RewriteMethod defines how queries for individual terms should be merged.
Functions
Expert: Constructs an appropriate Weight implementation for this query.
Override and implement query instance equivalence properly in a subclass. This is required so that QueryCache works properly.
Expert: called to re-write queries into primitive queries. For example, a PrefixQuery will be rewritten into a BooleanQuery that consists of TermQuerys.
Recurse through the query tree, visiting any child queries.