Uses of Class
com.yahoo.prelude.query.Item
Package
Description
The query model representing a boolean combination of selection criteria, where elements may be
simple criteria, nested boolean operators, or annotated pieces of natural language text.
The search query model
Vespa search platform query transformation infrastructure.
-
Uses of Item in com.yahoo.prelude.query
Modifier and TypeClassDescriptionclass
An and'ing of a collection of sub-expressionsclass
An immutable and'ing of a collection of sub-expressions.class
A true/false term suitable for searching bool indexes.class
Common implementation for Item classes implementing the IndexedItem interface.class
Superclass of expressions which contains a collection of sub-expressionsclass
Common implementation for Item classes implementing the TaggableItem interface.class
A weighted set query item to be evaluated as a sparse dot product.class
An Item where each child is an alternative which can be matched.class
Used to signal that this term requires exact match if the backend supports it.class
A query item which never matches.class
Fuzzy search termclass
This represents a geo-location in the query tree.class
Common implementation for Item classes implementing the IndexedItem interface.class
class
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]class
Special words known by the index used for marking things.class
MultiRangeItem<Type extends Number>
A term which contains a set of numerical ranges; a match with any of these indicates a match.class
Represent a query item matching the K nearest neighbors in a multi-dimensional vector space.class
A set of terms which must be near each other to match.class
A composite item which specifies semantics which are not maintained if an instance with a single child is replaced by the single child.class
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.class
A placeholder for null queries to make searchers easier to write.class
class
Ordered NearItem.class
An or'ing of a collection of sub-expressionsclass
A term which contains a phrase - a collection of word termsclass
A term which contains a fixed length phrase, a collection of word terms, resulting from a single segmentation operation.class
A PredicateQueryItem is a collection of feature/value-pairs that are used to query predicate fields, which contains boolean constraints.class
A word which matches beginnings of words instead of complete wordsclass
An integer item which only consists of a value and weight.class
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.class
A word item which only consists of a value and weight.class
This class represents a numeric range.class
Represents the rank operator, which only orders the result set and does not change which hits are returned.class
Match a field with the contained regular expression.class
This represents a query where all terms are required to match in the same element id.class
An immutable and'ing of a collection of sub-expressions.class
Common implementation for Item classes implementing the IndexedItem interface.class
Common implementation for Item classes implementing the TaggableItem interface.class
class
A word that matches substrings of wordsclass
A word that matches a suffix of words instead of a complete word.class
Common implementation for Item classes implementing the TaggableItem interface.class
Superclass of "leaf" conditions containing a single entity which is either matched in a field or not.class
A query item which matches everything.class
An item matching a uri field.class
A weighted set query item to be evaluated as a Wand with dot product scoring.final class
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.class
A term which contains a weighted set.class
A set of words with differing exactness scores to be used for literal boost ranking.class
A simple word or token to match in some field.Modifier and TypeFieldDescriptionprotected Item
Item.connectedBacklink
protected Item
Item.connectedItem
Items for explicit connectivityModifier and TypeMethodDescriptionItem.clone()
Returns a deep copy of this itemMultiRangeItem.clone()
TermType.createItemClass()
Returns an instance of the class corresponding to the given type, AndItem if this is the DEFAULT typeCompositeTaggableItem.getConnectedItem()
SimpleTaggableItem.getConnectedItem()
TaggableItem.getConnectedItem()
TaggableSegmentItem.getConnectedItem()
CompositeItem.getItem
(int index) Returns a subitemNotItem.getPositiveItem()
Returns the positive item (the first subitem), or TrueItem if no positive items has been added.CompositeItem.removeItem
(int index) Removes the item at the given indexNotItem.removeItem
(int index) SegmentItem.removeItem
(int index) Replaces the item at the given index.NotItem.setPositiveItem
(Item item) Sets the positive item (the first item)Modifier and TypeMethodDescriptionCompositeItem.extractSingleChild()
Returns the single child of this, if this can be omitted without changes to recall semantics.NonReducibleCompositeItem.extractSingleChild()
PhraseItem.extractSingleChild()
PhraseSegmentItem.extractSingleChild()
SameElementItem.extractSingleChild()
CompositeItem.getItemIterator()
Returns a modifiable list iterator of the immediate children of thisCompositeItem.items()
Returns a read only list of the immediate children of thisNotItem.negativeItems()
Returns the negative items of this: All child items except the firstModifier and TypeMethodDescriptionprotected void
protected void
protected void
void
Inserts the item at a position and increases the index of existing items starting on this position by onevoid
void
Adds an item.void
void
Adds subitem.void
Adds subitem.void
void
void
NotItem.addNegativeItem
(Item negative) Adds a negative item.void
NotItem.addPositiveItem
(Item item) Convenience method for adding a positive item.int
CompositeItem.getItemIndex
(Item item) Returns the index of a subitemvoid
ItemHelper.getPositiveTerms
(Item item, List<IndexedItem> terms) boolean
CompositeItem.removeItem
(Item item) Removes the given item.boolean
NotItem.removeItem
(Item item) boolean
SegmentItem.removeItem
(Item item) void
CompositeTaggableItem.setConnectivity
(Item item, double connectivity) void
SimpleTaggableItem.setConnectivity
(Item item, double connectivity) void
TaggableItem.setConnectivity
(Item item, double connectivity) Set the connectivity to another term in the same query tree.void
TaggableSegmentItem.setConnectivity
(Item item, double connectivity) Replaces the item at the given index.NotItem.setPositiveItem
(Item item) Sets the positive item (the first item)abstract boolean
Called for each item in the query tree given toToolBox.visit(QueryVisitor, Item)
.static void
ToolBox.visit
(ToolBox.QueryVisitor visitor, Item item) -
Uses of Item in com.yahoo.prelude.query.parser
Modifier and TypeMethodDescriptionprotected Item
AllParser.combineItems
(Item topLevelItem, Item item) Returns the top level item resulting from combining the given top level item and the new item.protected Item
AnyParser.combineItems
(Item topLevelItem, Item item) Returns the top level item resulting from combining the given top level item and the new item.protected Item
AdvancedParser.handleComposite
(boolean topLevel) Deprecated.protected Item
AllParser.negativeItem()
protected Item
AnyParser.negativeItem()
final Item
AbstractParser.parse
(String queryToParse, String filterToParse, com.yahoo.language.Language parsingLanguage, IndexFacts.Session indexFacts, String defaultIndex) CustomParser.parse
(String queryToParse, String filterToParse, com.yahoo.language.Language parsingLanguage, IndexFacts.Session indexFacts, String defaultIndexName) default Item
CustomParser.parse
(String queryToParse, String filterToParse, com.yahoo.language.Language parsingLanguage, Set<String> toSearch, IndexFacts indexFacts, String defaultIndexName) Returns the raw result from parsing, not wrapped in a QueryTree instance.ProgrammaticParser.parse
(String queryToParse, String filterToParse, com.yahoo.language.Language parsingLanguage, IndexFacts.Session indexFacts, String defaultIndexName) protected abstract Item
AbstractParser.parseItems()
protected Item
AdvancedParser.parseItems()
Deprecated.protected Item
AllParser.parseItems()
protected Item
AnyParser.parseItems()
protected Item
PhraseParser.parseItems()
protected Item
TokenizeParser.parseItems()
protected Item
AllParser.parseItemsBody()
protected Item
WebParser.parseItemsBody()
protected Item
Segments a tokenstatic Item
AbstractParser.simplifyPhrases
(Item unwashed) Collapses single item phrases in the tree to the contained item.protected final Item
AllParser.simplifyUnnecessaryComposites
(Item item) Modifier and TypeMethodDescriptionprotected CompositeItem
AllParser.addAnd
(Item item, CompositeItem and) protected NotItem
protected OrItem
protected Item
AllParser.combineItems
(Item topLevelItem, Item item) Returns the top level item resulting from combining the given top level item and the new item.protected Item
AnyParser.combineItems
(Item topLevelItem, Item item) Returns the top level item resulting from combining the given top level item and the new item.static Item
AbstractParser.simplifyPhrases
(Item unwashed) Collapses single item phrases in the tree to the contained item.protected final Item
AllParser.simplifyUnnecessaryComposites
(Item item) -
Uses of Item in com.yahoo.prelude.query.textualrepresentation
-
Uses of Item in com.yahoo.prelude.querytransform
Modifier and TypeMethodDescriptionPhraseMatcher.matchPhrases
(Item queryItem) Finds all phrases (word sequences of length 1 or higher) of the same index, not negative items of a notitem, which constitutes a complete entry in the automaton of this matcher -
Uses of Item in com.yahoo.prelude.semantics.engine
Modifier and TypeMethodDescriptionReturns a new item representing this matchReturns a new item representing this matchReturns the item to insert from these referenced matches, or null if noneModifier and TypeMethodDescriptionvoid
Adds an item to the query being evaluated in a way consistent with the query typevoid
Evaluation.removeItem
(int position, Item item) Removes an item, prefers the one at/close to the given position if there are multiple onesvoid
Evaluation.removeItem
(Item item) Removes this itemvoid
RuleEvaluation.removeItem
(int position, Item item) Removes an item, prefers the one at/close to the given position if there are multiple onesvoid
RuleEvaluation.removeItem
(Item item) void
Evaluation.removeItemByIdentity
(Item item) Removes this item by identity to ensure we remove the right one if there are multiple equal itemsvoid
RuleEvaluation.removeItemByIdentity
(Item item) Modifier and TypeMethodDescriptionvoid
Adds an item to the query being evaluated in a way consistent with the query typevoid
Evaluation.insertItems
(List<Item> items, CompositeItem parent, int index, TermType desiredParentType, boolean replacing) Inserts an item to the query being evaluated in a way consistent with the query typevoid
RuleEvaluation.insertItems
(List<Item> items, CompositeItem parent, int index, TermType termType, boolean replacing) Inserts an item to the query being evaluated in a way consistent with the query type -
Uses of Item in com.yahoo.prelude.semantics.rule
Modifier and TypeMethodDescriptionprotected void
TermProduction.insertMatch
(RuleEvaluation e, Match matched, List<Item> newItems, int offset) Inserts newItems at the position of this match TODO: Move to ruleevaluation -
Uses of Item in com.yahoo.search.query
Modifier and TypeMethodDescriptionModifies this query to become the current query AND the given item.QueryTree.getRoot()
Returns the query root.Modifies this query to become the current query RANK with the given item.Modifier and TypeMethodDescriptionvoid
void
Modifies this query to become the current query AND the given item.static List<IndexedItem>
QueryTree.getPositiveTerms
(Item item) Returns a flattened list of all positive query terms under the given itemfinal void
Modifies this query to become the current query RANK with the given item. -
Uses of Item in com.yahoo.search.query.textserialize
-
Uses of Item in com.yahoo.search.query.textserialize.item
Modifier and TypeMethodDescriptionprotected String
AndNotRestConverter.getFormName
(Item item) protected String
CompositeConverter.getFormName
(Item item) static void
ItemInitializer.initialize
(Item item, ItemArguments arguments, ItemContext itemContext) static void
ItemInitializer.initializeForm
(DispatchForm form, Item item, ItemIdMapper itemIdMapper) CompositeConverter.itemToForm
(Item item, ItemIdMapper itemIdMapper) ItemFormConverter.itemToForm
(Item item, ItemIdMapper itemIdMapper) NearConverter.itemToForm
(Item item, ItemIdMapper itemIdMapper) TermConverter.itemToForm
(Item item, ItemIdMapper itemIdMapper) void
-
Uses of Item in com.yahoo.search.query.textserialize.serializer
-
Uses of Item in com.yahoo.search.querytransform
Modifier and TypeMethodDescriptionprotected Item
NGramSearcher.splitToGrams
(Item term, String text, int gramSize, Query query) Splits the given item into n-grams and adds them as a CompositeItem containing WordItems searching the index of the input term.Modifier and TypeMethodDescriptionprotected Item
NGramSearcher.splitToGrams
(Item term, String text, int gramSize, Query query) Splits the given item into n-grams and adds them as a CompositeItem containing WordItems searching the index of the input term.