lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iouli.golova...@group.novartis.com
Subject RuntimeException: cannot determine sort type!
Date Wed, 16 Jun 2004 07:51:27 GMT
Hello all,

During concurency test, i.e. indexing and searching simultaniosly, 
Searcher stumbled with following error: 

java.lang.RuntimeException: no terms in field modified - cannot determine 
sort type
        at 
org.apache.lucene.search.FieldSortedHitQueue.determineComparator(FieldSortedHitQueue.java:187)
        at 
org.apache.lucene.search.FieldSortedHitQueue.getCachedComparator(FieldSortedHitQueue.java:125)
        at 
org.apache.lucene.search.MultiFieldSortedHitQueue.<init>(MultiFieldSortedHitQueue.java:54)
        at 
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:118)
        at 
org.apache.lucene.search.MultiSearcher.search(MultiSearcher.java:141)
        at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:64)
        at org.apache.lucene.search.Hits.<init>(Hits.java:51)
        at org.apache.lucene.search.Searcher.search(Searcher.java:41)
        at novartis.lucene.LuceneItems.getItems(LuceneItems.java:304)
        at novartis.lucene.LuceneItems.doAllItems(LuceneItems.java:246)
        at novartis.lucene.LuceneItems.go(LuceneItems.java:368)
        at novartis.lucene.LuceneItems.main(LuceneItems.java:574)

Indexer  was optimizing  and closing after every 300 entries.

Searcher did query every second:  hits = ms.search(query,new Sort("modified",true));
where "modified" is in DateField.timeToString(modified)) format and query 
like "+contents:novartis"

The values for field "modified" are definitly existing.

On Indexer side no exceptions took place. 

Both processes used the same lockDir.

Searcher works smartly on created index.

Please help.

Have a nice day
J.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message