Recently used hibernate search this component
This component is a full-text index of the domain model, and Lucene technology is used in the implementation of the full-text retrieval.
It took a lot of effort to fix the package when we were doing a little test.
I validate it directly from an instance
I started with the latest Hibernate-search package, causing the direct problem is the various packages inconsistent
This problem took me a long time, the most prominent exception is Java.lang.VerifyError
In the more distant Hibernate-search.jar package such as: Hibernate-search-3.1.0.ga
There is only one hibernate-search.jar, and the latest package has two Hibernate-search-*.jar
I started with the latest package, so often reported abnormal, and looked up a lot of information, some said that the class has changed
The original class has changed the name, so I use the older version of the package, tested
1. Find the Hibernate-search.jar in the hibernate-search-3.1.0.ga Package
2. Find Lucene-core.jar and Hibernate-commons-annotations.jar in Hibernate-search-3.1.0.ga/lib
3 Add the above package to the project
4. Test the small code, can online Baidu a lot
Hibernate Search and Lucene packet anomaly learning experience