Skip to content

Apache Lucene open-source search software

add doc to point type in example schema

Yonik Seeleyb426c68f7dd3
diff --git a/example/solr/conf/schema.xml b/example/solr/conf/schema.xml
index 527b48c6578..449c4b39d4c 100755
--- a/example/solr/conf/schema.xml
+++ b/example/solr/conf/schema.xml
@@ -396,8 +396,14 @@
any data added to them will be ignored outright. -->
<fieldtype name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" />
- <!--
- A PointType is a Poly Field. It can either declare a subFieldType or a subFieldSuffix
+ <!-- This point type indexes the coordinates as separate fields (subFields)
+ If subFieldType is defined, it references a type, and a dynamic field
+ definition is created matching *___<typename>. Alternately, if
+ subFieldSuffix is defined, that is used to create the subFields.
+ Example: if subFieldType="double", then the coordinates would be
+ indexed in fields myloc_0___double,myloc_1___double.
+ Example: if subFieldSuffix="_d" then the coordinates would be indexed
+ in fields myloc_0_d,myloc_1_d
-->
<fieldType name="location" class="solr.PointType" dimension="2" subFieldType="double"/>