# Text Summarization as a processor in Elastic

**URL:** <https://discuss.elastic.co/t/text-summarization-as-a-processor-in-elastic/371296>\
**Category:** Elasticsearch\
**Created:** [December 2, 2024, 7:23am UTC](https://discuss.elastic.co/t/text-summarization-as-a-processor-in-elastic/371296 "2024-12-02T07:23:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavit\_Kaur1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pavit_kaur1/32/139629_2.png) [@Pavit\_Kaur1](https://discuss.elastic.co/u/Pavit_Kaur1)\
**Post date:** [December 2, 2024, 7:23am UTC](https://discuss.elastic.co/t/text-summarization-as-a-processor-in-elastic/371296/1 "2024-12-02T07:23:20Z")

</div>

Elastic Search Version: 8.11.0

Can anyone guide me on how to use `sshleifer/distilbart-cnn-12-6` to summarize a long text field and save the summarized output in documents? Specifically, I want to use it as a processor within an Elasticsearch pipeline.

---

<div class="post-metadata">

**Author:** ![Carlos\_D](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlos_d/32/126245_2.png) [@Carlos\_D](https://discuss.elastic.co/u/Carlos_D)\
**Post date:** [December 2, 2024, 8:50am UTC](https://discuss.elastic.co/t/text-summarization-as-a-processor-in-elastic/371296/2 "2024-12-02T08:50:20Z")

</div>

Hi @Pavit_Kaur1 :

As you checked in [this enhancement request](https://github.com/elastic/elasticsearch/issues/87548), this is not yet available from Elasticsearch itself.

You will need to perform the summarization as part of an external process and then ingest the documents that include the results in Elasticsearch.

---

<div class="post-metadata">

**Author:** ![Pavit\_Kaur1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pavit_kaur1/32/139629_2.png) [@Pavit\_Kaur1](https://discuss.elastic.co/u/Pavit_Kaur1)\
**Post date:** [December 2, 2024, 10:31am UTC](https://discuss.elastic.co/t/text-summarization-as-a-processor-in-elastic/371296/3 "2024-12-02T10:31:02Z")

</div>

Thanks for the reply @Carlos_D. To confirm that I am not missing something, is there any other approach to perform summarization for a long text field directly within Elasticsearch using its machine learning features?

---

<div class="post-metadata">

**Author:** ![Carlos\_D](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlos_d/32/126245_2.png) [@Carlos\_D](https://discuss.elastic.co/u/Carlos_D)\
**Post date:** [December 2, 2024, 2:07pm UTC](https://discuss.elastic.co/t/text-summarization-as-a-processor-in-elastic/371296/4 "2024-12-02T14:07:09Z")

</div>

Not at the moment @Pavit_Kaur1 . Elasticsearch provides the ingestion processor for text embedding / sparse embedding, and semantic\_text provides automatic embedding generation - but there's no ingestion processor or other mechanism that can be used in Elasticsearch for that directly.

I'm afraid client processing is necessary for calculating summarization for the time being.
