Re: How to tell Lucene index search to stop when it takes too long

2020-02-28 Thread baris . kazar
I have one more question on this, should i use Thread to use this class? The snippet did not have that. Best regards On 2/28/20 11:07 AM, baris.ka...@oracle.com wrote: Thanks Mikhail. I missed that cosntructor's first parameter. Best regards On 2/28/20 12:53 AM, Mikhail Khludnev wrote: Pa

Re: How to tell Lucene index search to stop when it takes too long

2020-02-28 Thread baris . kazar
Thanks Mikhail. I missed that cosntructor's first parameter. Best regards On 2/28/20 12:53 AM, Mikhail Khludnev wrote: Pass TopDocsCollector as the first arg into TimeLimitingCollector. On Thu, Feb 27, 2020 at 2:31 PM wrote: Hi,- Sometimes the search takes too long even with PhraseWildcar

Re: How to tell Lucene index search to stop when it takes too long

2020-02-27 Thread Mikhail Khludnev
Pass TopDocsCollector as the first arg into TimeLimitingCollector. On Thu, Feb 27, 2020 at 2:31 PM wrote: > Hi,- > > Sometimes the search takes too long even with PhraseWildcardQuery, so i > would like to limit the search time via TimeLimitingCollector API. > > > Thanks to Mikhail and this Forum

Re: How to tell Lucene index search to stop when it takes too long

2020-02-27 Thread baris . kazar
Hi,- Sometimes the search takes too long even with PhraseWildcardQuery, so i would like to limit the search time via TimeLimitingCollector API. Thanks to Mikhail and this Forum to inform me about this API. i checked this IndexSearcher API with Collector parameter but that API does not have

Re: How to tell Lucene index search to stop when it takes too long

2020-02-24 Thread baris . kazar
Will do, Thanks > On Feb 25, 2020, at 1:34 AM, Mikhail Khludnev wrote: > > Hello. > > Meet org.apache.lucene.search.TimeLimitingCollector. > >> On Mon, Feb 24, 2020 at 2:51 PM wrote: >> >> Hi,- >> >> I hope everyone is doing great. >> >> >> i am trying to find an api to tell Lucene Inde

Re: How to tell Lucene index search to stop when it takes too long

2020-02-24 Thread Mikhail Khludnev
Hello. Meet org.apache.lucene.search.TimeLimitingCollector. On Mon, Feb 24, 2020 at 2:51 PM wrote: > Hi,- > > I hope everyone is doing great. > > > i am trying to find an api to tell Lucene Index Searcher to stop after > 0.5 seconds (when it takes longer than this). > > Is there such an api or

How to tell Lucene index search to stop when it takes too long

2020-02-24 Thread baris . kazar
Hi,- I hope everyone is doing great. i am trying to find an api to tell Lucene Index Searcher to stop after 0.5 seconds (when it takes longer than this). Is there such an api or plan to implement one? Best regards - To