-
Notifications
You must be signed in to change notification settings - Fork 802
PR #138 breaks nested type #480
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
Comments
change nested to be a string instead of a symbol indexes :users, type: "nested" do
indexes :name_badge:
end |
Thanks @xxxpigeonxxx |
@xxxpigeonxxx, thanks for the hint! @inkstak Sorry for the delay. We should do |
But why adding nested to TYPES_WITH_EMBEDDED_PROPERTIES ? |
@inkstak In what sense? Do you have a complete example which would demonstrate your point? Thanks! |
@karmi my example is I cannot get this:
With this:
Instead, in ES it becomes:
|
@mmahalwy, sorry, don't get what you expect as the output? |
…inst a string version of the passed field type Related: #480
@karmi sorry, should explain further. According to the ES docs, multi_field is deprecated. Therefore, in the code of doing
You'd expect to index:
But what I get:
when it should be:
It made sense that multi_field previously did not have the |
Hi,
The #138 breaks my app specs.
Why adding nested to TYPES_WITH_EMBEDDED_PROPERTIES ?
I use nested properties like this :
to expect the following mapping :
So now,
properties
becomesfields
According to https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-nested-type.html and https://www.elastic.co/guide/en/elasticsearch/reference/current/_multi_fields.html :
So, when recreating mapping, ES ignore the fields parameter, and the final mapping is now :
The text was updated successfully, but these errors were encountered: