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

[Fix](analyzer) add ownership flag to Field's TokenStream value and Analyzer's Reader #222

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

airborne12
Copy link
Member

No description provided.

Copy link

@xiaokang xiaokang left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -340,7 +341,10 @@ void Field::_resetValue() {
} else if (valueType & VALUE_BINARY) {
ValueArray<uint8_t>* v = static_cast<ValueArray<uint8_t>*>(fieldsData);
_CLDELETE(v);
}
} else if (valueType & VALUE_TOKENSTREAM && ownStream) {

Choose a reason for hiding this comment

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

if add here will change other VALUE_TOKENSTREAM Field logic in cluecen?

Copy link
Collaborator

@zzzxl1993 zzzxl1993 left a comment

Choose a reason for hiding this comment

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

LGTM

@qidaye qidaye merged commit 2532463 into apache:clucene Jun 12, 2024
3 of 4 checks passed
airborne12 added a commit to airborne12/doris-thirdparty that referenced this pull request Jun 19, 2024
airborne12 added a commit that referenced this pull request Jun 19, 2024
…alyzer (#225)

* [Fix](analyzer) add ownership flag to Field's TokenStream value and Analyzer's Reader (#222)

* [Fix](analyzer) add reader ownership for chinese and standard analyzer (#223)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants