# External Source used for Scoring - Need Plugin Start

**URL:** <https://discuss.elastic.co/t/external-source-used-for-scoring-need-plugin-start/21038>\
**Category:** Elasticsearch\
**Created:** [December 2, 2014, 5:43pm UTC](https://discuss.elastic.co/t/external-source-used-for-scoring-need-plugin-start/21038 "2014-12-02T17:43:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scott\_Decker](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@Scott\_Decker](https://discuss.elastic.co/u/Scott_Decker)\
**Post date:** [December 2, 2014, 5:43pm UTC](https://discuss.elastic.co/t/external-source-used-for-scoring-need-plugin-start/21038/1 "2014-12-02T17:43:49Z")

</div>

Hey All,  
I know we can use a plugin to get started in ES, every once in awhile  
load values for a key in our es index, and then use these values when  
running the scoring of a query run against the documents.

Not really sure what plugin start base we need to do with this.

To give the basics, we would have  
1 - about 400k documents per day, that every 5 minutes, for each document,  
we have a new updated ranking value for the document  
2 - we don't want to update es every 5 minutes for every document, because  
that causes too many updates per doc, just for 1 field change  
3 - we think a plugin could work, where the plugin gets the updates and  
stores locally for that day's documents the docId + it's updated rank score  
4 - run a custom scoring function that runs a query+custom score and the  
custom score utilizes the rank score, by looking up the doc's docId during  
the scoring process

Anyone have a good plugin starting place that would be loaded once on the  
es side, so it can just do periodic updates to it's rank scores  
and also be used to help the scoring function with that data when running a  
query against the es servers?

Thanks!  
Scott

--  
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/cb95881d-07b6-458a-9cc4-8f85025c4daf%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/cb95881d-07b6-458a-9cc4-8f85025c4daf%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:46am UTC](https://discuss.elastic.co/t/external-source-used-for-scoring-need-plugin-start/21038/2 "2017-07-06T00:46:31Z")

</div>


