Commented the following line in org.apache.lucene.search.SortField
return comparatorSource.newComparator(field, numHits, sortPos, reverse);
and added the following line temporarily.
return new FieldComparator.DoubleComparator(numHits, field, parser);

Changed geo_distance type to double from sdouble in my schema.xml.
Its working now. But i think its a bug in that code. It will always give
NPE.

Here are the original two lines from the file
org.apache.lucene.search.SortField [getComparator() method, lucene 2.9.2]... 
assert factory == null && comparatorSource != null;
return comparatorSource.newComparator(field, numHits, sortPos, reverse);

And factory = com.pjaol.search.geo.utils.distancesortsou...@1568654 and
comparatorSource = null always. So it always call newComparator() on null.
FYI = i am using Solr 1.4, lucene 2.9.2, locallucene 2.0 and localsolr 2.0.
Can anyone help me with this, please?
Thanks for your support. 

Sandeep Tagore
-- 
View this message in context: 
http://n3.nabble.com/Error-sorting-random-field-with-June-1-2009-Solr-1-4-nightly-tp499042p705835.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to