copyFieldを構成しようとしていますが、ドキュメントには構文例がかなり記載されています。
これは私がやろうとしたことですが、すべてのデータを再インポートした後、「all」フィールドにはドキュメントがありません。
<field name="all" type="text_en_splitting" indexed="true" stored="false" multiValued="true" termVectors="true" version="1.5" />
<copyField source="id" dest="all"/>
<copyField source="item_name" dest="all"/>
<copyField source="item_brand" dest="all"/>
<copyField source="short_description" dest="all"/>
<copyField source="long_description" dest="all"/>
<copyField source="catalog_names" dest="all"/>
<copyField source="categories" dest="all"/>
<copyField source="keywords" dest="all"/>
<copyField source="attributes" dest="all"/>
私が本当に必要なのはこれだけです:
これらすべてのフィールド(id、item_name、short / long descriptionなど)が定義されたドキュメントがあります。
ほとんどのフィールドを検索したいのですが、値を保存しません(ドキュメントIDを返すだけです)。
それで:
- これらの属性(item_name、short / long descなど)ごとにフィールドを定義する必要がありますか?
- それらすべてを1つのフィールドにコピーして、それらすべてのフィールドを検索できるようにする必要がありますか?これは必要ですよね?
- これらすべてのフィールドを1つのsolrフィールドにインポートする方法はありますか?schema.xmlはどのように見えるべきですか?
現時点では、特定のフィールドを検索する検索はありません。