Maybe add to each doc a field numVolunteers and then constraint the query to
vol:krish and vol:raj and numvol:2 (something like that)?

On Wed, Jul 22, 2009 at 9:49 AM, ba3 <sbadhrin...@gmail.com> wrote:

>
> Hi,
>
> In the documents which contain the volunteer information :
>
> Doc1 :
> volunteer krish
> volunteer john
> volunteer Raj
> ...
>
> Doc2 :
> volunteer krish
> volunteer Raj
> volunteer Ganesh
>
> Doc3 :
> volunteer krish
> volunteer Raj
>
> The documents having ONLY krish and Raj as the volunteers need to be found.
> As in above snapshot of docs, the doc3 alone qualifies in the result and
> not
> the first two. Using boolean query I could find the three documents.
>
> Can you please suggest me some pointers as to how this can be achieved.
>
> -- Regards
> Ba3
> --
> View this message in context:
> http://www.nabble.com/Exclusion-search-tp24600949p24600949.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>

Reply via email to