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

Query using nested attributes #55

Merged
merged 1 commit into from
Dec 31, 2020
Merged

Query using nested attributes #55

merged 1 commit into from
Dec 31, 2020

Conversation

jankislinger
Copy link
Contributor

This allows you to query using nested data, i.e. something like this

{"term": {"data.x": 1}}

This also fixes cases when you want to filter using

  • attribute that isn't present in the data. Originally you'd start with doc_val = None and then change it to "None" (string) and then you compare it with selected value (including partial match). That mean that string "one" would match to missing attribute.
  • non-string value. that failed on value in doc_val

@vrcmarcos vrcmarcos merged commit 9651e8d into vrcmarcos:master Dec 31, 2020
@jankislinger jankislinger deleted the query-nested-data branch January 4, 2021 13:04
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.

2 participants