Apache Lucene open-source search software
example: update to reflect new sortMissingLast
Yonik Seeley515097144814
diff --git a/solr/example/solr/conf/schema.xml b/solr/example/solr/conf/schema.xmlindex d031f99e7e2..563b6732ae6 100755--- a/solr/example/solr/conf/schema.xml+++ b/solr/example/solr/conf/schema.xml@@ -73,9 +73,8 @@<!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings --><fieldtype name="binary" class="solr.BinaryField"/>- <!-- The optional sortMissingLast and sortMissingFirst attributes are- currently supported on types that are sorted internally as strings.- This includes "string","boolean","sint","slong","sfloat","sdouble","pdate"+ <!-- sortMissingLast and sortMissingFirst attributes are optional attributes+ that control how fields are sorted when values are missing.- If sortMissingLast="true", then a sort on this field will cause documentswithout the field to come after documents with the field,regardless of the requested sort order (asc or desc).@@ -140,11 +139,10 @@<!--Note:- These should only be used for compatibility with existing indexes (created with older Solr versions)- or if "sortMissingFirst" or "sortMissingLast" functionality is needed. Use Trie based fields instead.+ These should only be used for compatibility with existing indexes (created with lucene or older Solr versions).Plain numeric field types that store and index the text- value verbatim (and hence don't support range queries, since the+ value verbatim (and hence don't correctly support range queries, since thelexicographic ordering isn't equal to the numeric ordering)--><fieldType name="pint" class="solr.IntField" omitNorms="true"/>@@ -153,23 +151,6 @@<fieldType name="pdouble" class="solr.DoubleField" omitNorms="true"/><fieldType name="pdate" class="solr.DateField" sortMissingLast="true" omitNorms="true"/>-- <!--- Note:- These should only be used for compatibility with existing indexes (created with older Solr versions)- or if "sortMissingFirst" or "sortMissingLast" functionality is needed. Use Trie based fields instead.-- Numeric field types that manipulate the value into- a string value that isn't human-readable in its internal form,- but with a lexicographic ordering the same as the numeric ordering,- so that range queries work correctly.- -->- <fieldType name="sint" class="solr.SortableIntField" sortMissingLast="true" omitNorms="true"/>- <fieldType name="slong" class="solr.SortableLongField" sortMissingLast="true" omitNorms="true"/>- <fieldType name="sfloat" class="solr.SortableFloatField" sortMissingLast="true" omitNorms="true"/>- <fieldType name="sdouble" class="solr.SortableDoubleField" sortMissingLast="true" omitNorms="true"/>--<!-- The "RandomSortField" is not used to store or search anydata. You can declare fields of this type it in your schemato generate pseudo-random orderings of your docs for sorting