lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Libbrecht <>
Subject Re: About the field of PhraseQuery
Date Mon, 20 Jun 2005 06:57:53 GMT
So why is there no such constructor
  PhraseQuery(String fieldName)
and a method
   add(Token tok)
That would be much more intuitive I feel!


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:
For additional commands, e-mail:

View raw message