Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-Dev

[jira] Issue Comment Edited: (LUCENE-1729) RuntimeException "no terms in field MODIFIED" in an empty index

 

 

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded


jira at apache

Jul 2, 2009, 2:59 AM

Post #1 of 1 (157 views)
Permalink
[jira] Issue Comment Edited: (LUCENE-1729) RuntimeException "no terms in field MODIFIED" in an empty index

[ https://issues.apache.org/jira/browse/LUCENE-1729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12726415#action_12726415 ]

Uwe Schindler edited comment on LUCENE-1729 at 7/2/09 2:58 AM:
---------------------------------------------------------------

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.

was (Author: thetaphi):
The AUTO Sort option and FieldCache are deprecated in 2.9. So I see no reason to fix this.

Please use the correct data type when creating the SortField.

> RuntimeException "no terms in field MODIFIED" in an empty index
> ---------------------------------------------------------------
>
> Key: LUCENE-1729
> URL: https://issues.apache.org/jira/browse/LUCENE-1729
> Project: Lucene - Java
> Issue Type: Bug
> Components: Search
> Affects Versions: 2.4.1
> Reporter: Tim Lebedkov
> Priority: Minor
>
> 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)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe [at] lucene
For additional commands, e-mail: java-dev-help [at] lucene

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.