Hibernate search allows for fuzzy searching capabilities when integrating Apache Lucene with Hibernate. The workshop will demonstrate cloning a sample application, running the MySQL database initialization script, and testing fuzzy searching of employee records by calling a specific URL. Hibernate Search works by adding dependencies, configuring search properties for the entity manager factory, annotating entity classes, building queries, and is compatible with different Hibernate versions as shown in the compatibility matrix.
1 of 12
Download to read offline
More Related Content
Orange developers day - Hibernate Search Workshop
1. Hibernate search
hibernate integration with apache
Lucene for fuzzy search
Gamal Shaaban Nadin El Alfy
International Centers
Orange Labs P&S Cairo
Mobile Applications & Software Development
3. Cloning workshop application
Using your git client clone this repos:
http://olc.orange-labs.fr/gitblit/git/devday2013/hibernatesearch-workshop.git
4. Running & installing db
Create a db named hsearch on your mysql.
Run the script named init.sql under
db.migration package in your resources folder
in the application.
5. Testing the fuzzy Search
After running the application on your tomcat,
call this URL:
http://localhost:8084/tut/employees.html?name=ahmed
Now check your db records in employee
table.
6. How it works?
Adding the dependency for hibernate search in
your pom.xml
7. How it works?
Adding search configuration properties to your
entitymanagerfactory declaration.