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

Split HasParentQueryParser into toQuery and formXContent #13408

Merged
merged 1 commit into from
Sep 9, 2015

Conversation

s1monw
Copy link
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.


private static final HasParentQueryBuilder PROTOTYPE = new HasParentQueryBuilder("", EmptyQueryBuilder.PROTOTYPE);
Copy link
Member

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
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
Member

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
Member

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