オートコンプリート機能を実装するために、次のように Solr schema.xml ファイルに複数値フィールドを定義しました。
<field name="name" type="textgen" indexed="true" stored="true"/>
<field name="nameac" type="autocomplete" indexed="true" stored="true" omitNorms="true" omitTermFreqAndPositions="true" multiValued="true"/>
<copyField source="name" dest="nameac"/>
ただし、次のようなエラーが表示されます。
エラー [org.apache.solr.core.SolrCore] (http-executor-threads - 639) org.apache.solr.common.SolrException: エラー: [doc=ffff] 非 multiValued フィールド nameac で複数の値が検出されました: [abc def 、abc定義]
属性multiValued="true"
がこれを処理する必要があると思っていました。
提案してください。
よろしく。