Re: Implement a filter to the search results

2007-09-11 Thread M . K
index *: > > > > > > > > > > > > IndexWriter indexWriter = > > > > > > *new* IndexWriter(API.*getRootPath*() + "\\data\\LUCENE" , > > > > > > *new*StandardAnalyzer(),true); > > > > > > > > > &g

Re: Implement a filter to the search results

2007-09-11 Thread Erick Erickson
> > > Document document = *new* Document(); > > > > > > > > > > document.add(Field.*Text*("text", docText)); > > > > > > > > > > document.add(Field.*UnIndexed*("department", depart)); > > > > > &g

Re: Implement a filter to the search results

2007-09-11 Thread M . K
egory", courseId)); > > > > > > > > document.add(Field.*UnIndexed*( > > > > "year", year)); > > > > > > > > indexWriter.addDocument(document); > > > > > > > > indexWriter.close(); > > > > >

Re: Implement a filter to the search results

2007-09-11 Thread Erick Erickson
> > > > > indexWriter.addDocument(document); > > > > > > indexWriter.close(); > > > > > > > > > > > > *search: * > > > > > > *Searcher searcher = new IndexSearcher(API.getRootPath() + > > > "/data/LUCENE/");

Re: Implement a filter to the search results

2007-09-11 Thread M . K
gt; *Searcher searcher = new IndexSearcher(API.getRootPath() + > > "/data/LUCENE/"); > > Analyzer analyzer = new StandardAnalyzer();* > > > > * Query query = QueryParser.parse(request.getParameter("quer

Re: Implement a filter to the search results

2007-09-10 Thread testn
new StandardAnalyzer();* > > * Query query = QueryParser.parse(request.getParameter("query"), "text", > analyzer); > Hits hits = searcher.search (query);* > > I do not konw how implement a filter to the results of the search for > catgory or year or depar

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