Hibernate Search abstracts you from these problems by solving:
- The structural mismatch: Hibernate Search takes care of the object/index translation
- The duplication mismatch: Hibernate Search manages the index, keeps changes synchronized with your database, and optimizes the index access transparently
- The API mismatch: Hibernate Search lets you query the index and retrieve managed objects as any regluar Hibernate query would do
没有hibernate之前用的是compass。以后可以考虑使用hibernate search