You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Chris Bamford <ch...@bammers.net> on 2011/04/14 20:11:13 UTC
Parallel access to TermPositions API
Hi,
I need to load a huge amount of TermPositions in a short space of time
(millions of Documents, sub-second).
Does the IndexReader's API support multiple accesses to allow several
parallel threads to consume a chunk each?
Thanks for any ideas / pointers.
- Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Parallel access to TermPositions API
Posted by Federico Fissore <fe...@fissore.org>.
Chris Bamford, il 14/04/2011 20:11, ha scritto:
> Hi,
>
> I need to load a huge amount of TermPositions in a short space of time
> (millions of Documents, sub-second).
> Does the IndexReader's API support multiple accesses to allow several
> parallel threads to consume a chunk each?
>
AFAIK, you cannot share one instance of TermPositions, but each of your
thread may have its own dedicated instance, so each will start with a
different call to skipTo or seek before consuming
Anyway the I/O will be a problem: you can have a 16 way server, but if
your index is on one harddrive, that will be your bottleneck
HTH
Federico
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org