Daniel Naber wrote:

These are just simple convenience methods that create a BooleanQuery. Making them non-static would create a different set of problems, e.g that you need to pass them an array with the same number of elements as the constructor was given. So I don't know if this is something that should be changed.
Ahh.   Sorry, I think I misunderstood.   I think I wanted to do

  qp = new MutliFieldQueryParser(new String[]{"subject", "text"},
         new BooleanClause.Occur[]{MUST, SHOULD},
         analyzer);
  qp.setLocale(locale);
  qp.setSlop(slop);

and I'm no longer sure that that has any worthwhile benefit. I think I was also thinking that other combinations of occurances would be useful but, this morning and for the life of me, I can't see why. I think having both fields required was possibly what I was thinking of. Maybe I've just lost my marbles :-)

jch

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to