- Searching basics
- How to locate objects with advanced criteria
- Using full-text indexes with JPA
- Using Apache Lucene and Hibernate Search to index your data
WROX.COM CODE DOWNLOADS FOR THIS CHAPTER
- Customer-Support-v17 Project
- Search-Engine Project
NEW MAVEN DEPENDENCY FOR THIS CHAPTER
In addition to the Maven dependencies introduced in previous chapters, you also need the following Maven dependency only for the section that covers Apache Lucene, Hibernate Search, and the Search-Engine project.
<dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-search-orm</artifactId> <version>4.5.0.Final</version> <scope>compile</scope> </dependency>
AN INTRODUCTION TO SEARCHING
Searching through data takes many different forms. You might use a tool like grep, find, Agent Ransack, Spotlight, or Windows Search to locate a file on your hard drive. You could look for matching filenames or matching file contents. Perhaps most familiar to you, searching might involve opening your web browser and using a popular search tool such as Google to find content on the Internet. Or maybe you have a Gmail account and you use the search bar at the top of a Gmail page to find e-mails and create filters ...