summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/searchdefinition/Index.java
diff options
context:
space:
mode:
Diffstat (limited to 'config-model/src/main/java/com/yahoo/searchdefinition/Index.java')
-rw-r--r--config-model/src/main/java/com/yahoo/searchdefinition/Index.java17
1 files changed, 1 insertions, 16 deletions
diff --git a/config-model/src/main/java/com/yahoo/searchdefinition/Index.java b/config-model/src/main/java/com/yahoo/searchdefinition/Index.java
index aba6cf9a233..577639ead7a 100644
--- a/config-model/src/main/java/com/yahoo/searchdefinition/Index.java
+++ b/config-model/src/main/java/com/yahoo/searchdefinition/Index.java
@@ -24,8 +24,6 @@ import java.util.Set;
*/
public class Index implements Cloneable, Serializable {
- public static enum DistanceMetric { EUCLIDEAN, ANGULAR, GEODEGREES }
-
public enum Type {
VESPA("vespa");
@@ -65,8 +63,6 @@ public class Index implements Cloneable, Serializable {
private Optional<HnswIndexParams> hnswIndexParams = Optional.empty();
- private Optional<DistanceMetric> distanceMetric = Optional.empty();
-
/** Whether the posting lists of this index field should have interleaved features (num occs, field length) in document id stream. */
private boolean interleavedFeatures = false;
@@ -138,13 +134,12 @@ public class Index implements Cloneable, Serializable {
stemming == index.stemming &&
type == index.type &&
Objects.equals(boolIndex, index.boolIndex) &&
- Objects.equals(distanceMetric, index.distanceMetric) &&
Objects.equals(hnswIndexParams, index.hnswIndexParams);
}
@Override
public int hashCode() {
- return Objects.hash(name, rankType, prefix, aliases, stemming, normalized, type, boolIndex, distanceMetric, hnswIndexParams, interleavedFeatures);
+ return Objects.hash(name, rankType, prefix, aliases, stemming, normalized, type, boolIndex, hnswIndexParams, interleavedFeatures);
}
public String toString() {
@@ -192,16 +187,6 @@ public class Index implements Cloneable, Serializable {
boolIndex = def;
}
- public Optional<DistanceMetric> getDistanceMetric() {
- return distanceMetric;
- }
-
- public void setDistanceMetric(String value) {
- String upper = value.toUpperCase(Locale.ENGLISH);
- DistanceMetric dm = DistanceMetric.valueOf(upper);
- distanceMetric = Optional.of(dm);
- }
-
public Optional<HnswIndexParams> getHnswIndexParams() {
return hnswIndexParams;
}