mirror of https://github.com/apache/lucene.git
UTF-8 example: SOLR-38
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@425496 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c45d042365
commit
0d60aba624
|
@ -5,6 +5,7 @@ URL=http://localhost:8983/solr/update
|
|||
for f in $FILES; do
|
||||
echo Posting file $f to $URL
|
||||
curl $URL --data-binary @$f
|
||||
curl $URL --data-binary @$f -H 'Content-type:text/xml; charset=utf-8'
|
||||
echo
|
||||
done
|
||||
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
After posting this to SOLR with post.sh, searching for "êâîôû" from
|
||||
the solr/admin/ search page must return this document.
|
||||
-->
|
||||
|
||||
<add>
|
||||
<doc>
|
||||
<field name="id">UTF8TEST</field>
|
||||
<field name="name">Test with some UTF-8 encoded characters</field>
|
||||
<field name="manu">Apache Software Foundation</field>
|
||||
<field name="cat">software</field>
|
||||
<field name="cat">search</field>
|
||||
<field name="features">No accents here</field>
|
||||
<field name="features">This is an e acute: é</field>
|
||||
<field name="features">eaiou with circumflexes: êâîôû</field>
|
||||
<field name="features">eaiou with umlauts: ëäïöü</field>
|
||||
<field name="features">tag with escaped chars: <nicetag/></field>
|
||||
<field name="features">escaped ampersand: Bonnie & Clyde</field>
|
||||
<field name="price">0</field>
|
||||
<field name="popularity">10</field>
|
||||
<field name="inStock">true</field>
|
||||
</doc>
|
||||
</add>
|
||||
|
Loading…
Reference in New Issue