<sheepish-look-on-face/>

After re-reading the book (again), and the javadocs (again), it dawned on my
little brain that I needed to have a doc and freq array *the size of
maxDocs* for the index reader.  I also needed to iterate through the docs
array and call bitSet.set for each entry in docs (that was valid, of
course).  Everything is good now....

Thanks!

Jerry Jalenak
Senior Programmer / Analyst, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -----Original Message-----
> From: Erik Hatcher [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 24, 2005 1:27 PM
> To: Lucene Users List
> Subject: Re: Filtering w/ Multiple Terms
> 
> 
> As Paul suggested, output the Lucene document numbers from your Hits, 
> and also output which bit you're setting in your filter.  Do 
> those sets 
> overlap?
> 
>       Erik
> 
> On Jan 24, 2005, at 2:13 PM, Jerry Jalenak wrote:
> 
> > Paul / Erik -
> >
> > I'm use the ParallelMultiSearcher to search three indexes 
> concurrently 
> > -
> > hence the three entries into AccountFilter.  If I remove the filter 
> > from my
> > query, and simply enter the query on the command line, I 
> get two hits 
> > back.
> > In other words, I can enter this:
> >
> >     smith AND (account:0011)
> >
> > and get hits back.  When I add the filter back in (which 
> should take 
> > care of
> > the account:0011 part of the query), and enter only smith 
> as my query, 
> > I get
> > 0 hits.
> >
> >
> >
> > Jerry Jalenak
> > Senior Programmer / Analyst, Web Publishing
> > LabOne, Inc.
> > 10101 Renner Blvd.
> > Lenexa, KS  66219
> > (913) 577-1496
> >
> > [EMAIL PROTECTED]
> >
> >
> >> -----Original Message-----
> >> From: Erik Hatcher [mailto:[EMAIL PROTECTED]
> >> Sent: Monday, January 24, 2005 1:07 PM
> >> To: Lucene Users List
> >> Subject: Re: Filtering w/ Multiple Terms
> >>
> >>
> >>
> >> On Jan 24, 2005, at 12:26 PM, Jerry Jalenak wrote:
> >>> I spent some time reading the Lucene in Action book this weekend
> >>> (great job,
> >>> btw)
> >>
> >> Thanks!
> >>
> >>> public class AccountFilter extends Filter
> >>> I see where the AccountFilter is setting the cooresponding
> >> 'bits', but
> >>> I end
> >>> up without any 'hits':
> >>>
> >>> Entering AccountFilter...
> >>> Entering AccountFilter...
> >>> Entering AccountFilter...
> >>> Setting bit on
> >>> Setting bit on
> >>> Setting bit on
> >>> Setting bit on
> >>> Setting bit on
> >>> Leaving AccountFilter...
> >>> Leaving AccountFilter...
> >>> Leaving AccountFilter...
> >>> ... Found 0 matching documents in 1000 ms
> >>>
> >>> Can anyone tell me what I've done wrong?
> >>
> >> A filter constrains which documents will be consulted during
> >> a search,
> >> but the Query needs to match some documents that are 
> turned on by the
> >> filter bits.  I'm guessing that your Query did not match any of the
> >> documents you turned on.
> >>
> >>    Erik
> >>
> >>
> >> 
> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: 
> [EMAIL PROTECTED]
> >>
> >>
> >
> > This transmission (and any information attached to it) may be 
> > confidential and
> > is intended solely for the use of the individual or entity 
> to which it 
> > is
> > addressed. If you are not the intended recipient or the person 
> > responsible for
> > delivering the transmission to the intended recipient, be 
> advised that 
> > you
> > have received this transmission in error and that any use, 
> > dissemination,
> > forwarding, printing, or copying of this information is strictly 
> > prohibited.
> > If you have received this transmission in error, please immediately 
> > notify
> > LabOne at the following email address: 
> > [EMAIL PROTECTED]
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to