aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/prelude/query/Item.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-03-23 14:43:53 +0100
committerJon Bratseth <bratseth@gmail.com>2022-03-23 14:43:53 +0100
commit67722f72878f0e19855ccb58bf06ffc9d39339c3 (patch)
treeab55a2742aa52c988f7a9a90e87041a0aecb9dcb /container-search/src/main/java/com/yahoo/prelude/query/Item.java
parent54329a8946debe301d2036397bc4a9d47764555f (diff)
No functional changes
Diffstat (limited to 'container-search/src/main/java/com/yahoo/prelude/query/Item.java')
-rw-r--r--container-search/src/main/java/com/yahoo/prelude/query/Item.java16
1 files changed, 5 insertions, 11 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/query/Item.java b/container-search/src/main/java/com/yahoo/prelude/query/Item.java
index 06fe07d3895..87b6de875c6 100644
--- a/container-search/src/main/java/com/yahoo/prelude/query/Item.java
+++ b/container-search/src/main/java/com/yahoo/prelude/query/Item.java
@@ -26,10 +26,7 @@ import java.util.Objects;
*/
public abstract class Item implements Cloneable {
- /**
- * The definitions in Item.ItemType must match the ones in
- * searchlib/src/vespa/searchlib/parsequery/parse.h
- */
+ // These must match the types in searchlib/src/vespa/searchlib/parsequery/parse.h
public enum ItemType {
OR(0),
AND(1),
@@ -70,10 +67,7 @@ public abstract class Item implements Cloneable {
}
- /**
- * The definitions in Item.ItemCreator must match the ones in
- * searchlib/src/searchlib/parsequery/parse.h
- */
+ // These must match the definitions in searchlib/src/searchlib/parsequery/parse.h
public enum ItemCreator {
ORIG(0),
@@ -266,11 +260,11 @@ public abstract class Item implements Cloneable {
}
/**
- * Returns an integer that contains all feature flags for this item. This must be kept in sync with the flags
- * defined in searchlib/parsequery/parse.h.
+ * Returns an integer that contains all feature flags for this item.
*
* @return the feature flags
*/
+ // This must be kept in sync with the flags in searchlib/parsequery/parse.h.
private byte getFlagsFeature() {
byte FLAGS_NORANK = 0x01;
byte FLAGS_SPECIALTOKEN = 0x02;
@@ -419,7 +413,7 @@ public abstract class Item implements Cloneable {
* the back-end to identify specific items for ranking purposes.
*
* @param label label for this item
- **/
+ */
public void setLabel(String label) {
setHasUniqueID(true);
this.label = label;