diff options
author | Arne Juul <arnej@yahoo-inc.com> | 2018-11-23 07:47:46 +0000 |
---|---|---|
committer | gjoranv <gv@oath.com> | 2019-01-21 15:09:29 +0100 |
commit | 34eeb0eae812f6327daf05dcc4b334465a2653d8 (patch) | |
tree | f2c7af5d40bea698e8d86bbab04df3e21dde692b /container-search/src/main/java/com/yahoo/prelude/Index.java | |
parent | b0c516e100c9618fdc6bdca9a76717477d442a35 (diff) |
remove unused code
Diffstat (limited to 'container-search/src/main/java/com/yahoo/prelude/Index.java')
-rw-r--r-- | container-search/src/main/java/com/yahoo/prelude/Index.java | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/Index.java b/container-search/src/main/java/com/yahoo/prelude/Index.java index 109ecfd29f8..8433939090b 100644 --- a/container-search/src/main/java/com/yahoo/prelude/Index.java +++ b/container-search/src/main/java/com/yahoo/prelude/Index.java @@ -53,7 +53,6 @@ public class Index { private boolean uriIndex = false; private boolean hostIndex = false; private StemMode stemMode = StemMode.NONE; - private Attribute[] matchGroup = null; private boolean isAttribute = false; private boolean isDefaultPosition = false; private boolean dynamicSummary=false; @@ -165,8 +164,6 @@ public class Index { setAttribute(true); } else if (commandString.equals("default-position")) { setDefaultPosition(true); - } else if (commandString.startsWith("match-group ")) { - setMatchGroup(commandString.substring(12).split(" ")); } else if (commandString.equals("plain-tokens")) { setPlainTokens(true); } else if (commandString.equals("multivalue")) { @@ -269,19 +266,6 @@ public class Index { return "(null)".equals(name); } - public Attribute[] getMatchGroup() { // TODO: Not in use on Vespa 6 - return matchGroup; - } - - public void setMatchGroup(String[] attributes) { - Attribute[] a = new Attribute[attributes.length]; - - for (int i = 0; i < attributes.length; i++) { - a[i] = new Attribute(attributes[i].trim()); - } - this.matchGroup = a; - } - public boolean isAttribute() { return isAttribute; } |