diff options
author | Henning Baldersheim <balder@oath.com> | 2018-08-15 09:28:42 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@oath.com> | 2018-08-27 09:22:14 +0200 |
commit | be6729d2eadb3abe61613acb82c59a137ccf12a0 (patch) | |
tree | 7e648f022c922ce8cc700bff77089a2aa2527ce0 /searchlib | |
parent | 73ed7ad7c3cbd41d5ca44c4f2f7ae547fe4c5abe (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.h | 8 |
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; +}; + } |