# How to log information of top documents in Elasticsearch

**URL:** <https://discuss.elastic.co/t/how-to-log-information-of-top-documents-in-elasticsearch/147884>\
**Category:** Elasticsearch\
**Created:** [September 10, 2018, 5:37am UTC](https://discuss.elastic.co/t/how-to-log-information-of-top-documents-in-elasticsearch/147884 "2018-09-10T05:37:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rainfield](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@rainfield](https://discuss.elastic.co/u/rainfield)\
**Post date:** [September 10, 2018, 5:37am UTC](https://discuss.elastic.co/t/how-to-log-information-of-top-documents-in-elasticsearch/147884/1 "2018-09-10T05:37:35Z")

</div>

We have an ES based system in which we use a native java plugin to score and rank documents. We need to log some attributes of the documents that are returned to the client for machine learning model training. Is that possible to do the logging on the coordinate node only for the final top N documents that are returned?

---

<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:** [October 8, 2018, 5:37am UTC](https://discuss.elastic.co/t/how-to-log-information-of-top-documents-in-elasticsearch/147884/2 "2018-10-08T05:37:35Z")

</div>

Closed on October 8, 2018, 5:37am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
