mstein / elasticsearch-grails-plugin

ElasticSearch grails plugin
Based on Graeme Rocher initial stub. Note that it is still in early stage.
Other
62 stars 164 forks source link

Aliasing fields #25

Open msmolyak opened 12 years ago

msmolyak commented 12 years ago

Elastic Search supports 'index_name' property of a core type field, which allows to alias the field in the index. The plugin does not seem to support this feature. The reason I need it is that in my domain model I have several objects with fields named 'title'. A Listing has a title. A Listing is describe by a State, a Type and a Category, each having their own titles. This name collision causes problems in dealing with the Elastic Search index. For example, I cannot build a facet query on a title field of listing category, seemingly due to the name collision.

Can 'index_name' support be added to the plugin?

Thank you,

Michael