lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 김선무(sunmoo, KIM) <guks...@gmail.com>
Subject Re: IndexSearcher.doc thread safe problem
Date Thu, 10 Jul 2014 07:57:04 GMT
This problem is solved.

Queue is OK in multi-thread.
Lucene searcher is OK in multi-thread.

Hoss as saying the problem was found while demonstrate testing.
My method had the problem.

Thanks to helpers.


2014-07-10 11:05 GMT+09:00 Chris Hostetter <hossman_lucene@fucit.org>:

>
> : 4. Syncronized searcher.doc method call in multi-thread(like this: public
> : synchronized Document getValue( IndexSearcher searcher, int docId ) {
> : return searcher.doc( docId ); })
> :     ==> every execution is same.
> :            but If I use this method, It is no difference with single
> thread
> : performance.
> :
> : What do you think about it?
>
> You're asking us about the behavior of IndexSearcher.doc from
> multi-threaded code, but you haven't shown us enough code to even guess as
> to what your problem might be -- let alone reproduce it.
>
> can you please submit a cully self contained program -- that builds an
> index and then searches it -- and which demonstrates the problem you are
> having?   That way folks trying to help you will have actual code they can
> run on their machine to understand the problem you are describing.
>
>
>
> -Hoss
> http://www.lucidworks.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message