Re: Filter documents on a field value while searching the index

2011-01-22 Thread Erick Erickson
See below... On Sat, Jan 22, 2011 at 3:54 PM, amg qas wrote: > Hi Eric, > > Thanks for the answer.. This does works for me in most cases.. > > I am actually new to lucene and still getting acquainted to the > various features exposed by it. > When I looked at the API of IndexSearcher I thought t

Re: Filter documents on a field value while searching the index

2011-01-22 Thread amg qas
Hi Eric, Thanks for the answer.. This does works for me in most cases.. I am actually new to lucene and still getting acquainted to the various features exposed by it. When I looked at the API of IndexSearcher I thought that it is the purpose of the filter class to filter the returned result set.

Re: Filter documents on a field value while searching the index

2011-01-22 Thread Erick Erickson
I guess I don't see what the problem is. These look to me like standard Lucene query syntax options. If I'm off base here, let me know. If you're building your own BooleanQuery, you can add these as sub-clauses Here's the Lucene query syntax: http://lucene.apache.org/java/2_9_1/queryparsersyntax.

Filter documents on a field value while searching the index

2011-01-22 Thread amg qas
Hi, I have couple of questions on filtering result set while performing a search in lucene index : 1) I want to filter the document set returned when searching an index based on a match on a particular field. For eg if I have a Field in my index called CompanyName - then while searching for docum