-
Notifications
You must be signed in to change notification settings - Fork 802
Documentation of "settings" and "mapping" method? #913
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
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Ping, anyone? |
Hi @slhck, |
Thanks for the feedback! |
I also wonder about the difference between the examples below: settings index: { number_of_shards: 1 } do
mappings dynamic: 'false' do
indexes :title, analyzer: 'english', index_options: 'offsets'
end
end settings index: { number_of_shards: 1 }
mappings dynamic: 'false' do
indexes :title, analyzer: 'english', index_options: 'offsets'
end What's the point of nesting |
I can't find suitable documentation either. |
I keep coming back to this issue, and the def mapping
{
properties: {
geolocation: {
properties: {
latlon: {
type: "geo_point"
}
}
}
}
}
end but alas, it does not pick that up when indexing. Could anyone please update the documentation with a description of how these fields work? |
Same here, I find it quite hard to figure out how to configure something like language specific stopwords using the DSL methods. Some more examples would be extremely helpful I suppose. |
I'll also would like documentation on this. At least as a noob in ruby on rails, I would appreciate if even someone could direct me to where "settings" and "mappings" are defined so I can at least go look at how its implemented in the code |
Still confused by this, could @picandocodigo help, please? |
still confused too |
I see the example for defining settings and mapping for an index/model in the README of https://github.com/elastic/elasticsearch-rails/tree/master/elasticsearch-model:
However, I could not find a documentation for
settings
andmapping
. This got me quite confused. For example, there is no easy way to tell that:dynamic
value has to be a String and not a booleanindexes
method allows a block to create nested structuresIt is also not shown in the documentation:
mapping
class method: https://rubydoc.info/gems/elasticsearch-model/Elasticsearch/Model/Indexing/ClassMethods:mappingmapping
structure definesindexes
but there is no documentationWould it make sense to at least expand the examples to show how the
indexes
method can be used?The text was updated successfully, but these errors were encountered: