forked from toptal/chewy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for query string parameters
Per ES docs: search_type, request_cache, and the allow_partial_search_results should not be in the body. They should be sent as query string parameters. My understanding is that chewy should act like this: $ IssuesIndex.request_cache(true).render # good (new) $ {:index=>["issues"], :type=>["issue"], :body=>{}, :request_cache=>true} # bad (old) $ {:index=>["issues"], :type=>["issue"], :body=>{:request_cache=>true} I believe this resolves issue toptal#586 and part of issue toptal#642. (https://www.elastic.co/guide/en/elasticsearch/reference/6.4/search-request-body.html#_parameters_4)
- Loading branch information
1 parent
5503f48
commit dbfe243
Showing
3 changed files
with
39 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters