You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by yo...@apache.org on 2006/07/25 21:41:43 UTC

svn commit: r425496 - in /incubator/solr/trunk/example/exampledocs: hd.xml ipod_other.xml mem.xml monitor.xml monitor2.xml mp500.xml post.sh sd500.xml solr.xml utf8-example.xml vidcard.xml

Author: yonik
Date: Tue Jul 25 12:41:43 2006
New Revision: 425496

URL: http://svn.apache.org/viewvc?rev=425496&view=rev
Log:
UTF-8 example: SOLR-38

Added:
    incubator/solr/trunk/example/exampledocs/utf8-example.xml   (with props)
Modified:
    incubator/solr/trunk/example/exampledocs/hd.xml   (props changed)
    incubator/solr/trunk/example/exampledocs/ipod_other.xml   (props changed)
    incubator/solr/trunk/example/exampledocs/mem.xml   (props changed)
    incubator/solr/trunk/example/exampledocs/monitor.xml   (props changed)
    incubator/solr/trunk/example/exampledocs/monitor2.xml   (props changed)
    incubator/solr/trunk/example/exampledocs/mp500.xml   (props changed)
    incubator/solr/trunk/example/exampledocs/post.sh
    incubator/solr/trunk/example/exampledocs/sd500.xml   (props changed)
    incubator/solr/trunk/example/exampledocs/solr.xml   (props changed)
    incubator/solr/trunk/example/exampledocs/vidcard.xml   (props changed)

Propchange: incubator/solr/trunk/example/exampledocs/hd.xml
            ('svn:executable' removed)

Propchange: incubator/solr/trunk/example/exampledocs/ipod_other.xml
            ('svn:executable' removed)

Propchange: incubator/solr/trunk/example/exampledocs/mem.xml
            ('svn:executable' removed)

Propchange: incubator/solr/trunk/example/exampledocs/monitor.xml
            ('svn:executable' removed)

Propchange: incubator/solr/trunk/example/exampledocs/monitor2.xml
            ('svn:executable' removed)

Propchange: incubator/solr/trunk/example/exampledocs/mp500.xml
            ('svn:executable' removed)

Modified: incubator/solr/trunk/example/exampledocs/post.sh
URL: http://svn.apache.org/viewvc/incubator/solr/trunk/example/exampledocs/post.sh?rev=425496&r1=425495&r2=425496&view=diff
==============================================================================
--- incubator/solr/trunk/example/exampledocs/post.sh (original)
+++ incubator/solr/trunk/example/exampledocs/post.sh Tue Jul 25 12:41:43 2006
@@ -5,6 +5,7 @@
 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
 

Propchange: incubator/solr/trunk/example/exampledocs/sd500.xml
            ('svn:executable' removed)

Propchange: incubator/solr/trunk/example/exampledocs/solr.xml
            ('svn:executable' removed)

Added: incubator/solr/trunk/example/exampledocs/utf8-example.xml
URL: http://svn.apache.org/viewvc/incubator/solr/trunk/example/exampledocs/utf8-example.xml?rev=425496&view=auto
==============================================================================
--- incubator/solr/trunk/example/exampledocs/utf8-example.xml (added)
+++ incubator/solr/trunk/example/exampledocs/utf8-example.xml Tue Jul 25 12:41:43 2006
@@ -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>
+

Propchange: incubator/solr/trunk/example/exampledocs/utf8-example.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/solr/trunk/example/exampledocs/vidcard.xml
            ('svn:executable' removed)