aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/prelude/query/IndexedItem.java
diff options
context:
space:
mode:
Diffstat (limited to 'container-search/src/main/java/com/yahoo/prelude/query/IndexedItem.java')
-rw-r--r--container-search/src/main/java/com/yahoo/prelude/query/IndexedItem.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/query/IndexedItem.java b/container-search/src/main/java/com/yahoo/prelude/query/IndexedItem.java
new file mode 100644
index 00000000000..6f873e28f8a
--- /dev/null
+++ b/container-search/src/main/java/com/yahoo/prelude/query/IndexedItem.java
@@ -0,0 +1,23 @@
+// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+package com.yahoo.prelude.query;
+
+
+/**
+ * Interface for Items that is indexed
+ *
+ * @author Lars Christian Jensen
+ */
+public interface IndexedItem extends HasIndexItem {
+
+ /** Sets the name of the index to search */
+ public void setIndexName(String index);
+
+ /**
+ * Return the searchable term contents of this item.
+ *
+ * @return a string representation of what is presumably stored in an index
+ * which will match this item
+ */
+ public String getIndexedString();
+
+}