lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <>
Subject Re: support for PayloadTermQuery in MoreLikeThis
Date Thu, 10 Sep 2009 10:57:43 GMT

On Sep 9, 2009, at 4:39 PM, Bill Au wrote:

> Has anyone done anything regarding the support of PayloadTermQuery in
> MoreLikeThis?

Not yet!  Sounds interesting

> I took a quick look at the code and it seems to be simply a matter of
> swapping TermQuery with PayloadTermQuery.  I guess a generic  
> solution would
> be to add a enable method to enable PayloadTermQuery, keeping  
> TermQuery as
> the default for backwards compatibility.  The call signature of the  
> same
> enable method would also include the PayloadFunction to use for the
> PayloadTermQuery.
> Any comments/thoughts?

Hmm, this could work, but I think we should try to be generic if we  
can and have it be overridable.  Today's PTQ is likely to segue to  
tomorrow's AttributeTermQuery and I wouldn't want to preclude them.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message