summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-08-24 13:34:20 +0200
committerGitHub <noreply@github.com>2022-08-24 13:34:20 +0200
commitbb2a96b90f2ed0890de58dc955bb6c9bc433beee (patch)
tree57b7ca32a1314539107912f42ad55a251e0a1771 /searchlib
parent41a101bd2ccfa74e072a2de51101e7881dbe8b50 (diff)
parent0ecd1ebf6e06ea9ee0d5c8fda12b02f3c2f66c13 (diff)
Merge pull request #23755 from vespa-engine/balder/also-track-dropped-docids
Balder/also track dropped docids
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/fef/ranksetup.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/searchlib/src/vespa/searchlib/fef/ranksetup.h b/searchlib/src/vespa/searchlib/fef/ranksetup.h
index 1ad2fe0a77a..5b39715d5a1 100644
--- a/searchlib/src/vespa/searchlib/fef/ranksetup.h
+++ b/searchlib/src/vespa/searchlib/fef/ranksetup.h
@@ -31,6 +31,7 @@ public:
: _attribute(attribute),
_operation(operation)
{}
+ bool enabled() const { return !_attribute.empty() && !_operation.empty(); }
vespalib::string _attribute;
vespalib::string _operation;
};