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

EQL: Replace EqlSearchResponse.Hits parser with ObjectParser #50925

Merged
merged 1 commit into from
Jan 13, 2020

Conversation

imotov
Copy link
Contributor

@imotov imotov commented Jan 13, 2020

Replaces the existing hand-build Hits parser with a
ConstructingObjectParser version.

Relates to #49581

Replaces the existing hand-build Hits parser with a
ConstructingObjectParser version.

Relates to elastic#49581
@imotov imotov added the :Analytics/EQL EQL querying label Jan 13, 2020
@imotov imotov requested a review from aleksmaus January 13, 2020 15:39
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (:Search/EQL)

while ((token = parser.nextToken()) != XContentParser.Token.END_OBJECT) {
if (token == XContentParser.Token.FIELD_NAME) {
currentFieldName = parser.currentName();
} else if (token.isValue()) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't implement this path since it existed in the original parser only for backward compatibility with the older version hits total and shouldn't occur in this version.

Copy link
Member

@aleksmaus aleksmaus left a comment

Choose a reason for hiding this comment

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

Thanks!

@aleksmaus
Copy link
Member

@elasticmachine run elasticsearch-ci/2

@imotov imotov merged commit 5c7b827 into elastic:feature/eql Jan 13, 2020
aleksmaus pushed a commit to aleksmaus/elasticsearch that referenced this pull request Jan 27, 2020
…#50925)

Replaces the existing hand-build Hits parser with a
ConstructingObjectParser version.

Relates to elastic#49581
@aleksmaus aleksmaus mentioned this pull request Jan 27, 2020
@imotov imotov deleted the eql-generated-parser branch May 1, 2020 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/EQL EQL querying
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants