Hi to all,
I am using Hibernate.4.0.1.Final. My Entity class have five fields,
1. employeeId - Long
2. empName - String
3. empMobile - Long
4. empAddress - String
5. empDOB - <b>Date</b>
But my Elasticsearch field data types,
1. employeeId - Long
2. empName - String
3. empMobile - Long
4. empAddress - String
5. empDOB -<b> Long</b>
Instead of empDOB datatype Long to Date.
How Can I solve this One?
When am creating index using Java code... like
client.prepareIndex("indexName","type",id"+count).setSource(employee.getBytes()).execute().actionGet();
Here, how to mention datatype like entity class? Any one help me....