lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Calabrese <m...@jasoncalabrese.com>
Subject Re: Inserting a document into an index at a specified position
Date Fri, 07 Jul 2006 21:20:41 GMT
We only display the 10 hits at a time, so we don't need to iterate through all 
the hits.

It feels like there should be a way to pull a document out 1 index and stick 
it into an other and bring all the unstored fields along with it.

On Friday 07 July 2006 12:52, Erick Erickson wrote:
>  Did you use a Hits object to assemble your results? And is that what
> you're measuring when you say it's slow? In other words, were you measuring
> the time it took to execute the statement
>
> Hits hits = searcher.search(query, new Sort("fullname"));
>
> or the time it took to iterate over the Hits object and do something? If
> the latter, your problem may really be the fact that the Hits object
> re-issues the search every 100 retrievals or so (this has been discussed in
> the mail archive...) and you'd get satisfactory performance by using a
> lower-level interface HitCollector(?) TopDocs(?).
>
> Otherwise, I haven't a clue, but you probably already realized that...
>
> Best
> Erick

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


Mime
View raw message