Uses of Class
com.yahoo.prelude.query.Item
-
Packages that use Item Package Description 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.com.yahoo.search.query The search query modelcom.yahoo.search.query.textserialize -
-
Uses of Item in com.yahoo.prelude.query
Subclasses of Item in com.yahoo.prelude.query Modifier and Type Class Description class
AndItem
An and'ing of a collection of sub-expressionsclass
AndSegmentItem
An immutable and'ing of a collection of sub-expressions.class
BoolItem
A true/false term suitable for searching bool indexes.class
CompositeIndexedItem
Common implementation for Item classes implementing the IndexedItem interface.class
CompositeItem
Superclass of expressions which contains a collection of sub-expressionsclass
CompositeTaggableItem
Common implementation for Item classes implementing the TaggableItem interface.class
DotProductItem
A weighted set query item to be evaluated as a sparse dot product.class
EquivItem
An Item where each child is an alternative which can be matched.class
ExactStringItem
Used to signal that this term requires exact match if the backend supports it.class
FalseItem
A query item which never matches.class
IndexedSegmentItem
Common implementation for Item classes implementing the IndexedItem interface.class
IntItem
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
MarkerWordItem
Special words known by the index used for marking things.class
NearItem
A set of terms which must be near each other to match.class
NonReducibleCompositeItem
A composite item which specifies semantics which are not maintained if an instance with a single child is replaced by the single child.class
NotItem
A composite item where the first item is positive and the following items are negative items which should be excluded from the result.class
NullItem
A place holder for null queries to make searchers easier to write.class
ONearItem
Ordered NearItem.class
OrItem
An or'ing of a collection of sub-expressionsclass
PhraseItem
A term which contains a phrase - a collection of word termsclass
PhraseSegmentItem
A term which contains a fixed length phrase, a collection of word terms, resulting from a single segmentation operation.class
PredicateQueryItem
A PredicateQueryItem is a collection of feature/value-pairs that are used to query predicate fields, which contains boolean constraints.class
PrefixItem
A word which matches beginnings of words instead of complete wordsclass
PureWeightedInteger
class
PureWeightedItem
class
PureWeightedString
class
RangeItem
This class represents a numeric range.class
RankItem
Represents the rank operator, which only orders the result set and does not change which hits are returned.class
RegExpItem
Match a field with the contained regular expression.class
SameElementItem
This represents a query where all terms are required to match in the same element id.class
SegmentItem
An immutable and'ing of a collection of sub-expressions.class
SimpleIndexedItem
Common implementation for Item classes implementing the IndexedItem interface.class
SimpleTaggableItem
Common implementation for Item classes implementing the TaggableItem interface.class
SubstringItem
A word that matches substrings of wordsclass
SuffixItem
A word that matches a suffix of words instead of a complete word.class
TaggableSegmentItem
Common implementation for Item classes implementing the TaggableItem interface.class
TermItem
Superclass of "leaf" conditions containing a single entity which is either matched in a field or not.class
UriItem
An item matching a uri field.class
WandItem
A weighted set query item to be evaluated as a Wand with dot product scoring.class
WeakAndItem
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
WeightedSetItem
A term which contains a weighted set.class
WordAlternativesItem
A set words with differing exactness scores to be used for literal boost ranking.class
WordItem
A simple word or token to match in some field.Fields in com.yahoo.prelude.query declared as Item Modifier and Type Field Description protected Item
Item. connectedBacklink
protected Item
Item. connectedItem
Items for explicit connectivityMethods in com.yahoo.prelude.query that return Item Modifier and Type Method Description Item
Item. clone()
Returns a deep copy of this itemItem
TermType. createItemClass()
Returns an instance of the class corresponding to the given type, AndItem if this is the DEFAULT typeItem
CompositeTaggableItem. getConnectedItem()
Item
SimpleTaggableItem. getConnectedItem()
Item
TaggableItem. getConnectedItem()
Item
TaggableSegmentItem. getConnectedItem()
Item
CompositeItem. getItem(int index)
Returns a subitemItem
NotItem. getPositiveItem()
Returns the positive item (the first subitem), or null if no positive items has been addedItem
CompositeItem. removeItem(int index)
Removes the item at the given indexItem
NotItem. removeItem(int index)
Item
SegmentItem. removeItem(int index)
Item
CompositeItem. setItem(int index, Item item)
Replaces the item at the given indexItem
PhraseItem. setItem(int index, Item item)
Item
NotItem. setPositiveItem(Item item)
Sets the positive item (the first item)Methods in com.yahoo.prelude.query that return types with arguments of type Item Modifier and Type Method Description java.util.Optional<Item>
CompositeItem. extractSingleChild()
Will return its single child if itself can safely be omitted.java.util.Optional<Item>
NonReducibleCompositeItem. extractSingleChild()
java.util.Optional<Item>
PhraseItem. extractSingleChild()
java.util.Optional<Item>
PhraseSegmentItem. extractSingleChild()
java.util.Optional<Item>
SameElementItem. extractSingleChild()
java.util.ListIterator<Item>
CompositeItem. getItemIterator()
Returns a modifiable list iterator of the immediate children of thisjava.util.List<Item>
CompositeItem. items()
Returns a read only list of the immediate children of thisjava.util.List<Item>
NotItem. negativeItems()
Returns the negative items of this: All child items except the firstMethods in com.yahoo.prelude.query with parameters of type Item Modifier and Type Method Description protected void
CompositeItem. adding(Item item)
protected void
EquivItem. adding(Item item)
protected void
SameElementItem. adding(Item item)
void
CompositeItem. addItem(int index, Item item)
Inserts the item at a position and increases the index of existing items starting on this position by onevoid
CompositeItem. addItem(Item item)
void
NotItem. addItem(Item item)
Adds an item.void
PhraseItem. addItem(int index, Item item)
void
PhraseItem. addItem(Item item)
Adds subitem.void
PhraseSegmentItem. addItem(Item item)
Adds subitem.void
SegmentItem. addItem(int index, Item item)
void
SegmentItem. addItem(Item item)
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, java.util.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)
Item
CompositeItem. setItem(int index, Item item)
Replaces the item at the given indexItem
PhraseItem. setItem(int index, Item item)
Item
NotItem. setPositiveItem(Item item)
Sets the positive item (the first item)abstract boolean
ToolBox.QueryVisitor. visit(Item item)
Called for each item in the query tree given toToolBox.visit(QueryVisitor, Item)
.static void
ToolBox. visit(ToolBox.QueryVisitor visitor, Item item)
Constructors in com.yahoo.prelude.query with parameters of type Item Constructor Description EquivItem(Item item)
Creates an EQUIV with the given item as child.EquivItem(Item item, java.util.Collection<java.lang.String> words)
Creates an EQUIV with the given item and a set of alternate words as children. -
Uses of Item in com.yahoo.search.query
Subclasses of Item in com.yahoo.search.query Modifier and Type Class Description class
QueryTree
The root node of a query tree.Methods in com.yahoo.search.query that return Item Modifier and Type Method Description Item
QueryTree. and(Item item)
Modifies this query to become the current query AND the given item.Item
QueryTree. getRoot()
Returns the query root.Methods in com.yahoo.search.query with parameters of type Item Modifier and Type Method Description void
QueryTree. addItem(int index, Item item)
void
QueryTree. addItem(Item item)
Item
QueryTree. and(Item item)
Modifies this query to become the current query AND the given item.static java.util.List<IndexedItem>
QueryTree. getPositiveTerms(Item item)
Returns a flattened list of all positive query terms under the given itemvoid
QueryTree. setRoot(Item root)
Constructors in com.yahoo.search.query with parameters of type Item Constructor Description QueryTree(Item root)
-
Uses of Item in com.yahoo.search.query.textserialize
Methods in com.yahoo.search.query.textserialize that return Item Modifier and Type Method Description static Item
TextSerialize. parse(java.lang.String serializedQuery)
Methods in com.yahoo.search.query.textserialize with parameters of type Item Modifier and Type Method Description static java.lang.String
TextSerialize. serialize(Item item)
-