Hibernate Search and Lucene packet anomaly learning experience

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.