Add include_metadata request parameter for PPL queries #5235#5412
Add include_metadata request parameter for PPL queries #5235#5412ishag4 wants to merge 2 commits intoopensearch-project:mainfrom
Conversation
…ject#5235 Signed-off-by: Isha Gupta <igupta24@apple.com>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|
Hi @LantaoJin @penghuo @RyanL1997 @Swiddis Could you please review? |
Description
Add a request-level parameter include_metadata to the PPL query API:
POST /_plugins/_ppl?include_metadata=true
{
"query": "source=logs | where level='ERROR' | fields * | head 10"
}
Result: All regular fields PLUS metadata fields (_id, _index, _score, etc.)
Related Issues
Resolves #5235
Check List
--signoffor-s.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.