summaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/search/grouping/result/Group.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2021-10-12 17:23:15 +0200
committerJon Bratseth <bratseth@gmail.com>2021-10-12 17:23:15 +0200
commita4bea045fa2b78dd2258020ac66413cff4cb39d7 (patch)
tree56ed34bc88bce5bf29d1a728ed1ab23755267b07 /container-search/src/main/java/com/yahoo/search/grouping/result/Group.java
parent9512873b312a5348e29662c1bcd0e07a385c44e1 (diff)
A group hit is not meta since it contains result data
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/grouping/result/Group.java')
-rw-r--r--container-search/src/main/java/com/yahoo/search/grouping/result/Group.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/grouping/result/Group.java b/container-search/src/main/java/com/yahoo/search/grouping/result/Group.java
index 5abecbca566..158cf17d154 100644
--- a/container-search/src/main/java/com/yahoo/search/grouping/result/Group.java
+++ b/container-search/src/main/java/com/yahoo/search/grouping/result/Group.java
@@ -24,13 +24,15 @@ public class Group extends HitGroup {
*/
public Group(GroupId groupId, Relevance rel) {
super(groupId.toString(), rel);
+ setMeta(false);
+ setAuxiliary(true);
this.groupId = groupId;
}
/**
* Returns the id of this group. This is a model of the otherwise flattened {@link #getId() hit id}.
*
- * @return The group id.
+ * @return the group id
*/
public GroupId getGroupId() {
return groupId;
@@ -41,8 +43,8 @@ public class Group extends HitGroup {
* com.yahoo.search.grouping.request.EachOperation} that generated the list. This method returns null if no such
* list was found.
*
- * @param label The label of the list to return.
- * @return The requested list, or null.
+ * @param label the label of the list to return
+ * @return the requested list, or null
*/
public HitList getHitList(String label) {
for (Hit hit : this) {