Hi,
Quote:
Question 1: Is it possible use hibernate search without annotaion? Just like old way, set everything on xxx.hbm.xml
you can't set the Search annotations in hbm.xml, but you can use entities mapped in hbm.xml and add only the annotations needed for Search.
Quote:
Question 2: For hibernate search, do I have to use JPA? Can I use it in my old hibernate application.
Works both with JPA and Hibernate; JPA wraps the Hibernate implementation, so there are no implementation differences.
Quote:
Question 3: The follows is my Student object mapping:
not sure about this one, I think you need the composite key class.
Quote:
Question 4: If a student has unidirectional relation with teacher, Can I still able to update index at same time.
it depends on the direction of the relation; it's possible you need to change it to a bidirectional. check the reference docs, section 4.1.3
http://www.hibernate.org/hib_docs/search/reference/en/html/search-mapping.html#d0e1322