- 
                Notifications
    You must be signed in to change notification settings 
- Fork 136
Add “suggest” to the whitelisted ES search body keys #2019
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
Add “suggest” to the whitelisted ES search body keys #2019
Conversation
| Codecov Report
 
 @@           Coverage Diff           @@
##            2-dev    #2019   +/-   ##
=======================================
  Coverage   93.83%   93.83%           
=======================================
  Files         123      123           
  Lines        7727     7727           
=======================================
  Hits         7251     7251           
  Misses        476      476           
 Continue to review full report at Codecov. 
 | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution, it's very much appreciated ;-)
Can you also update the documentation to reflect this change ? https://github.com/kuzzleio/kuzzle/blob/master/doc/2/guides/main-concepts/querying/index.md
Also since the result of the suggest keyword are not including in the hits array, you will need to add it in the return of the controller action here: https://github.com/kuzzleio/kuzzle/blob/master/lib/api/controllers/documentController.js#L93
| I hope I've done it correctly. 😊 | 
| If you could just add/modify an unit test in the document controller, verifying that the  | 
## What does this PR do? Add support for ES suggesters (`suggest` keyword) See also kuzzleio/kuzzle#2019 ### Other changes - reduce the bundle size by ignoring node packages for the web build `230KB => 137KB` (fix #616)
| I haven't quite catched how the mocking works so I'm not sure if it's the implementation failing or test not properly test up. I'll figure it out. | 
| Kudos, SonarCloud Quality Gate passed! 
 
 | 
| It seems to go through now. I'm not sure if the  | 
| 
 Since the  | 







What does this PR do ?
Adds the
suggestkeyword to whitelisted ES search body.