Skip to content

Conversation

dakrone
Copy link
Member

@dakrone dakrone commented Apr 2, 2015

SimpleQueryStringBuilder now includes the fromXContent, doXContent,
and toQuery methods as well as implementing the Streamable interface.

It includes unit tests for the serialization and parsing.

Because of testing, I also implemented hashCode and equals similar
to the way that Lucene queries implement these.

NOTE: this PR is against the feature/query-parse-refactoring branch.

SimpleQueryStringBuilder now includes the `fromXContent`, `doXContent`,
and `toQuery` methods as well as implementing the Streamable interface.

It includes unit tests for the serialization and parsing.

Because of testing, I also implemented `hashCode` and `equals` similar
to the way that Lucene queries implement these.
Copy link
Member

Choose a reason for hiding this comment

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

yea I think this validation should be done on the coordinating node ideally, rather sooner than later. That said we might need to do the same on the data node too (toQuery). Shall we have a validate method or something that can be called from both?

@javanna
Copy link
Member

javanna commented Apr 10, 2015

looks good, I have some comments that are mainly around testing, same as in #10454. I think we should go for a test base class so we trim down the test code required. Define a bunch of tests that need to be present for each query, try and write them in the base class and define abstract methods that we have to go and extend in each specific query test. How does this sound?

Copy link
Member

Choose a reason for hiding this comment

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

out of curiosity, what is this class for? :)

@dakrone
Copy link
Member Author

dakrone commented Apr 24, 2015

Closing this, I will re-create based on the new feature branch since we went a different direction.

@dakrone dakrone closed this Apr 24, 2015
@kevinkluge kevinkluge removed the review label Apr 24, 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.

5 participants