# Elastic search for storing and querying

**URL:** <https://discuss.elastic.co/t/elastic-search-for-storing-and-querying/197945>\
**Category:** Elasticsearch\
**Created:** [September 3, 2019, 8:44pm UTC](https://discuss.elastic.co/t/elastic-search-for-storing-and-querying/197945 "2019-09-03T20:44:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yogeshsingh](https://avatars.discourse-cdn.com/v4/letter/y/3bc359/32.png) [@Yogeshsingh](https://discuss.elastic.co/u/Yogeshsingh)\
**Post date:** [September 3, 2019, 8:44pm UTC](https://discuss.elastic.co/t/elastic-search-for-storing-and-querying/197945/1 "2019-09-03T20:44:05Z")

</div>

Hi, I am new to elastic search. Just came across it today while exploring database's to store my data.  
I want to store mapping of test and sour  
ce files/ methods which are covered by the test.

For eg.Test1 : { source file1 : method1

```
          Source file1 : method2

          Source file2 : method1

          Source file2 : method2}

```

Test2 :

```
          { source file1 : method1

          Source file1 : method2

          Source file3 : method1

          Source file3: method2}

```

I want to store this info and then run queries. Query will be given source files or methods names and the result should be all the tests that cover those source files and methods. I may add more values to the above mapping such as amount of time spent by the test in each source file and each method.

Can I use elastic search for storing and querying this information.

Thanks.

---

<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:** [October 1, 2019, 8:44pm UTC](https://discuss.elastic.co/t/elastic-search-for-storing-and-querying/197945/2 "2019-10-01T20:44:13Z")

</div>

Closed on October 1, 2019, 8:44pm UTC

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