diff options
author | Henning Baldersheim <balder@oath.com> | 2018-05-23 19:27:25 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@oath.com> | 2018-05-23 23:21:04 +0200 |
commit | 20a8b3bf2bf657c0591a7866fa1f56d996f21622 (patch) | |
tree | 9b9eda8d3b65ea0e2291d157502a4b820ce625f8 /searchcommon | |
parent | fad8b5a92af2c3bc5749f8196f8f1f954b0d7171 (diff) |
onCmp -> onFind
Diffstat (limited to 'searchcommon')
-rw-r--r-- | searchcommon/src/vespa/searchcommon/attribute/i_search_context.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/searchcommon/src/vespa/searchcommon/attribute/i_search_context.h b/searchcommon/src/vespa/searchcommon/attribute/i_search_context.h index 151e24b5b64..d18c4840009 100644 --- a/searchcommon/src/vespa/searchcommon/attribute/i_search_context.h +++ b/searchcommon/src/vespa/searchcommon/attribute/i_search_context.h @@ -18,8 +18,8 @@ public: using DocId = uint32_t; private: - virtual int32_t onCmp(DocId docId, int32_t elementId, int32_t &weight) const = 0; - virtual int32_t onCmp(DocId docId, int32_t elementId) const = 0; + virtual int32_t onFind(DocId docId, int32_t elementId, int32_t &weight) const = 0; + virtual int32_t onFind(DocId docId, int32_t elementId) const = 0; public: virtual ~ISearchContext() {} @@ -51,8 +51,8 @@ public: virtual const QueryTermBase &queryTerm() const = 0; virtual const vespalib::string &attributeName() const = 0; - int32_t find(DocId docId, int32_t elementId, int32_t &weight) const { return onCmp(docId, elementId, weight); } - int32_t find(DocId docId, int32_t elementId) const { return onCmp(docId, elementId); } + int32_t find(DocId docId, int32_t elementId, int32_t &weight) const { return onFind(docId, elementId, weight); } + int32_t find(DocId docId, int32_t elementId) const { return onFind(docId, elementId); } bool matches(DocId docId, int32_t &weight) const { weight = 0; int32_t oneWeight(0); |