diff options
author | Tor Egge <Tor.Egge@online.no> | 2022-09-16 13:37:35 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2022-09-16 13:37:35 +0200 |
commit | 071d3ba3b99c9bd61b31eb08f7778afd094bd779 (patch) | |
tree | bb931ade23ecf84f3303469adfa8da255349ddce /searchsummary | |
parent | 5364af49db3478c2852f3a12161250a099ee71db (diff) |
Add comment describing semantics of return value from
SlimeFillerFilter::get_filter().
Diffstat (limited to 'searchsummary')
-rw-r--r-- | searchsummary/src/vespa/searchsummary/docsummary/slime_filler_filter.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/searchsummary/src/vespa/searchsummary/docsummary/slime_filler_filter.h b/searchsummary/src/vespa/searchsummary/docsummary/slime_filler_filter.h index 8f2c5dea392..ba7ba6fe159 100644 --- a/searchsummary/src/vespa/searchsummary/docsummary/slime_filler_filter.h +++ b/searchsummary/src/vespa/searchsummary/docsummary/slime_filler_filter.h @@ -17,7 +17,11 @@ class SlimeFillerFilter { public: SlimeFillerFilter(); ~SlimeFillerFilter(); - static std::optional<const SlimeFillerFilter*> get_filter(const SlimeFillerFilter*, vespalib::stringref field_name); + /* + * If field is blocked by the filter then the return value is not set, + * otherwise it is set to the filter for the next level. + */ + static std::optional<const SlimeFillerFilter*> get_filter(const SlimeFillerFilter* filter, vespalib::stringref field_name); bool empty() const; SlimeFillerFilter& add(vespalib::stringref field_path); }; |