QueryFilter usage

2007-05-15 Thread Anna Putnam
Hi all, I am new to Lucene so I apologize if this is a really easy question. I am having trouble using the QueryFilter class. Basically, I want to narrow my search results, getting hits only for a particular category. This is what I've tried (getting no results) String line ="jus

Re: QueryFilter usage

2007-05-15 Thread James Rhodes
unsubscribe

Re: QueryFilter usage

2007-05-16 Thread Wayne Graham
While I too am still learning, I ran into this last week. Try this: String line = "justin"; Query query = parser.parse(line); TermQuery tq = new TermQuery(new Term("category", "Pop")); Filter qf = new QueryFilter(tq); Hits hits = search(query, qf); HTH, Wayne Anna Putnam wrote: > Hi all, >