summaryrefslogtreecommitdiffstats
path: root/container-search
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2018-10-31 10:42:46 +0000
committerJon Bratseth <bratseth@oath.com>2018-10-31 10:42:46 +0000
commit7dd4c597ba0647d6ddc9e0e53df4bbd8a13acb72 (patch)
treed4704ab806210c8d1eb61ca75e2f63cf53191db0 /container-search
parent114009196bb3669f3892fbd0ddeffe8ee6e2a633 (diff)
Allow ExactItem inside Equiv
Diffstat (limited to 'container-search')
-rw-r--r--container-search/src/main/java/com/yahoo/prelude/query/EquivItem.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/query/EquivItem.java b/container-search/src/main/java/com/yahoo/prelude/query/EquivItem.java
index 13ae2078a53..f7f24f5521d 100644
--- a/container-search/src/main/java/com/yahoo/prelude/query/EquivItem.java
+++ b/container-search/src/main/java/com/yahoo/prelude/query/EquivItem.java
@@ -30,6 +30,7 @@ public class EquivItem extends CompositeTaggableItem {
Validator.ensure("Could not add an item of type " + item.getItemType() +
": Equiv can only have word/int/phrase as children",
item.getItemType() == ItemType.WORD ||
+ item.getItemType() == ItemType.EXACT ||
item.getItemType() == ItemType.INT ||
item.getItemType() == ItemType.PHRASE);
}