aboutsummaryrefslogtreecommitdiffstats
path: root/searchcommon
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2020-03-23 13:56:39 +0000
committerArne Juul <arnej@verizonmedia.com>2020-03-23 14:30:35 +0000
commitdabdfd757930a7bb06035c718fce456326cf6f63 (patch)
tree1da8fb4773ae1f595d9a565501fb5ce76e324e9a /searchcommon
parentb1324afaa4cb684862debfb97a492750960cd0cf (diff)
add enum for selecting distance metric
Diffstat (limited to 'searchcommon')
-rw-r--r--searchcommon/src/vespa/searchcommon/attribute/distance_metric.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/searchcommon/src/vespa/searchcommon/attribute/distance_metric.h b/searchcommon/src/vespa/searchcommon/attribute/distance_metric.h
new file mode 100644
index 00000000000..9309a0a86dc
--- /dev/null
+++ b/searchcommon/src/vespa/searchcommon/attribute/distance_metric.h
@@ -0,0 +1,9 @@
+// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+
+#pragma once
+
+namespace search::attribute {
+
+enum class DistanceMetric { Euclidean, Angular, GeoDegrees };
+
+}