Itamar, why do you suggest one searcher per thread? The searcher is  
multithreaded.

Borek,
I suggest you look at the architecture for nutch. They have some good  
ideas implemented there.

Ben


Sent from my iPhone

On 25/07/2010, at 1:02, Itamar Syn-Hershko <[email protected]> wrote:

> Borek,
>
> That is a good question. My gut tells me it all depends on your  
> scenario
> and configurations, and you'd do best to just benchmark and see.
>
> Reusing an IndexSearcher is definitely necessary, but if you'll be  
> using
> one searcher for multiple users then you'll have to implement some  
> sort
> of locking mechanism, and this may introduce performance hit. Having  
> one
> searcher per user is safer and faster, but will require more RAM.
> Perhaps having a pool of searchers where you "fish" one whenever you
> need to perform a search is the best idea: you then keep the amount of
> searchers to the minimum necessary, but still are not suffering from  
> too
> many locks.
>
> My be a good idea to ask this at [email protected], there you may find
> people who had this problem before with Lucene Java.
>
> Itamar.
>
> On 23/7/2010 1:22 PM, Kostka Bořivoj wrote:
>> Hi,
>>
>> I'm looking for some hints on server type application architecture  
>> from optimal CLucene search usage point of view.
>> Questions like:
>>
>> Share IndexSearcher objects between users or dedicate one for each  
>> user
>> What is the optimal number of IndexSearcher objects
>> One large index or smaller indexes serched in parallel
>>
>> etc.
>>
>> I'm not able to find anything.
>> If somebody could provide me any useful links it will be very helpful
>>
>> Thanks
>>
>> Borek
>>
>> --- 
>> --- 
>> --- 
>> ---------------------------------------------------------------------
>> This SF.net email is sponsored by Sprint
>> What will you do first with EVO, the first 4G phone?
>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
>> _______________________________________________
>> CLucene-developers mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/clucene-developers
>>
>>
>>
>
> --- 
> --- 
> --- 
> ---------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> CLucene-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/clucene-developers

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
CLucene-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clucene-developers

Reply via email to