On Monday 20 June 2005 08:57, Paul Libbrecht wrote: > So why is there no such constructor > PhraseQuery(String fieldName) > and a method > add(Token tok) > ??
Tradition? > That would be much more intuitive I feel! Regards, Paul Elschot > > paul > > > Le 18 juin 05, à 09:44, Paul Elschot a écrit : > > > It will throw an IllegalArgumentException when a Term is added > > with a different field, which is probably what happened. > > > > For PhraseQuery the field name and the term text could have been > > used separately in the interface, which might have prevented your bug. > > For example an alternative PhraseQuery could have constructor with a > > field name argument, and term texts could be added at phrase positions. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]