Re: Implement a filter to the search results

2007-09-11 Thread M . K
Thanks Erick. MK On 9/11/07, Erick Erickson <[EMAIL PROTECTED]> wrote: > > Well, it depends upon how you indexed things > > Your previous post was along the right lines as > far as I can see though... > > Erick > > Assuming that you have > > On 9/11/07, M. K <[EMAIL PROTECTED]> wrote: > > > >

Re: Implement a filter to the search results

2007-09-11 Thread Erick Erickson
Well, it depends upon how you indexed things Your previous post was along the right lines as far as I can see though... Erick Assuming that you have On 9/11/07, M. K <[EMAIL PROTECTED]> wrote: > > Lucene 1.4.3 > > ignor the filter words. > My question was: > I have a search form which has

Re: Implement a filter to the search results

2007-09-11 Thread M . K
Lucene 1.4.3 ignor the filter words. My question was: I have a search form which has an input area for key search and also three optional select boxs *Catagory, Department and Year. * How can I implement that? Is it correct the way I wrote in my last email. Thanks, MK On 9/11/07, Erick Erickso

Re: Implement a filter to the search results

2007-09-11 Thread Erick Erickson
What version of Lucene are you using? I don't think the form b.add(query, false, false) is current. Be that as it may, I'm not quite sure what you mean by filter. If I'm reading your intent correctly, wouldn't requiring each non-empty field accomplish what you want? Which would be something like b

Re: Implement a filter to the search results

2007-09-11 Thread M . K
I am not sure, I understant perfectly. Is this the way you said: document.add(Field.*UnStored*("text", docText)); document.add(Field.*Text*("category", category)); document.add(Field.*Text*("department",department)); document.add(Field.*Text*("year", year)); *search:* String[] fields = { "tex

Re: Implement a filter to the search results

2007-09-10 Thread testn
It's probably easier to add category, department, year as a part of query and then requery to get the hits you need. M.K wrote: > > Hi All, > > I have a search form which has an input area for key search and also > three > optional select boxs *Catagory, Department and Year. * > My question