title: Elastic Search and PostgreSQL Integration with Spring Boot
body: <p>I am building a Spring Boot application with elastic search and PostgreSQL.I am using PostgreSQL for writing purposes and elastic search for reading purposes.
  but I have stuck on some points.:</p>
  <ol>
  <li>Is we need to write separate model(POJO) classes for elastic search and PostgreSQL? because we are using ElasticsearchRepository for elastic search and JpaRepository.</li>
  <li>And also the annotations for elastic search are different and annotations for PostgreSQL are different on model classes.</li>
  </ol>
  <p>Any body have idea what is the spring boot project structure where elastic search is used for reading purposes and PostgreSQL used for writing purposes.</p>