Skip to content

Conversation

cbuescher
Copy link
Member

Moving the query building functionality from the parser to the builders
new toQuery() method analogous to other recent query refactorings.

Relates to #10217

case INT_FIELD_NAME: littleValue = randomInt(); break;
case DOUBLE_FIELD_NAME: littleValue = randomDouble(); break;
case STRING_FIELD_NAME: littleValue = randomAsciiOfLengthBetween(1, 10); break;
default : littleValue = randomAsciiOfLengthBetween(1, 10);
Copy link
Member

Choose a reason for hiding this comment

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

we can reuse the method from some other PR that I saw today right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, this will be shorter with the utility method I'm just preparing for #12342.

@javanna
Copy link
Member

javanna commented Jul 22, 2015

left a very minor comment, LGTM otherwise

Moving the query building functionality from the parser to the builders
new toQuery() method analogous to other recent query refactorings.

Relates to elastic#10217
@cbuescher cbuescher force-pushed the feature/query-refactoring-spanwithin branch from c2ca645 to fc1b5a9 Compare July 22, 2015 14:23
cbuescher added a commit that referenced this pull request Jul 22, 2015
…anwithin

Query refactoring: SpanWithinQueryBuilder and Parser
@cbuescher cbuescher merged commit 82555fd into elastic:feature/query-refactoring Jul 22, 2015
mute pushed a commit to mute/elasticsearch that referenced this pull request Jul 29, 2015
…ring-spanwithin

Query refactoring: SpanWithinQueryBuilder and Parser
@javanna
Copy link
Member

javanna commented Aug 28, 2015

This change is breaking for the java api as it removed setters for mandatory big/little inner span queries. Both arguments have to be supplied at construction time instead and have to be non-null.

@cbuescher cbuescher deleted the feature/query-refactoring-spanwithin branch March 11, 2016 11:51
@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
>breaking :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