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"
请求顺序如下:
- keepEmpty=true
- f.cat.split=true&f.cat.separator=%20
- 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>