-
Notifications
You must be signed in to change notification settings - Fork 614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement matched-elements-only for indexed arrays #33285
base: master
Are you sure you want to change the base?
Conversation
@@ -30,6 +30,28 @@ namespace search::fef { | |||
|
|||
namespace proton::matching { | |||
|
|||
class FieldIdToNameMapper { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider moving thisclass to a separate header file.
@@ -30,6 +30,28 @@ namespace search::fef { | |||
|
|||
namespace proton::matching { | |||
|
|||
class FieldIdToNameMapper { | |||
public: | |||
const std::string & lookup(uint32_t fieldId) const { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider deinlining the implementation of lookup
} | ||
return lookupFailed; | ||
} | ||
uint32_t lookup(const std::string& fieldName) const { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This version of lookup appears to be unused. Consider removing it.
@toregge please review
@havardpe please review
@geirst FYI
Note: this won't work for weighted set terms.