Closed asfimport closed 13 years ago
Uwe Schindler (@uschindler) (migrated from JIRA)
The AUTO Sort option and FieldCache.getAuto() are deprecated in 2.9. So I see no reason to fix this.
Please use the correct data type when creating the SortField.
Shai Erera (@shaie) (migrated from JIRA)
Given Uwe's response back in 2009, I think we can close it now :).
The exception should not be raised as there are no documents yet
Caused by: java.lang.RuntimeException: no terms in field MODIFIED - cannot determine sort type at org.apache.lucene.search.ExtendedFieldCacheImpl$5.createValue(ExtendedFieldCacheImpl.java:139) at org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:71) at org.apache.lucene.search.ExtendedFieldCacheImpl.getAuto(ExtendedFieldCacheImpl.java:127) at org.apache.lucene.search.FieldSortedHitQueue.comparatorAuto(FieldSortedHitQueue.java:487) at org.apache.lucene.search.FieldSortedHitQueue$1.createValue(FieldSortedHitQueue.java:184) at org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:71) at org.apache.lucene.search.FieldSortedHitQueue.getCachedComparator(FieldSortedHitQueue.java:167) at org.apache.lucene.search.FieldSortedHitQueue.<init>(FieldSortedHitQueue.java:55) at org.apache.lucene.search.TopFieldDocCollector.<init>(TopFieldDocCollector.java:43) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:121) at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:113) at org.apache.lucene.search.Hits.<init>(Hits.java:90) at org.apache.lucene.search.Searcher.search(Searcher.java:61) at de.upk.luceneext.generic.ItemIndex.search(ItemIndex.java:746)
Migrated from LUCENE-1729 by Tim Lebedkov, resolved Jan 26 2011