Author: markrmiller
Date: Thu Jun 18 15:07:56 2009
New Revision: 786105
URL: http://svn.apache.org/viewvc?rev=786105&view=rev
Log:
SOLR-1151: add dynamic copy field and maxChars example to example schema.xml.
Modified:
lucene/solr/trunk/CHANGES.txt
lucene/solr/trunk/example/solr/conf/schema.xml
Modified: lucene/solr/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/lucene/solr/trunk/CHANGES.txt?rev=786105&r1=786104&r2=786105&view=diff
==============================================================================
--- lucene/solr/trunk/CHANGES.txt (original)
+++ lucene/solr/trunk/CHANGES.txt Thu Jun 18 15:07:56 2009
@@ -510,6 +510,9 @@
38. SOLR-1215 use double quotes to enclose attributes in solr.xml (noble)
+39. SOLR-1151: add dynamic copy field and maxChars example to example
schema.xml.
+ (Peter Wolanin, Mark Miller)
+
Build
----------------------
1. SOLR-776: Added in ability to sign artifacts via Ant for releases
(gsingers)
Modified: lucene/solr/trunk/example/solr/conf/schema.xml
URL:
http://svn.apache.org/viewvc/lucene/solr/trunk/example/solr/conf/schema.xml?rev=786105&r1=786104&r2=786105&view=diff
==============================================================================
--- lucene/solr/trunk/example/solr/conf/schema.xml (original)
+++ lucene/solr/trunk/example/solr/conf/schema.xml Thu Jun 18 15:07:56 2009
@@ -435,10 +435,18 @@
<copyField source="manu" dest="text"/>
<copyField source="features" dest="text"/>
<copyField source="includes" dest="text"/>
+
+ <!-- Above, multiple source fields are copied to the [text] field.
+ Another way to map multiple source fields to the same
+ destination field is to use the dynamic field syntax.
+ copyField also supports a maxChars to copy setting. -->
+
+ <!-- <copyField source="*" dest="text" maxChars="3000"/> -->
+
<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