Skip to content
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

Refactor tagging of TermFieldMatchData #9548

Merged
merged 1 commit into from May 27, 2019

Conversation

toregge
Copy link
Member

@toregge toregge commented May 24, 2019

@geirst : please review
@havardpe : FYI

Copy link
Member

@geirst geirst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -112,6 +114,20 @@ HandleRecorder::add(TermFieldHandle handle,
}
}

void
HandleRecorder::tag_match_data(MatchData &match_data) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: "{" should be on the next line.

@geirst geirst merged commit 129db96 into master May 27, 2019
@geirst geirst deleted the toregge/refactor-term-field-match-data-tagging branch May 27, 2019 07:38
@@ -112,6 +114,20 @@ HandleRecorder::add(TermFieldHandle handle,
}
}

void
HandleRecorder::tag_match_data(MatchData &match_data) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For upcoming PR please add unit test for this in handle_recorder_test.cpp.

@@ -19,6 +20,7 @@ TermFieldMatchData::TermFieldMatchData() :
TermFieldMatchData::TermFieldMatchData(const TermFieldMatchData & rhs) :
_docId(rhs._docId),
_fieldId(rhs._fieldId),
_flags(UNPACK_ALL_FEATURES_MASK),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should copy flags from rhs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants