![]() ![]() ![]() See here for an overview of Lucene’s boolean query and operator rules.Ī query wrapper that allows to give a boost to the wrapped query. TermQuerys, PhraseQuerys or other BooleanQuerys. This is particularly useful when several terms should produce identical scores, regardless of their index statistics.Ī query that matches documents matching boolean combinations of other queries, e.g. Alternatively, it can be created from a regular expression with RegexpQuery or from the standard Lucene wildcard syntax with WildcardQuery.Ī query that blends index statistics across multiple terms. The automaton can be constructed with the .automaton API. This query will match documents that contain terms accepted by a given finite-state machine. Only return those matches that have a specific payload at the given position. The score is the float value.Ī query that wraps another query, and uses a DoubleValuesSource to replace or modify the wrapped query’s scoreĪ query that retrieves documents containing intervals returned from an IntervalsSource.Ī simple wrapper for MoreLikeThis for use in scenarios where a Query object is required eg in custom QueryParser extensions.Ī query class that uses a PayloadFunction to modify the score of a wrapped SpanQuery. Returns a score for each document based on a ValueSource, often some function of the value of a field.Ī query wrapping a ValueSource that matches docs in which the values in the value source match a configured range. This query works by a linear scan of the index, and is best used in conjunction with other queries that can restrict the number of documents visited. This query builds 2 queries off the added terms: low-frequency terms are added to a required boolean clause and high-frequency terms are added to an optional boolean clause.Ī query that retrieves all documents with a DoubleValues value matching a predicate. In the core package: QueryĪ query that executes high-frequency terms in a optional sub-query to prevent slow queries due to “common” terms like stopwords. A reference list of the different query types in Lucene. ![]()
0 Comments
Leave a Reply. |