You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by yo...@apache.org on 2010/09/22 16:47:41 UTC
svn commit: r999997 -
/lucene/dev/branches/branch_3x/solr/example/solr/conf/schema.xml
Author: yonik
Date: Wed Sep 22 14:47:41 2010
New Revision: 999997
URL: http://svn.apache.org/viewvc?rev=999997&view=rev
Log:
solr example: sync up schema w/ trunk
Modified:
lucene/dev/branches/branch_3x/solr/example/solr/conf/schema.xml
Modified: lucene/dev/branches/branch_3x/solr/example/solr/conf/schema.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/example/solr/conf/schema.xml?rev=999997&r1=999996&r2=999997&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/solr/example/solr/conf/schema.xml (original)
+++ lucene/dev/branches/branch_3x/solr/example/solr/conf/schema.xml Wed Sep 22 14:47:41 2010
@@ -411,21 +411,17 @@
The subFields are an implementation detail of the fieldType, and end
users normally should not need to know about them.
-->
- <fieldType name="location" class="solr.PointType" dimension="2" subFieldSuffix="_d"/>
+ <fieldType name="point" class="solr.PointType" dimension="2" subFieldSuffix="_d"/>
+
+ <!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. -->
+ <fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate"/>
<!--
A Geohash is a compact representation of a latitude longitude pair in a single field.
-
See http://wiki.apache.org/solr/SpatialSearch
-->
<fieldtype name="geohash" class="solr.GeoHashField"/>
-
- <!--
-
- -->
- <fieldType name="latLon" class="solr.LatLonType" subFieldSuffix="_latLon"/>
-
</types>
@@ -472,9 +468,6 @@
implement spatial. It is highly unlikely that you would ever have ALL of these fields defined.
-->
<field name="store" type="location" indexed="true" stored="true"/>
- <field name="store_lat_lon" type="latLon" indexed="true" stored="true"/>
- <field name="store_hash" type="geohash" indexed="true" stored="false"/>
-
<!-- Common metadata fields, named specifically to match up with
SolrCell metadata when parsing rich documents such as Word, PDF.
@@ -495,7 +488,7 @@
<!-- catchall field, containing all other searchable text fields (implemented
via copyField further on in this schema -->
- <field name="text" type="text" indexed="true" stored="true" multiValued="true" termVectors="true"/>
+ <field name="text" type="text" indexed="true" stored="false" multiValued="true"/>
<!-- catchall text field that indexes tokens both normally and in reverse for efficient
leading wildcard queries. -->
@@ -530,7 +523,8 @@
<dynamicField name="*_f" type="float" indexed="true" stored="true"/>
<dynamicField name="*_d" type="double" indexed="true" stored="true"/>
- <dynamicField name="*_latLon" type="double" indexed="true" stored="false"/>
+ <!-- Type used to index the lat and lon components for the "location" FieldType -->
+ <dynamicField name="*_coordinate" type="tdouble" indexed="true" stored="false"/>
<dynamicField name="*_dt" type="date" indexed="true" stored="true"/>
<dynamicField name="*_p" type="location" indexed="true" stored="true"/>
@@ -573,8 +567,6 @@
or to add multiple fields to the same field for easier/faster searching. -->
<copyField source="cat" dest="text"/>
- <copyField source="store" dest="store_hash"/>
- <copyField source="store" dest="store_lat_lon"/>
<copyField source="name" dest="text"/>
<copyField source="manu" dest="text"/>
<copyField source="features" dest="text"/>