[Xapian-discuss] Relevance feedback

Olly Betts olly at survex.com
Wed Nov 2 18:11:00 GMT 2011


On Wed, Nov 02, 2011 at 11:10:59AM +0000, Richard Boulton wrote:
> On 2 November 2011 09:50, Justin Finkelstein <justin at redwiredesign.com> wrote:
> > Also, I've noticed on the Features page on xapian.org, there's mention
> > of getting related documents out; is there any documentation (either in
> > the API or otherwise) that describes this?
> 
> I'm not sure there is any documentation of how to do this: roughly,
> what you do to find similar documents to a set of documents (or a
> single document) is:
> 
>  - build an RSet with the ids of the documents you're starting with.
>  - build an ESet from that (with enquire.get_eset())
>  - use that ESet in a query (joined with OP_OR); the top few documents
> of the results of that should be similar to your starting documents.

I think it probably isn't described in the docs.  You can see how Omega
implements this here though:

http://trac.xapian.org/browser/trunk/xapian-applications/omega/omega.cc#L189

Cheers,
    Olly



More information about the Xapian-discuss mailing list