title: How to use ElasticSearch in spring boot having JPA in application, can I have to fetch records from table and put it in a index in elasticsearch?
body: <p>I am going to create the spring boot application having JPA for database operations and I have to provide the search engine (search for only data(like module links, documents along with small description) inside my web application) using Elastic search.</p>
  
  <p>My question is to:</p>
  
  <ul>
  <li><p>Can I have to search the text around the tables inside my database
  and the put it in Index of elasticsearch, If Yes then when and how?</p></li>
  <li><p>what is the best way for fast search?</p></li>
  </ul>
  
  <p>Please suggest the strategy and if any one know the example from end to end(from backend to UI) like this kind of application, please provide the demo.</p>
  
  <p>I had refered the this post <a href="https://stackoverflow.com/questions/43201437/spring-boot-spring-data-jpa-spring-data-elasticsearch-elastic-doesnt-retur?rq=1">Spring Boot + Spring Data JPA + Spring Data ElasticSearch: elastic doesn&#39;t return any results</a>
  but its not the full code, if I will get full POC with that I can understand it I was doing something similar</p>