Lucene CSV import 先后顺序

curl "http://localhost:8080/solr/update/csv?stream.file=books.csv&stream.contentType=text/plain;charset=u

tf-8&commit=true&fieldnames=,,cat&f.cat.map=AAA:BBB&keepEmpty=true&f.cat.split=true&f.cat.separator=%20"

请求顺序如下:

  1. keepEmpty=true
  2. f.cat.split=true&f.cat.separator=%20
  3. f.cat.map=AAA:BBB

e.g.

CVS:

cat
___AAA___

_ 代表空格   AAA前后都有三个空格

XML Result:

<arr name="cat">

<str/>

<str/>

<str/>

<str>BBB</str>

<str/>

<str/>

<str/>

</arr>

猜你喜欢

转载自endeca.iteye.com/blog/1135563
今日推荐