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:
Yonik Seeley 2006-07-25 19:41:43 +00:00
parent c45d042365
commit 0d60aba624
11 changed files with 27 additions and 0 deletions

0
example/exampledocs/hd.xml Executable file → Normal file
View File

0
example/exampledocs/ipod_other.xml Executable file → Normal file
View File

0
example/exampledocs/mem.xml Executable file → Normal file
View File

0
example/exampledocs/monitor.xml Executable file → Normal file
View File

0
example/exampledocs/monitor2.xml Executable file → Normal file
View File

0
example/exampledocs/mp500.xml Executable file → Normal file
View File

View File

@ -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
example/exampledocs/sd500.xml Executable file → Normal file
View File

0
example/exampledocs/solr.xml Executable file → Normal file
View File

View File

@ -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: &lt;nicetag/&gt;</field>
<field name="features">escaped ampersand: Bonnie &amp; Clyde</field>
<field name="price">0</field>
<field name="popularity">10</field>
<field name="inStock">true</field>
</doc>
</add>

0
example/exampledocs/vidcard.xml Executable file → Normal file
View File