# How can i use elasticsearch as a graphdb?

**URL:** <https://discuss.elastic.co/t/how-can-i-use-elasticsearch-as-a-graphdb/373552>\
**Category:** Elasticsearch\
**Created:** [January 23, 2025, 6:25am UTC](https://discuss.elastic.co/t/how-can-i-use-elasticsearch-as-a-graphdb/373552 "2025-01-23T06:25:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ali\_Zeiynali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ali_zeiynali/32/140880_2.png) [@Ali\_Zeiynali](https://discuss.elastic.co/u/Ali_Zeiynali)\
**Post date:** [January 23, 2025, 6:25am UTC](https://discuss.elastic.co/t/how-can-i-use-elasticsearch-as-a-graphdb/373552/1 "2025-01-23T06:25:15Z")

</div>

want to use Elasticsearch as a graph database, but I'm not sure how this is possible. I'm working on a text analysis project for coding and other analytics, similar to Maxqda. I want to implement some graph algorithms like shortest path, etc. However, this is not normally possible with Elasticsearch, and I want my storage to resemble a graph while still being able to execute Elasticsearch queries.

Most graph databases do not support advanced input and searching within entities, which makes them insufficient for my needs. I don't know how to implement this.

I read the a medium article, but i feeling it is not enough. I believe there are bigger challenges for this project.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 23, 2025, 6:53pm UTC](https://discuss.elastic.co/t/how-can-i-use-elasticsearch-as-a-graphdb/373552/2 "2025-01-23T18:53:57Z")

</div>

May be this would help:

> **[Graph RAG: Implementing graph traversal for RAG with Elasticsearch -...](https://www.elastic.co/search-labs/blog/rag-graph-traversal)**
>
> Discover how to use Knowledge Graphs to enhance RAG results while storing the graph efficiently in Elasticsearch. This guide explores a detailed strategy for dynamically generating knowledge subgraphs tailored to a user’s query.

And if you are speaking French, this is the related video:

[![](https://us1.discourse-cdn.com/elastic/original/3X/d/e/de4787c77146b525bfd164e44795ae4ade2f72dd.jpeg "Meetup ElasticFR #93 - Traversée d'un Graphe, avec des millions de relations, pour améliorer un RAG") ](https://www.youtube.com/watch?v=_oQzsOu2ok4)

And finally @ivanqwam could also share his thoughts as he did all the above 😁
