Algorithm for ranking previously scored more like this documents


I am using the more like this function to score a series of documents by
their ids. I now need to determine the rank of these documents within the
more like this corpus.

I am working on an algorithm to perform to build a binary search tree split
by rank which also includes the top score for this particular rank, so I
can find the optional range to search for the range of scores I have
associated with my dcoument ids.

Has anyone previously encountered this problem, or has a suggestion on how
to efficient implement such an algorithm (i'm using python)

Thanks in advance,

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit