Lucene

hibernate-search

Hibernate Search with Lucene and Spring Boot 4 Example

Add full-text search to a Spring Boot 4 application with Hibernate Search 8.4 and Lucene: map the entity, register the analyzer as a Spring bean, index existing rows on ApplicationReadyEvent, and expose a paged, sorted REST search endpoint tested with MockMvc.

Hibernate Search: Full-Text Search with Lucene Example

Hibernate Search adds full-text search to Hibernate entities. Map fields with @FullTextField, @KeywordField and @GenericField, let the index follow every commit, rebuild it with the MassIndexer, and search with match, phrase, bool, range, sorting, paging and highlighting on Hibernate Search 8.4 and Lucene.

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.