Thanks Nick, Then can there be a bug s.t. you try to decref the searcher after getting 0 results?
Thanks again, Serkan On Fri, Jan 6, 2017 at 4:20 AM, Nick Wellnhofer <[email protected]> wrote: > On 06/01/2017 01:31, Serkan Mulayim wrote: > >> I believe it is not directly related to the number of results returned. >> But >> something happens when we try to DECREF very quickly. I see that we need >> pthread. This makes me think that search and DECREF does not happen in the >> same thread, but I do not want to be confusing so no more comments >> regarding the threads :). >> > > Lucy doesn't use threads internally. > > Has anyone seen this issue? Do you have any suggestions? Is there a concern >> in creating a new searcher and destroying it by DECREF every time (other >> than a possible slowness)? Is there a better way to destroy a searcher? >> > > Recreating searchers is perfectly fine and DECREF is the only way to > destroy a searcher. The only suggestion I have is to test with Valgrind or > ASan. > > Nick > >
