elasticsearch-grails-plugin
elasticsearch-grails-plugin copied to clipboard
Aliasing fields
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