-
-
Notifications
You must be signed in to change notification settings - Fork 696
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
expand_dots and object reconstruction #2241
Comments
Is #2198 really the issue you wanted to link? I don't understand how it is related. |
I thought that the {
"aggs": {
"top_tags": {
"terms": {
"field": "user.id.keyword",
"size": 3
},
"aggs": {
"top_sales_hits": {
"top_hits": {
"docvalue_fields": [
"user.id.keyword",
"user.real.name.keyword"
],
"size": 1
}
}
}
}
}
} |
Is there still a use-case for this if not in #2198? |
Yes, I think we should change it. Currently we change the way paths are stored internally, depending on the Internally we should have a canonical way to store paths independently on how they are addressed. |
expand_dots Function
When
expand_dots_enabled
is true, keys with a.
are treated as JSON path separators, not as literal periods. For instance,expand_dots_enabled
converts{"root": {"child.with.dot": "hello"}}
into a nested object:{"root": {"child": {"with": {"dot": "hello"}}}}
, making the queryroot.child.with.dot:hello
valid. If false, keys retain their.
and must be escaped in queries:root.child\.with\.dot:hello
.Issue
expand_dots_enabled
is achieved currently by changing the path stored in inverted index and fast fields.This will cause issues with object reconstruction from the path (used in #2198)
Instead this could be a query time option, that tries to resolve
root.child.with.dot:hello
toroot.child\.with\.dot:hello
, when querying (maybe with metadata created during indexing).The text was updated successfully, but these errors were encountered: