My Grails project is trying to migrate from Searchable plugin to Elastic Search plugin. One of the features available in Searchable Plugin is to specify "index" and "store" attributes for each field. The former attribute specifies whether the property can be searched upon, while the latter one determines whether the property is populated when the domain object is constructed from the search results. Does Elastic Search plugin offer a similar functionality? Can I index a property (corresponding to a 1-M relationship) as a component so that I could search on attributes of the inner objects, but not retrieve the collection of objects during search?
My Grails project is trying to migrate from Searchable plugin to Elastic Search plugin. One of the features available in Searchable Plugin is to specify "index" and "store" attributes for each field. The former attribute specifies whether the property can be searched upon, while the latter one determines whether the property is populated when the domain object is constructed from the search results. Does Elastic Search plugin offer a similar functionality? Can I index a property (corresponding to a 1-M relationship) as a component so that I could search on attributes of the inner objects, but not retrieve the collection of objects during search?