RE: Re: Help on the ParallelMultiSearcher.rewrite(Query) method

2005-07-08 Thread Terence Lai
You can use query.rewrite(IndexReader). > > Erik > > > On Jul 7, 2005, at 3:04 PM, Terence Lai wrote: > > > Hi all, > > > > I am currently using Lucene 1.4.2. Since my search documents are > > huge, I divide the search index into different index dire

Help on the ParallelMultiSearcher.rewrite(Query) method

2005-07-07 Thread Terence Lai
Hi all, I am currently using Lucene 1.4.2. Since my search documents are huge, I divide the search index into different index directory and make use of the ParallelMultiSearcher to perform the search. Currently, I am working on the highlight feature using Lucene Sandbox Highlighter. One of the

Question on the Sandbox Highlighter

2005-07-05 Thread Terence Lai
Hi, I am currently using Lucene 1.4.2 with the highighter downloaded from Lucene In Action. The Highlighter class provides the following method to highlight the terms specified in the Query: /** * Highlights chosen terms in a text, extracting the most relevant section. * The document text is

Question on lucene sandbox highlighter

2005-06-10 Thread Terence Lai
Hi all, I have a couple questions regarding to the Highlighter. Question 1: === I download the highlighter source files. When I compile the code, I got the following error: org/apache/lucene/search/highlight/TokenSources.java [19:1] cannot resolve symbol symbol : clas

Atomic updates on Lucene index document?

2005-04-14 Thread Terence Lai
Hi all, As far as I know, I don't find any Lucene API for updating an index document. What I have to do is to delete the existing index document and insert a new one. However, this is going to be 2 separate operations (delete and update). If the first operation suceeds while the second operatio