lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Elschot <paul.elsc...@xs4all.nl>
Subject Re: About the field of PhraseQuery
Date Mon, 20 Jun 2005 19:00:12 GMT
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: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message