ElasticSearchにSolrcopyFieldディレクティブに相当するものがあるかどうか誰かに教えてもらえますか?
マルチフィールドタイプがあることは知っています: http ://www.elasticsearch.org/guide/reference/mapping/multi-field-type.html 同じフィールドに複数のアナライザーを適用する場合に便利です。
しかし、それはまったく同じではありません。Solrは、複数のフィールドを1つに「マージ」することを許可します。
<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"/>
このプラグインはかなり有望です: https ://github.com/yakaz/elasticsearch-analysis-combo
ElasticSearchの複数値フィールドを使用すると、結果を単一のフィールドとして返すことができるためです。ただし、複数のフィールドを「マージ」することはできないため、まったく同じではありません。
ComboアナライザーとSolrcopyFieldの両方の組み合わせが欲しいのですが。
ブログ投稿モデル(タイトル/説明フィールド)があり、2つの異なるアナライザーを適用する単一のフィールド「blogContent」にタイトルと説明の両方をコピーしたいと思います。
ElasticSearchに解決策はありますか?