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: issue with Lucene UpdateDocument

2020-02-27 Thread Jyothsna Bavisetti
HI Team, 1.We Upgraded Lucene 4.6 to 8+, After upgrading we are facing issue with UpdateDocument API. We are using UpdateDocument for editing existing records and adding new records. 2.Adding a new record to the index file is working fine. 3.When we are trying to edit one of record from

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