Skip to content
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

support _source_excludes,_source_includes in ES API #4572

Merged
merged 3 commits into from
Feb 15, 2024
Merged

Conversation

PSeitz
Copy link
Contributor

@PSeitz PSeitz commented Feb 13, 2024

closes #4564

@PSeitz PSeitz requested a review from fmassot February 13, 2024 07:01
_source_excludes: &Option<Vec<String>>,
_source_includes: &Option<Vec<String>>,
) -> ElasticHit {
let mut fields: BTreeMap<String, serde_json::Value> =
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this will work with a field like app.id where the JSON document is {"app": {"id": 123}}

Copy link
Contributor

Choose a reason for hiding this comment

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

We could do it at the fetch_docs_in_split level, we won't have to traverse all the json doc by doing it on a NamedFieldDocument.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

NamedFieldDocument is not flattened, we would still need to traverse the doc

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated to handle paths

@PSeitz PSeitz enabled auto-merge (squash) February 15, 2024 03:34
@PSeitz PSeitz merged commit b2799e0 into main Feb 15, 2024
4 checks passed
@PSeitz PSeitz deleted the source_excludes branch February 15, 2024 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support _source_excludes query params in elastisearch API
2 participants