Skip to content

Split HasParentQueryParser into toQuery and formXContent#13408

Merged
s1monw merged 1 commit intoelastic:feature/query-refactoringfrom
s1monw:has_parent_split
Sep 9, 2015
Merged

Split HasParentQueryParser into toQuery and formXContent#13408
s1monw merged 1 commit intoelastic:feature/query-refactoringfrom
s1monw:has_parent_split

Conversation

@s1monw
Copy link
Copy Markdown
Contributor

@s1monw s1monw commented Sep 8, 2015

This commit splits HasParentQueryParser into toQuery and fromXContent.
This change also deprecates several keys in favor of simplified settings
and adds basic unittests for HasParentQueryParser.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I see that you put the prototype in the parser rather that in the builder. That is because it's the only place where it's used I guess (getBuilderPrototype)? looks good

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yeah it was really just used there :) so I was able to make it private

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

makes sense, was about to say we could move all existing prototypes to parsers, but if we then we want to merge parser and builder, let's not do it till we made a decision there ;)

@javanna
Copy link
Copy Markdown
Contributor

javanna commented Sep 9, 2015

LGTM

This commit splits HasParentQueryParser into toQuery and fromXContent.
This change also deprecates several keys in favor of simplified settings
and adds basic unittests for HasParentQueryParser.

Relates to elastic#10217
@s1monw s1monw merged commit d2e53e0 into elastic:feature/query-refactoring Sep 9, 2015
@clintongormley clintongormley added :Search/Search Search-related issues that do not fall into other categories and removed :Query Refactoring labels Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Search/Search Search-related issues that do not fall into other categories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants