Skip to content

Comments

Query using nested attributes#55

Merged
vrcmarcos merged 1 commit intovrcmarcos:masterfrom
jankislinger:query-nested-data
Dec 31, 2020
Merged

Query using nested attributes#55
vrcmarcos merged 1 commit intovrcmarcos:masterfrom
jankislinger:query-nested-data

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