aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-08-15 09:28:42 +0200
committerHenning Baldersheim <balder@oath.com>2018-08-27 09:22:14 +0200
commitbe6729d2eadb3abe61613acb82c59a137ccf12a0 (patch)
tree7e648f022c922ce8cc700bff77089a2aa2527ce0 /searchlib
parent73ed7ad7c3cbd41d5ca44c4f2f7ae547fe4c5abe (diff)
- Add option to increment an attribute for every doc matched.
- Add option to increment an attribute for every doc reranked. - Add option to increment an attribute for every doc fetched. Conflicts: searchcore/src/vespa/searchcore/proton/matching/attribute_operation.cpp Conflicts: searchlib/src/vespa/searchlib/attribute/i_attribute_functor.h
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/attribute/i_attribute_functor.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/i_attribute_functor.h b/searchlib/src/vespa/searchlib/attribute/i_attribute_functor.h
index 574142f888d..2761f0785f4 100644
--- a/searchlib/src/vespa/searchlib/attribute/i_attribute_functor.h
+++ b/searchlib/src/vespa/searchlib/attribute/i_attribute_functor.h
@@ -2,6 +2,8 @@
#pragma once
+#include <vespa/vespalib/stllike/string.h>
+
namespace search { class AttributeVector; }
namespace search::attribute {
@@ -18,4 +20,10 @@ public:
virtual ~IAttributeFunctor() { }
};
+class IAttributeExecutor {
+public:
+ virtual ~IAttributeExecutor() { }
+ virtual void asyncForAttribute(const vespalib::string &name, std::shared_ptr<IAttributeFunctor> func) const = 0;
+};
+
}