以下の内容はhttps://cm3.hateblo.jp/entry/2015/06/03/121930より取得しました。


Solr でタグのようなデータ構造を用いる

JSON の場合、

 {
 "id": "1",
 "title": "Mercury",
 "composition": ["sodium","hydrogen","helium","potassium"]
 }

のようにリスト構造を使うことで、複数の値が可能になった。

f.<fieldname>.split=true&f.<fieldname>.separator=<separator> というのを使うと、CSVでも同じことができるようだ。

参考:

If CSV file has multivalued field(s) which are separated by different separator(s), then they can be split-ted based on following additional parameters passed to f..split=true&f..separator= Or other way you can have multivalued fields part of same CSV with different separators & can be updated to solr index based on above syntax.

schema.xml の方で field の multiValued="tureって入れなきゃいけないのかな。今のところなにもしなくても問題になってない。




以上の内容はhttps://cm3.hateblo.jp/entry/2015/06/03/121930より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14