# Code location pointer

**URL:** <https://discuss.elastic.co/t/code-location-pointer/262688>\
**Category:** Elasticsearch\
**Created:** [January 29, 2021, 8:48pm UTC](https://discuss.elastic.co/t/code-location-pointer/262688 "2021-01-29T20:48:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbenitez](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@mbenitez](https://discuss.elastic.co/u/mbenitez)\
**Post date:** [January 29, 2021, 8:48pm UTC](https://discuss.elastic.co/t/code-location-pointer/262688/1 "2021-01-29T20:48:57Z")

</div>

Hello,

I was wondering if someone here in the community could help me with some code location pointers.

I am working on a project, and as part of the project I am looking at the Elasticsearch source code. I am interested in finding the java files implementing certain functions of Elasticsearch. For example I am looking for the implementation of [Query DSL](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html). I will be happy with a directory location or file location. No need to go into details on the specific files (you can if you'd like, that would help too), I can do that myself, but a location to start looking into will certainly save me a lot of time. Obviously if you have pointers to other features I welcome those too.

I appreciate the help in advance!  
Mario

---

<div class="post-metadata">

**Author:** ![mayya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mayya/32/83147_2.png) [@mayya](https://discuss.elastic.co/u/mayya)\
**Post date:** [January 29, 2021, 11:30pm UTC](https://discuss.elastic.co/t/code-location-pointer/262688/2 "2021-01-29T23:30:43Z")

</div>

There are many parts involved in processing query by elasticsearch.  
If we take with a simple [term query](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-term-query.html), you can start with [TermQueryBuilder](https://github.com/elastic/elasticsearch/blob/master/server/src/main/java/org/elasticsearch/index/query/TermQueryBuilder.java), which is a builder object for a query that allows to decode a query from json and translate it to a corresponding Lucene query with the method `doToQuery`. Then the Lucene library will execute the query.

---

<div class="post-metadata">

**Author:** ![mbenitez](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@mbenitez](https://discuss.elastic.co/u/mbenitez)\
**Post date:** [January 30, 2021, 2:34pm UTC](https://discuss.elastic.co/t/code-location-pointer/262688/3 "2021-01-30T14:34:35Z")

</div>

Hello Mayya,

Thank you very much for the info. It is very helpful. It points me in the right direction.

Thanks again,  
Mario

---

<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:** [February 27, 2021, 2:35pm UTC](https://discuss.elastic.co/t/code-location-pointer/262688/4 "2021-02-27T14:35:18Z")

</div>

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