solr/solr/conf/schema.xml in kuahyeow-sunspot-0.9.8 vs solr/solr/conf/schema.xml in kuahyeow-sunspot-0.10.3

- old
+ new

@@ -1,50 +1,64 @@ -<?xml version='1.0' encoding='utf-8' ?> -<schema name='sunspot' version='0.9'> +<?xml version="1.0" encoding="UTF-8"?> +<schema version="0.9" name="sunspot"> <types> - <fieldtype class='solr.TextField' name='text' positionIncrementGap='100'> + <fieldtype class="solr.TextField" positionIncrementGap="100" name="text"> <analyzer> - <tokenizer class='solr.StandardTokenizerFactory' /> - <filter class='solr.StandardFilterFactory' /> - <filter class='solr.LowerCaseFilterFactory' /> + <tokenizer class="solr.StandardTokenizerFactory"/> + <filter class="solr.StandardFilterFactory"/> + <filter class="solr.LowerCaseFilterFactory"/> </analyzer> </fieldtype> - <fieldtype class='solr.RandomSortField' name='rand'></fieldtype> - <fieldtype class='solr.BoolField' name='boolean' omitNorms='true' /> - <fieldtype class='solr.SortableFloatField' name='sfloat' omitNorms='true' /> - <fieldtype class='solr.DateField' name='date' omitNorms='true' /> - <fieldtype class='solr.SortableIntField' name='sint' omitNorms='true' /> - <fieldtype class='solr.StrField' name='string' omitNorms='true' /> + <fieldtype class="solr.RandomSortField" name="rand"/> + <fieldtype name="boolean" class="solr.BoolField" omitNorms="true"/> + <fieldtype name="sfloat" class="solr.SortableFloatField" omitNorms="true"/> + <fieldtype name="date" class="solr.DateField" omitNorms="true"/> + <fieldtype name="sint" class="solr.SortableIntField" omitNorms="true"/> + <fieldtype name="string" class="solr.StrField" omitNorms="true"/> + <fieldtype name="sdouble" class="solr.SortableDoubleField" omitNorms="true"/> + <fieldtype name="slong" class="solr.SortableLongField" omitNorms="true"/> </types> <fields> - <field indexed='true' multiValued='false' name='id' stored='true' type='string' /> - <field indexed='true' multiValued='true' name='type' stored='false' type='string' /> - <field indexed='true' multiValued='false' name='class_name' stored='false' type='string' /> - <field indexed='true' multiValued='true' name='text' stored='false' type='text' /> - <dynamicField indexed='true' multiValued='true' name='*_text' stored='false' type='text' /> - <dynamicField indexed='true' name='random_*' stored='false' type='rand' /> - <dynamicField indexed='true' multiValued='false' name='*_b' stored='false' type='boolean' /> - <dynamicField indexed='true' multiValued='false' name='*_f' stored='false' type='sfloat' /> - <dynamicField indexed='true' multiValued='false' name='*_d' stored='false' type='date' /> - <dynamicField indexed='true' multiValued='false' name='*_i' stored='false' type='sint' /> - <dynamicField indexed='true' multiValued='false' name='*_s' stored='false' type='string' /> - <dynamicField indexed='true' multiValued='true' name='*_bm' stored='false' type='boolean' /> - <dynamicField indexed='true' multiValued='true' name='*_fm' stored='false' type='sfloat' /> - <dynamicField indexed='true' multiValued='true' name='*_dm' stored='false' type='date' /> - <dynamicField indexed='true' multiValued='true' name='*_im' stored='false' type='sint' /> - <dynamicField indexed='true' multiValued='true' name='*_sm' stored='false' type='string' /> - <dynamicField indexed='true' multiValued='false' name='*_bs' stored='true' type='boolean' /> - <dynamicField indexed='true' multiValued='false' name='*_fs' stored='true' type='sfloat' /> - <dynamicField indexed='true' multiValued='false' name='*_ds' stored='true' type='date' /> - <dynamicField indexed='true' multiValued='false' name='*_is' stored='true' type='sint' /> - <dynamicField indexed='true' multiValued='false' name='*_ss' stored='true' type='string' /> - <dynamicField indexed='true' multiValued='true' name='*_bms' stored='true' type='boolean' /> - <dynamicField indexed='true' multiValued='true' name='*_fms' stored='true' type='sfloat' /> - <dynamicField indexed='true' multiValued='true' name='*_dms' stored='true' type='date' /> - <dynamicField indexed='true' multiValued='true' name='*_ims' stored='true' type='sint' /> - <dynamicField indexed='true' multiValued='true' name='*_sms' stored='true' type='string' /> + <field name="id" type="string" indexed="true" stored="true" multiValued="false" /> + <field name="type" type="string" indexed="true" stored="false" multiValued="true" /> + <field name="class_name" type="string" indexed="true" stored="false" multiValued="false" /> + <field name="text" type="text" indexed="true" stored="false" multiValued="true" /> + <field name="lat" type="sdouble" indexed="true" stored="true" multiValued="false" /> + <field name="long" type="sdouble" indexed="true" stored="true" multiValued="false" /> + <dynamicField name="*_text" type="text" indexed="true" stored="false" multiValued="true" /> + <dynamicField name="*_texts" type="text" indexed="true" stored="true" multiValued="true" /> + <dynamicField name="random_*" type="rand" indexed="true" stored="false" multiValued="false" /> + <dynamicField name="_local*" type="sdouble" indexed="true" stored="false" multiValued="false" /> + <dynamicField name="*_b" type="boolean" indexed="true" stored="false" multiValued="false" /> + <dynamicField name="*_f" type="sfloat" indexed="true" stored="false" multiValued="false" /> + <dynamicField name="*_d" type="date" indexed="true" stored="false" multiValued="false" /> + <dynamicField name="*_i" type="sint" indexed="true" stored="false" multiValued="false" /> + <dynamicField name="*_s" type="string" indexed="true" stored="false" multiValued="false" /> + <dynamicField name="*_e" type="sdouble" indexed="true" stored="false" multiValued="false" /> + <dynamicField name="*_l" type="slong" indexed="true" stored="false" multiValued="false" /> + <dynamicField name="*_bm" type="boolean" indexed="true" stored="false" multiValued="true" /> + <dynamicField name="*_fm" type="sfloat" indexed="true" stored="false" multiValued="true" /> + <dynamicField name="*_dm" type="date" indexed="true" stored="false" multiValued="true" /> + <dynamicField name="*_im" type="sint" indexed="true" stored="false" multiValued="true" /> + <dynamicField name="*_sm" type="string" indexed="true" stored="false" multiValued="true" /> + <dynamicField name="*_em" type="sdouble" indexed="true" stored="false" multiValued="true" /> + <dynamicField name="*_lm" type="slong" indexed="true" stored="false" multiValued="true" /> + <dynamicField name="*_bs" type="boolean" indexed="true" stored="true" multiValued="false" /> + <dynamicField name="*_fs" type="sfloat" indexed="true" stored="true" multiValued="false" /> + <dynamicField name="*_ds" type="date" indexed="true" stored="true" multiValued="false" /> + <dynamicField name="*_is" type="sint" indexed="true" stored="true" multiValued="false" /> + <dynamicField name="*_ss" type="string" indexed="true" stored="true" multiValued="false" /> + <dynamicField name="*_es" type="sdouble" indexed="true" stored="true" multiValued="false" /> + <dynamicField name="*_ls" type="slong" indexed="true" stored="true" multiValued="false" /> + <dynamicField name="*_bms" type="boolean" indexed="true" stored="true" multiValued="true" /> + <dynamicField name="*_fms" type="sfloat" indexed="true" stored="true" multiValued="true" /> + <dynamicField name="*_dms" type="date" indexed="true" stored="true" multiValued="true" /> + <dynamicField name="*_ims" type="sint" indexed="true" stored="true" multiValued="true" /> + <dynamicField name="*_sms" type="string" indexed="true" stored="true" multiValued="true" /> + <dynamicField name="*_ems" type="sdouble" indexed="true" stored="true" multiValued="true" /> + <dynamicField name="*_lms" type="slong" indexed="true" stored="true" multiValued="true" /> </fields> <uniqueKey>id</uniqueKey> <defaultSearchField>text</defaultSearchField> - <solrQueryParser defaultOperator='AND' /> - <copyField dest='text' source='*_text' /> + <solrQueryParser defaultOperator="AND"/> + <copyField dest="text" source="*_text"/> </schema>