I'm trying to sort on numeric (e.g. TrieDoubleField) fields and running into an issue where 0 and NULL values are being compared as equal. This appears to be the "common case" in the FieldComparator class where the missing value (i.e. NULL) gets assigned for a 0 value (which is perfectly valid). Is there any way around this short of indexing another field to signify there is a value? I need the sort such that ascending will have the NULL values first and descending will have the NULL values last (i.e. sortMissingFirst="false" and sortMissingLast="false").
expected: NULL NULL 0 0.7 5 32 actual: NULL 0 NULL 0.7 5 32 Please let me know if I can provide any additional information. Thank you. -- View this message in context: http://lucene.472066.n3.nabble.com/Numeric-Sorting-with-0-and-NULL-Values-tp4232654.html Sent from the Solr - User mailing list archive at Nabble.com.