---
title: "Discussion on \"Spring Data Elasticsearch custom converters\" | Hashnode"
description: "Discussion on \"Spring Data Elasticsearch custom converters\". It happens quite often to have Elasticsearch fields with a small number of possible values so it is natural to model these as enums. \nSpring Data maps enum by default using the enum name and it gets a bit complicated when we want to map these values ..."
url: "https://hashnode.com/posts/spring-data-elasticsearch-custom-converters/61d67b676be3e31286ae7370"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Spring Data Elasticsearch custom converters](https://marius-barbulescu.hashnode.dev/spring-data-elasticsearch-custom-converters?utm_source=hashnode&utm_medium=feed)

It happens quite often to have Elasticsearch fields with a small number of possible values so it is natural to model these as enums. Spring Data maps enum by default using the enum name and it gets a bit complicated when we want to map these values ...

Jan 6, 2022 · 2 min read · marius-barbulescu.hashnode.dev  
Read the article

-   [#elasticsearch](https://hashnode.com/tag/elasticsearch)
-   [#spring](https://hashnode.com/tag/spring)

## Written by

[Marius Barbulescu](https://hashnode.com/@marius-barbulescu)

@marius-barbulescu · Zürich

  
[View profile](https://hashnode.com/@marius-barbulescu)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
