Re: Question about Indexsearcher.search()

2019-01-25 Thread Tomoko Uchida
Hi, Tokenization is usually performed by a query parser before searching and the result documents may include all terms or some of the terms or only one term in the query string (it depends on your query configuration). > I'm trying to make sample search application with Lucene. Have you checked

Re: Analyzers thread safe across indexes?

2019-01-25 Thread Bill Gray
Thank you Adrien. On Thu, Jan 24, 2019 at 10:10 PM Adrien Grand wrote: > Hi Bill, > > Yes, reusing analyzers across different indexes is safe. > > Tokenizers (and some token filters and char filters) are stateful, but > state caching is performed in a ThreadLocal so no state is shared > between

Re: Scripting in lucene

2019-01-25 Thread Ashok Archunan
Hi Adrien, Using the Groovy script, we modified the existing data in the document from the application server itself for our case, but we still work on one particular case as I discussed before in which we need to retrieve documents based on two indexed fields having same value. For instance, cons

Question about Indexsearcher.search()

2019-01-25 Thread NDelt
Hello. I'm trying to make sample search application with Lucene. search() method of IndexSearcher class searches documents with given query, and returns TopDocs instance. TopDocs instance has array of ScoreDoc instances. My question is: 1. Will query be tokenized during search? 2. If so, does Sco