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.

-Grant

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

Reply via email to