Uses of Class
com.yahoo.search.result.Hit
Package
Description
The top level classes of the search container. A Query represents the incoming request, which produces a Result
by chained execution of a set of Searchers.
The content of a Result produced in response to a Query.
-
Uses of Hit in com.yahoo.prelude.fastsearch
Modifier and TypeClassDescriptionclass
A regular hit from a Vespa backendclass
Modifier and TypeMethodDescriptionstatic Comparator<Hit>
SortDataHitSorter.getComparator
(Sorting sorting, Comparator<Hit> fallback) Modifier and TypeMethodDescriptionint
static boolean
SortDataHitSorter.isSortable
(Hit hit, Sorting sorting) Modifier and TypeMethodDescriptionstatic Comparator<Hit>
SortDataHitSorter.getComparator
(Sorting sorting, Comparator<Hit> fallback) static void
-
Uses of Hit in com.yahoo.search
Modifier and TypeMethodDescriptionprotected void
Result.traceExtraHitProperties
(StringBuilder hitBuffer, Hit hit) For tracing custom properties of a hit, see trace(String). -
Uses of Hit in com.yahoo.search.grouping.result
Modifier and TypeClassDescriptionclass
class
A single group in the grouping result model.class
A labeled group list in the grouping result model.class
This class represents a labeled hit list in the grouping result model.class
This class represents the rootGroup
in the grouping result model. -
Uses of Hit in com.yahoo.search.pagetemplates.result
Modifier and TypeClassDescriptionclass
A hit group corresponding to a section - contains some additional information in proper getters and setters which is used during rendering. -
Uses of Hit in com.yahoo.search.rendering
Modifier and TypeMethodDescriptionabstract void
Called when a Hit is encountered.protected void
JsonRenderer.renderAllFields
(Hit hit) protected void
void
Renders this hit as xml.protected void
JsonRenderer.renderHitContents
(Hit hit) protected void
JsonRenderer.renderTotalHitCount
(Hit hit) protected boolean
JsonRenderer.shouldRender
(Hit hit) -
Uses of Hit in com.yahoo.search.result
Modifier and TypeClassDescriptionclass
A hit which holds a list of error conditions in a result.class
A group of ordered hits.Modifier and TypeMethodDescriptionAdds a hit to this group.Hit.clone()
HitGroup.get
(int index) Returns the hit at the given (0-base) index in this group of hit (without searching any subgroups).HitGroup.get
(com.yahoo.net.URI id, int depth) Returns the hit with the given id, or null if there is no hit with this id in this group or any subgroup.Same asHitGroup.get(String,int)
DeepHitIterator.next()
HitIterator.next()
HitGroup.remove
(int index) Removes a hit from this group (not considering the hits of any subgroup)HitGroup.remove
(com.yahoo.net.URI uri) Removes a hit from this group or any subgroup.Removes a hit from this group or any subgroupModifier and TypeMethodDescriptionHitGroup.asList()
Returns a read only list view of the hits in thisHitGroup.asUnorderedHits()
Returns a read only list view of the hits in this which is potentially unsorted.CompletableFuture<com.yahoo.processing.response.DataList<Hit>>
HitGroup.completeFuture()
HitGroup.deepIterator()
Returns an iterator that does depth-first traversal of leaf hits of this group.HitOrderer.getComparator()
Returns the Comparator that this HitOrderer uses internally to sort hits.HitSortOrderer.getComparator()
ChainableComparator.getSecondaryComparator()
Returns the comparator to use to compare hits which are equal according to this, or null if nonecom.yahoo.processing.response.IncomingData<Hit>
HitGroup.incoming()
Returns the incoming hit buffer to which new hits can be added to this asynchronous, if supported by the instanceHitGroup.iterator()
Returns an iterator of the hits in this group.HitGroup.unorderedDeepIterator()
Returns an iterator that does depth-first traversal of leaf hits of this group, in a potentially unsorted order.HitGroup.unorderedIterator()
Returns an iterator of the hits in this group in a potentially unsorted order.Modifier and TypeMethodDescriptionvoid
Adds a hit to this group in the specified index, all existing hits on this index and higher will have their index increased by one.Adds a hit to this group.int
Returns the comparison form the secondary comparison, or 0 if the secondary is null.int
Compares hits based on a sorting specification and values stored in hit fields.0int
int
int
Compares this hit to another hitvoid
Inserts the given hit at the specified index in this group.Modifier and TypeMethodDescriptionvoid
Adds a list of hits to this group, the same as calling add for each item in the list.abstract void
Orders the given list of hitsvoid
Orders the given list of hits according to the sorting given at construction Meta hits are sorted before concrete hits, but have no internal ordering.ModifierConstructorDescriptionChainableComparator
(Comparator<Hit> secondaryComparator) Creates this comparator, given a secondary comparator, or null if there is no secondaryDeepHitIterator
(Iterator<Hit> it, boolean ordered) Create a deep hit iterator based on the given hit iterator.FieldComparator
(Sorting sorting, Comparator<Hit> secondaryComparator) Creates a field comparator using a sort order with a chained comparatorprotected
HitGroup
(String id, Relevance relevance, com.yahoo.processing.response.IncomingData<Hit> incomingHits) Creates a group hitHitGroupsLastComparator
(Comparator<Hit> secondaryComparator) HitIterator
(HitGroup hitGroup, List<Hit> hits) HitIterator
(Result result, List<Hit> hits) HitSortOrderer
(Comparator<Hit> comparator) Create a sort order from a comparator.MetaHitsFirstComparator
(Comparator<Hit> secondaryComparator)