The required format for contrib/spatial has changed to NumericField, as of 2.9. Are you building your index with NumericField?
Mike On Fri, Oct 2, 2009 at 2:04 PM, Rajiv2 <rajiv.roo...@gmail.com> wrote: > > Hello, I was using Lucene 2.4 and locallucene in my app and upgraded to > lucene 2.9 and I'm using the new spatial contrib package. I've switched > everything from using the locallucene specific classes to using the lucene > spation classes for indexing and searching. Everything compiles but I'm the > following error during search: > > java.lang.NumberFormatException: Invalid shift value in prefixCoded string > (is encoded value really a LONG?) > at > org.apache.lucene.util.NumericUtils.prefixCodedToLong(NumericUtils.java:206) > at > org.apache.lucene.search.FieldCache$10.parseDouble(FieldCache.java:294) > at > org.apache.lucene.search.FieldCacheImpl$DoubleCache.createValue(FieldCacheImpl.java:619) > at > org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:208) > at > org.apache.lucene.search.FieldCacheImpl.getDoubles(FieldCacheImpl.java:586) > at > org.apache.lucene.search.FieldCacheImpl$DoubleCache.createValue(FieldCacheImpl.java:609) > at > org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:208) > at > org.apache.lucene.search.FieldCacheImpl.getDoubles(FieldCacheImpl.java:592) > at > org.apache.lucene.search.FieldCacheImpl.getDoubles(FieldCacheImpl.java:580) > at > org.apache.lucene.spatial.tier.LatLongDistanceFilter.getDocIdSet(LatLongDistanceFilter.java:68) > at > org.apache.lucene.search.IndexSearcher.searchWithFilter(IndexSearcher.java:272) > at > org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:253) > > Does anyone have any clue as to what the problem might be? > > -- > View this message in context: > http://www.nabble.com/Lucene-2.9-Spatial-Search-Problem-tp25719978p25719978.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org