Hi,
I am using HibernateSearch 6.0 Beta8 for querying data from ElasticSearch. I have to choose custom fields like empName and department alone from an index for all those employees whose names are “Kevin”, “Calvin” and “Ronnie”.
In Hibernate ORM
-
we populate criteria
ex:-
criteria = criteria.add(Restrictions.in(“empName”, filterData.getEmployeeName()));
criteria = criteria.add(Restrictions.in(“dept”, filterData.getDepartment()));
List empList = criteria.list(); -
select col1, col2,col5 from ;
Need to select subset of columns
How do we acheive the above in Hibernate Search 6.0
Thanks In Advance.
Best Regards,
Srikanth C