# Algorithm for ranking previously scored more like this documents

**URL:** <https://discuss.elastic.co/t/algorithm-for-ranking-previously-scored-more-like-this-documents/21769>\
**Category:** Elasticsearch\
**Created:** [January 22, 2015, 5:49am UTC](https://discuss.elastic.co/t/algorithm-for-ranking-previously-scored-more-like-this-documents/21769 "2015-01-22T05:49:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julian\_Bright](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@Julian\_Bright](https://discuss.elastic.co/u/Julian_Bright)\
**Post date:** [January 22, 2015, 5:49am UTC](https://discuss.elastic.co/t/algorithm-for-ranking-previously-scored-more-like-this-documents/21769/1 "2015-01-22T05:49:11Z")

</div>

Hi,

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,  
Julian.

--  
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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6322659b-889b-41b3-9c5c-3c4d370f544a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6322659b-889b-41b3-9c5c-3c4d370f544a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:37am UTC](https://discuss.elastic.co/t/algorithm-for-ranking-previously-scored-more-like-this-documents/21769/2 "2017-07-06T00:37:20Z")

</div>

Closed on July 6, 2017, 12:37am UTC


