Uses of Class
com.yahoo.prelude.query.Item
Packages that use 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
Subclasses of Item in com.yahoo.prelude.queryModifier and TypeClassDescriptionclassAn and'ing of a collection of sub-expressionsclassAn immutable and'ing of a collection of sub-expressions.classA true/false term suitable for searching bool indexes.classCommon implementation for Item classes implementing the IndexedItem interface.classSuperclass of expressions which contains a collection of sub-expressionsclassCommon implementation for Item classes implementing the TaggableItem interface.classA weighted set query item to be evaluated as a sparse dot product.classAn Item where each child is an alternative which can be matched.classUsed to signal that this term requires exact match if the backend supports it.classA query item which never matches.classFuzzy search termclassThis represents a geo-location in the query tree.classCommon implementation for Item classes implementing the IndexedItem interface.classAbstract class representing an IN operator.classThis 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]classSpecial words known by the index used for marking things.classMultiRangeItem<Type extends Number>A term which contains a set of numerical ranges; a match with any of these indicates a match.classRepresent a query item matching the K nearest neighbors in a multidimensional vector space.classA set of terms which must be near each other to match.classA composite item which specifies semantics which are not maintained if an instance with a single child is replaced by the single child.classA 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.classA placeholder for null queries to make searchers easier to write.classClass representing an IN operator with a set of 64-bit integer values.classOrdered NearItem.classAn or'ing of a collection of sub-expressionsclassA term which contains a phrase - a collection of word termsclassA term which contains a fixed length phrase, a collection of word terms, resulting from a single segmentation operation.classA PredicateQueryItem is a collection of feature/value-pairs that are used to query predicate fields, which contains boolean constraints.classA word which matches beginnings of words instead of complete wordsclassAn integer item which only consists of a value and weight.classA word item which only consists of a value and weight, and gets other properties such as the index to query from ther parent item.classA word item which only consists of a value and weight.classThis class represents a numeric range.classRepresents the rank operator, which only orders the result set and does not change which hits are returned.classMatch a field with the contained regular expression.classThe root node of a query tree.classThis represents a query where all terms are required to match in the same element id.classAn immutable and'ing of a collection of sub-expressions.classCommon implementation for Item classes implementing the IndexedItem interface.classCommon implementation for Item classes implementing the TaggableItem interface.classClass representing an IN operator with a set of string values.classA word that matches substrings of wordsclassA word that matches a suffix of words instead of a complete word.classCommon implementation for Item classes implementing the TaggableItem interface.classSuperclass of "leaf" conditions containing a single entity which is either matched in a field or not.classA query item which matches everything.classAn item matching a uri field.classA weighted set query item to be evaluated as a Wand with dot product scoring.final classWeak 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.classA term which contains a weighted set.classA set of words with differing exactness scores to be used for literal boost ranking.classA simple word or token to match in some field.Fields in com.yahoo.prelude.query declared as ItemModifier and TypeFieldDescriptionprotected ItemItem.connectedBacklinkprotected ItemItem.connectedItemItems for explicit connectivityMethods in com.yahoo.prelude.query that return ItemModifier 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.RootItem.getRoot()Returns the query root.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)Methods in com.yahoo.prelude.query that return types with arguments of type ItemModifier 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()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 firstMethods in com.yahoo.prelude.query with parameters of type ItemModifier and TypeMethodDescriptionprotected voidprotected voidvoidInserts the item at a position and increases the index of existing items starting on this position by onevoidvoidAdds an item.voidvoidAdds subitem.voidvoidAdds subitem.voidvoidvoidvoidvoidNotItem.addNegativeItem(Item negative) Adds a negative item.voidNotItem.addPositiveItem(Item item) Convenience method for adding a positive item.intCompositeItem.getItemIndex(Item item) Returns the index of a subitemvoidItemHelper.getPositiveTerms(Item item, List<IndexedItem> terms) booleanCompositeItem.removeItem(Item item) Removes the given item.booleanNotItem.removeItem(Item item) booleanSegmentItem.removeItem(Item item) voidCompositeTaggableItem.setConnectivity(Item item, double connectivity) voidSimpleTaggableItem.setConnectivity(Item item, double connectivity) voidTaggableItem.setConnectivity(Item item, double connectivity) Set the connectivity to another term in the same query tree.voidTaggableSegmentItem.setConnectivity(Item item, double connectivity) Replaces the item at the given index.NotItem.setPositiveItem(Item item) Sets the positive item (the first item)final voidabstract booleanCalled for each item in the query tree given toToolBox.visit(QueryVisitor, Item).static voidToolBox.visit(ToolBox.QueryVisitor visitor, Item item) Constructors in com.yahoo.prelude.query with parameters of type Item -
Uses of Item in com.yahoo.prelude.query.parser
Methods in com.yahoo.prelude.query.parser that return ItemModifier and TypeMethodDescriptionprotected ItemAllParser.combineItems(Item topLevelItem, Item item) Returns the top level item resulting from combining the given top level item and the new item.protected ItemAnyParser.combineItems(Item topLevelItem, Item item) Returns the top level item resulting from combining the given top level item and the new item.protected ItemAdvancedParser.handleComposite(boolean topLevel) Deprecated.protected ItemAllParser.negativeItem()protected ItemAnyParser.negativeItem()final ItemAbstractParser.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 ItemCustomParser.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 ItemAbstractParser.parseItems()protected ItemAdvancedParser.parseItems()Deprecated.protected ItemAllParser.parseItems()protected ItemAnyParser.parseItems()protected ItemLinguisticsParser.parseItems()protected ItemPhraseParser.parseItems()protected ItemTokenizeParser.parseItems()protected ItemAllParser.parseItemsBody()protected ItemWebParser.parseItemsBody()protected ItemSegments a tokenstatic ItemAbstractParser.simplifyPhrases(Item unwashed) Collapses single item phrases in the tree to the contained item.protected final ItemAllParser.simplifyUnnecessaryComposites(Item item) Methods in com.yahoo.prelude.query.parser with parameters of type ItemModifier and TypeMethodDescriptionprotected CompositeItemAllParser.addAnd(Item item, CompositeItem parent) protected NotItemprotected OrItemprotected ItemAllParser.combineItems(Item topLevelItem, Item item) Returns the top level item resulting from combining the given top level item and the new item.protected ItemAnyParser.combineItems(Item topLevelItem, Item item) Returns the top level item resulting from combining the given top level item and the new item.static ItemAbstractParser.simplifyPhrases(Item unwashed) Collapses single item phrases in the tree to the contained item.protected final ItemAllParser.simplifyUnnecessaryComposites(Item item) -
Uses of Item in com.yahoo.prelude.query.textualrepresentation
Methods in com.yahoo.prelude.query.textualrepresentation with parameters of type ItemConstructors in com.yahoo.prelude.query.textualrepresentation with parameters of type Item -
Uses of Item in com.yahoo.prelude.querytransform
Methods in com.yahoo.prelude.querytransform that return ItemMethods in com.yahoo.prelude.querytransform with parameters of type ItemModifier 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
Methods in com.yahoo.prelude.semantics.engine that return ItemModifier 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 noneMethods in com.yahoo.prelude.semantics.engine with parameters of type ItemModifier and TypeMethodDescriptionvoidAdds an item to the query being evaluated in a way consistent with the query typevoidEvaluation.removeItem(int position, Item item) Removes an item, prefers the one at/close to the given position if there are multiple onesvoidEvaluation.removeItem(Item item) Removes this itemvoidRuleEvaluation.removeItem(int position, Item item) Removes an item, prefers the one at/close to the given position if there are multiple onesvoidRuleEvaluation.removeItem(Item item) voidEvaluation.removeItemByIdentity(Item item) Removes this item by identity to ensure we remove the right one if there are multiple equal itemsvoidRuleEvaluation.removeItemByIdentity(Item item) Method parameters in com.yahoo.prelude.semantics.engine with type arguments of type ItemModifier and TypeMethodDescriptionvoidAdds an item to the query being evaluated in a way consistent with the query typevoidEvaluation.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 typevoidRuleEvaluation.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
Method parameters in com.yahoo.prelude.semantics.rule with type arguments of type ItemModifier and TypeMethodDescriptionprotected voidTermProduction.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
Subclasses of Item in com.yahoo.search.queryMethods in com.yahoo.search.query that return ItemModifier and TypeMethodDescriptionModifies this query to become the current query AND the given item.Modifies this query to become the current query RANK with the given item.Methods in com.yahoo.search.query with parameters of type ItemModifier and TypeMethodDescriptionModifies 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 itemModifies this query to become the current query RANK with the given item.Constructors in com.yahoo.search.query with parameters of type Item -
Uses of Item in com.yahoo.search.query.textserialize
Methods in com.yahoo.search.query.textserialize that return ItemMethods in com.yahoo.search.query.textserialize with parameters of type Item -
Uses of Item in com.yahoo.search.query.textserialize.item
Methods in com.yahoo.search.query.textserialize.item with parameters of type ItemModifier and TypeMethodDescriptionprotected StringAndNotRestConverter.getFormName(Item item) protected StringCompositeConverter.getFormName(Item item) static voidItemInitializer.initialize(Item item, ItemArguments arguments, ItemContext itemContext) static voidItemInitializer.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
Methods in com.yahoo.search.query.textserialize.serializer with parameters of type Item -
Uses of Item in com.yahoo.search.querytransform
Methods in com.yahoo.search.querytransform that return ItemModifier and TypeMethodDescriptionprotected ItemNGramSearcher.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.Methods in com.yahoo.search.querytransform with parameters of type ItemModifier and TypeMethodDescriptionprotected ItemNGramSearcher.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.