# Using spaCy lemmatizers with ElasticSearch

**URL:** <https://discuss.elastic.co/t/using-spacy-lemmatizers-with-elasticsearch/253721>\
**Category:** Elasticsearch\
**Created:** [October 29, 2020, 3:35pm UTC](https://discuss.elastic.co/t/using-spacy-lemmatizers-with-elasticsearch/253721 "2020-10-29T15:35:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aquarian\_14](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@aquarian\_14](https://discuss.elastic.co/u/aquarian_14)\
**Post date:** [October 29, 2020, 3:35pm UTC](https://discuss.elastic.co/t/using-spacy-lemmatizers-with-elasticsearch/253721/1 "2020-10-29T15:35:30Z")

</div>

Has anyone attempted to do lemmatization outside of elasticsearch on content, and fed the pre-analyzed tokens in document field and then ingested the document?

I would like to use spaCy lemmatization for content that I will be indexing into ES. I also would like to apply the same lemmatization on the query Text and then using that to query ES.

What kind of custom analyzer should I be setting up to achieve this?

---

<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:** [November 26, 2020, 3:35pm UTC](https://discuss.elastic.co/t/using-spacy-lemmatizers-with-elasticsearch/253721/2 "2020-11-26T15:35:31Z")

</div>

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