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

JAVA API: Fix source excludes setting if no includes were provided #6649

Merged

Conversation

spinscale
Copy link
Contributor

Due to a bogus if-check in SearchSourceBuilder.fetchSource(String include, String exclude)
the excludes only got set when the includes were not null. Fixed this and added some
basic tests.

Closes #6632


SearchSourceBuilder builder = new SearchSourceBuilder();

@Test // issue
Copy link
Member

Choose a reason for hiding this comment

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

You meant to add here the issue number right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops. fixed

@javanna javanna removed the review label Jun 30, 2014
@javanna
Copy link
Member

javanna commented Jun 30, 2014

Left a minor comment, LGTM otherwise.
I really like the fact that you wrote unit tests for it!

@javanna javanna removed the review label Jul 1, 2014
@javanna
Copy link
Member

javanna commented Jul 1, 2014

LGTM

@s1monw
Copy link
Contributor

s1monw commented Jul 2, 2014

this should be ported to 1.2 :P

Due to a bogus if-check in SearchSourceBuilder.fetchSource(String include, String exclude)
the excludes only got set when the includes were not null. Fixed this and added some
basic tests.

Closes elastic#6632
@spinscale spinscale merged commit 16fe44c into elastic:master Jul 2, 2014
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.

Fix source excludes setting if no includes were provided
3 participants