Skip to content

Modify search request to incorporate query refactoring #13556

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

Closed
wants to merge 11 commits into from
Closed

Modify search request to incorporate query refactoring #13556

wants to merge 11 commits into from

Conversation

colings86
Copy link
Contributor

No description provided.

/**
* An optional timeout to control how long search is allowed to take.
*/
public NewSearchSourceBuilder timeout(String timeout) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if we should just drop this and push this to the caller instead?

@s1monw
Copy link
Contributor

s1monw commented Sep 14, 2015

I left a bunch of inline comments but this looks awesome!

@colings86
Copy link
Contributor Author

@s1monw thanks for the review. I have push an update although this is far from finished. I also left a few replies to your comments. Next I'll write a unit test for this class to ensure its serialising and deserialising to/from JSON and the transport layer correctly and then I'll set to work plugging this into the search action

@s1monw
Copy link
Contributor

s1monw commented Sep 15, 2015

this looks pretty neat dude!

@colings86
Copy link
Contributor Author

@s1monw @javanna I pushed some more commits to this. It should now compile and the tests should pass but there is quite a bit more work to be done:

  1. At the moment the SearchSourceBuilder is only used to generate the JSON request bytes to pass into the SearchRequest. We need to embed SearchSourceBuilder in the SearchRequest and then pass it to the ShardLocalSearchRequest and use it there to execute the search (parsing the bits that are currently stored as BytesReferences)
  2. There are some muted and commented out tests (all have NORELEASE comments on them) which need to be got working
  3. The RestDeleteByQueryAction needs fixing to parse the JSON body of the deleteByQuery request into a QueryBuilder
  4. The NewSearchSourceBuilderTests class (to be renamed later) has some NORELEASE comments where we need to add code to randomly generate aggregations, suggests, etc.

@s1monw
Copy link
Contributor

s1monw commented Sep 22, 2015

@colings86 can you push it to a public branch so we can all work on it?

@colings86
Copy link
Contributor Author

@colings86
Copy link
Contributor Author

This has been superseded by #13752

@colings86 colings86 closed this Sep 23, 2015
@colings86 colings86 deleted the refactor/searchRequestBytes branch September 23, 2015 21:38
@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 WIP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants