lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hoss...@apache.org
Subject svn commit: r822366 - /lucene/solr/trunk/contrib/clustering/example/conf/schema.xml
Date Tue, 06 Oct 2009 17:34:02 GMT
Author: hossman
Date: Tue Oct  6 17:34:01 2009
New Revision: 822366

URL: http://svn.apache.org/viewvc?rev=822366&view=rev
Log:
fix clustering so it works even though new fields are getting added to docs in the main example

Modified:
    lucene/solr/trunk/contrib/clustering/example/conf/schema.xml

Modified: lucene/solr/trunk/contrib/clustering/example/conf/schema.xml
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/contrib/clustering/example/conf/schema.xml?rev=822366&r1=822365&r2=822366&view=diff
==============================================================================
--- lucene/solr/trunk/contrib/clustering/example/conf/schema.xml (original)
+++ lucene/solr/trunk/contrib/clustering/example/conf/schema.xml Tue Oct  6 17:34:01 2009
@@ -333,11 +333,8 @@
 
    <dynamicField name="random*" type="random" />
 
-   <!-- uncomment the following to ignore any fields that don't already match an existing
-        field name or dynamic field, rather than reporting them as an error.
-        alternately, change the type="ignored" to some other type e.g. "text" if you want
-        unknown fields indexed and/or stored by default -->
-   <!--dynamicField name="*" type="ignored" /-->
+   <!-- for this example, ignore anything we aren't expecting -->
+   <dynamicField name="*" type="ignored" multiValued="true" />
 
  </fields>
 
@@ -368,7 +365,7 @@
 
    <copyField source="manu" dest="manu_exact"/>
 
-  <copyField source="name" dest="spell"/>
+   <copyField source="name" dest="spell"/>
 
  <!-- Similarity is the scoring routine for each document vs. a query.
       A custom similarity may be specified here, but the default is fine
@@ -385,4 +382,4 @@
  -->
 
 
-</schema>
\ No newline at end of file
+</schema>



Mime
View raw message