lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iouli.golova...@group.novartis.com
Subject Re: RuntimeException: cannot determine sort type!
Date Wed, 16 Jun 2004 09:33:21 GMT





Are you sure every document has a single "modified" indexed term?

What do You call single? It's just one field, defined as keyword, but it
content can be the same, because it's a timestamp. Every doc has it, this I
garantee.

How  are you indexing it?

I have a bulk file with entries like:

FT¬20040219174432¬¬20040219/17/44/AUT_33957308¬Watch out for relative
valuations performance¬FT¬11111111¬D:¬yyyyMM
...
where 20040219174432 is "modified" field content
and 20040219/17/44/AUT_33957308 relative pathname of document to be indexed

I use 1.4-rc3





             Erik


On Jun 16, 2004, at 3:51 AM, iouli.golovatyi@group.novartis.com wrote:

> 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(FieldS
> ortedHitQueue.java:187)
>         at
> org.apache.lucene.search.FieldSortedHitQueue.getCachedComparator(FieldS
> ortedHitQueue.java:125)
>         at
> org.apache.lucene.search.MultiFieldSortedHitQueue.<init>(MultiFieldSort
> edHitQueue.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.


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org







---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message