Re: Searching on Multiple fields

2006-07-16 Thread Erick Erickson
You could always construct a BooleanQuery with all the necessary sub-clauses on an as-needed basis. You can string the sub-clauses together in arbitrarily complex ways. Be particularly aware that you one of the clauses of a BooleanQuery may itself be a boolean query, so constructing something like

Searching on Multiple fields

2006-07-15 Thread Rod.Madden
Currently, my Lucene search code allows the user to specify which fields are searched ...I have now had a request to enhance the code to allow the users to specify that certain searchfields contain one value and other ( or all other ) fields contain a different value. In Luke I can do following