Package com.yahoo.prelude.query


@ExportPackage @PublicApi package com.yahoo.prelude.query
The query model representing a boolean combination of selection criterions, where elements may be simple criterions, nested boolean operators, or annotated pieces of natural language text.
  • Class
    Description
    An and'ing of a collection of sub-expressions
    An immutable and'ing of a collection of sub-expressions.
    An interface used for anything which represents a single block of query input.
    A true/false term suitable for searching bool indexes.
    Common implementation for Item classes implementing the IndexedItem interface.
    Superclass of expressions which contains a collection of sub-expressions
    Common implementation for Item classes implementing the TaggableItem interface.
    A weighted set query item to be evaluated as a sparse dot product.
    An Item where each child is an alternative which can be matched.
    Used to signal that this term requires exact match if the backend supports it.
    A query item which never matches.
    Fuzzy search term
    This represents a geo-location in the query tree.
    An interface for items where it is useful to access an index name.
    Class encapsulating information on extra highlight-terms for a query
    Interface for Items that are indexed
    Common implementation for Item classes implementing the IndexedItem interface.
    This represents either a number (integer or floating point) a partial range, given by "<number" or ">number", where the numbers are exclusive, or a full or open range "[number;number], "[number;]" or "[;number]" where the numbers are inclusive, or exclusive if a square bracket is replaced with a pointy one If a range is specified in brackets, it is also permissible to add a third number specifying the number of hits this will match on each node - [from;to;hitLimit]
    An item in the tree which defines which documents will match a query.
     
     
    Helper functions for Item
    An immutable numeric range limit which can be inclusive or exclusive
    Special words known by the index used for marking things.
    Represent a query item matching the K nearest neighbors in a multi-dimensional vector space.
    A set of terms which must be near each other to match.
    A composite item which specifies semantics which are not maintained if an instance with a single child is replaced by the single child.
    A composite item where the first item is positive and the following items are negative items where matches should exclude the document should from the result.
    A placeholder for null queries to make searchers easier to write.
    Ordered NearItem.
    An or'ing of a collection of sub-expressions
    A term which contains a phrase - a collection of word terms
    A term which contains a fixed length phrase, a collection of word terms, resulting from a single segmentation operation.
    A PredicateQueryItem is a collection of feature/value-pairs that are used to query predicate fields, which contains boolean constraints.
    A unique entry in a predicate item.
    An entry in a predicate item.
    A range entry in a predicate item.
    A word which matches beginnings of words instead of complete words
    An integer item which only consists of a value and weight.
    A word item which only consists of a value and weight, and gets other properties such as the index to query from ther parent item.
    A word item which only consists of a value and weight.
    Query normalizer and sanity checker.
     
    This class represents a numeric range.
    Represents the rank operator, which only orders the result set and does not change which hits are returned.
    Match a field with the contained regular expression.
    This represents a query where all terms are required to match in the same element id.
    If a term has to be resegmented, and the result is more than one word, this is how the result should be handled in the query tree.
    An immutable and'ing of a collection of sub-expressions.
    Common implementation for Item classes implementing the IndexedItem interface.
    Common implementation for Item classes implementing the TaggableItem interface.
    An substring which also provides access to the full (query) string it is a substring of.
    A word that matches substrings of words
    A word that matches a suffix of words instead of a complete word.
    An interface used for anything which may be addressed using an external, unique ID in the query tree in the backend.
    Common implementation for Item classes implementing the TaggableItem interface.
    Superclass of "leaf" conditions containing a single entity which is either matched in a field or not.
    A term type enumeration.
    Query tree helper methods and factories.
     
    A query item which matches everything.
    An item matching a uri field.
    A weighted set query item to be evaluated as a Wand with dot product scoring.
    Weak And of a collection of sub-expressions: this behaves like an OR unless many hits are returned and then it starts acting more like an AND.
    A term which contains a weighted set.
    A set of words with differing exactness scores to be used for literal boost ranking.
    A word alternative.
    A simple word or token to match in some field.