Re: Index Question

2005-12-18 Thread praveenl
Thanks for the reply. I thought of doing it. I downloaded the latest source and tried to build it using ant. I am new to using 'ant'. It gives me an error and I think the problem is with 'rmic'. I never came across this before either. It says - BUILD FAILED /projects/keyconcept/praveen/lucene-1.4.

Re: Index Question

2005-12-18 Thread Dave Kor
On 12/19/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > I know that lucene index takes a directory of files to be indexed and > builds the index. Now is there a way to specify the number of files from > the directory to be indexed? > > I mean if I have a directory of 10,000 files and I

Index Question

2005-12-18 Thread praveenl
Hi, I know that lucene index takes a directory of files to be indexed and builds the index. Now is there a way to specify the number of files from the directory to be indexed? I mean if I have a directory of 10,000 files and I want an index of only 2000 files from these 10k files, how can specify

Re: Filtering after Query

2005-12-18 Thread Laurens Pit
Hi Paul, W.r.t. ConstantScoringQuery, it contains a minor bug: it doesn't the handle the case where the Filter.bits method would return null. I think the ConstantScorer should look like: public boolean next() throws IOException { doc = (bits == null) ? doc+1 : bits.nextSetBit(doc+1);

Re: Filtering after Query

2005-12-18 Thread Yonik Seeley
> W.r.t. ConstantScoringQuery, it contains a minor bug: it doesn't the > handle the case where the Filter.bits method would return null. Can Filter.bits() ever return null though? AFAIK, that's not in the contract. The Filter.getBits() javadoc says: Returns a BitSet with true for docum

Re: Filtering after Query

2005-12-18 Thread Chris Hostetter
: I have the same problem with HitCollector: I'd need to go through /all/ : documents. Are you sure about that? I'm fairly certain that IndexSearcher will never give your HitCollector a doc to collect unless that doc matches the query. (Note: i seem to recall that it is possibel you'll be given

Re: Filtering after Query

2005-12-18 Thread Paul Elschot
On Sunday 18 December 2005 15:46, Cret Hummin wrote: > Hi Paul, > > W.r.t. ConstantScoringQuery, it contains a minor bug: it doesn't the > handle the case where the Filter.bits method would return null. I think > the ConstantScorer should look like: > > public boolean next() throws IOExcept

Re: help in indexing database tables

2005-12-18 Thread Daniel Naber
On Sonntag 18 Dezember 2005 08:16, [EMAIL PROTECTED] wrote: > hi.. > I would like to know how to index database tables using Lucene. As this question comes up regularly, I have added a new FAQ item: http://wiki.apache.org/jakarta-lucene/LuceneFAQ#head-109358021acbfc89456e446740dc2bbf9049950f Reg

Re: Filtering after Query

2005-12-18 Thread Cret Hummin
Hi Paul, W.r.t. ConstantScoringQuery, it contains a minor bug: it doesn't the handle the case where the Filter.bits method would return null. I think the ConstantScorer should look like: public boolean next() throws IOException { doc = (bits == null) ? doc+1 : bits.nextSetBit(doc+1);