On Jun 23, 2007, at 11:24 PM, Jack L wrote:
I have some documents, each has a number of tags. I'd like to
have a query to return "similar" documents which share largest
number of tags with a given document. For example, if I have
doc that has 4 tags, and I'd like to return docs that also
have these 4 tags. And if this doesn't make up a number of records,
say, 10 records, I'd like to have some more docs that share 3
of the tags. And if this is still not enough, those sharing 2
tags... I wonder if there is a way to construct a solr query
to do this?

The MoreLikeThis handler may get you close enough to what you're after:

        <http://wiki.apache.org/solr/MoreLikeThis>

It's in the trunk codebase, so try out a recent nightly build.

        Erik


Reply via email to