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

Re: Implement a filter to the search results

2007-09-11 Thread M . K
iring > each non-empty field accomplish what you want? Which would > be something like > b.add(query, BooleanClause.MUST); > > Best > Erick > > On 9/11/07, M. K <[EMAIL PROTECTED]> wrote: > > > > I am not sure, I understant perfectly. > > Is this the

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

Implement a filter to the search results

2007-09-10 Thread M . K
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 is how can I filter the results if users select a category or a department or a year or a combination of them. *index *: IndexWriter indexWrit