際際滷

際際滷Share a Scribd company logo
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
Agenda
 Cloning workshop application.
 Running & installing db

 Exploring the application.
Cloning workshop application

 Using your git client clone this repos:
 http://olc.orange-labs.fr/gitblit/git/devday2013/hibernatesearch-workshop.git
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.
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.
How it works?
 Adding the dependency for hibernate search in
your pom.xml
How it works?
 Adding search configuration properties to your
entitymanagerfactory declaration.
How it works?
 Annotate your bean properties.
How it works?
Build your query
Hibernate Compatibility Matrix

 https://community.jboss.org/wiki/HibernateC
ompatibilityMatrix
Reference

 http://docs.jboss.org/hibernate/search/4.4/re
ference/en-US/html/

More Related Content

Orange developers day - Hibernate Search Workshop

Editor's Notes

  • #10: Id & field.
  • #11: Id & field.