Can someone tell me if there's an equivalent of Solr copyField directive on ElasticSearch?
I know there is the multi-field type: http://www.elasticsearch.org/guide/reference/mapping/multi-field-type.html It is nice when you want to apply multiple analyzers on the same field.
But it's not exactly the same. Solr permits to "merge" multiple fields into one:
<field name="id" type="string" indexed="true" stored="true"/>
<field name="name" type="string" indexed="true" stored="true"/>
<field name="subject" type="string" indexed="true" stored="true"/>
<field name="location" type="string" indexed="true" stored="true"/>
<field name="all" type="text" indexed="true" stored="true" multiValued="true"/>
<copyField source="*" dest="all"/>
This plugin is pretty promising: https://github.com/yakaz/elasticsearch-analysis-combo
Because it permits to get back the results as a single field when using an ElasticSearch multi value field. But it's still not exactly the same because it doesn't permit to "merge" multiple fields.
I would like a combination of both Combo analyzer and Solr copyField.
I have a blog post model (title/description fields) and would like to copy both the title and description on a single field "blogContent" on which I'll apply 2 different analyzers.
Is there a solution in ElasticSearch?