# Elasticsearch using Java

**URL:** <https://discuss.elastic.co/t/elasticsearch-using-java/122181>\
**Category:** Elasticsearch\
**Created:** [March 2, 2018, 3:23am UTC](https://discuss.elastic.co/t/elasticsearch-using-java/122181 "2018-03-02T03:23:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohit\_Garate](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@Rohit\_Garate](https://discuss.elastic.co/u/Rohit_Garate)\
**Post date:** [March 2, 2018, 3:23am UTC](https://discuss.elastic.co/t/elasticsearch-using-java/122181/1 "2018-03-02T03:23:32Z")

</div>

I have a use case where i want to make search within the billions of records. I wanted to display that much data on my UI. I knw i can do with pagination but the thing is data is huge nd we dont want to create any performance issue.

I was planning to use Elasticserach with java api but not sure how i can design. Please let me know if following solution will work

1. Read the data from Oracle database and provide to Elasticserach engine. I think Elasticserach engine will store the data in documents.

2. Write Elasticserach client in java code and make request for search. So search will happene on Elastic engine side and not the actual database.

Not sure how to implement this. Can someone guide me here. I did some research and i found the client code to make search request not the actual one which will make database hit and store in Elasticserach engine in java.

---

<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:** [March 2, 2018, 8:38am UTC](https://discuss.elastic.co/t/elasticsearch-using-java/122181/2 "2018-03-02T08:38:01Z")

</div>

Not sure I fully understood.  
You can read [http://david.pilato.fr/blog/2015/05/09/advanced-search-for-your-legacy-application/](http://david.pilato.fr/blog/2015/05/09/advanced-search-for-your-legacy-application/) which might help.

---

<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:** [March 30, 2018, 8:38am UTC](https://discuss.elastic.co/t/elasticsearch-using-java/122181/3 "2018-03-30T08:38:07Z")

</div>

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