Lucene

Lucene is a full-text search library completely written in Java. It adds the content to full-text index and then allows you to perform queries on this index, returning results ranked by either the relevance to the query or sorted by an arbitrary field such as a document’s last modified date.

Lucene index is inverted index, by design because it inverts a page-centric data structure (page->words) to a keyword-centric data structure (word->pages).

Related Tags

Tutorials

hibernate-search

Hibernate Search Example with Lucene and Spring Boot

The Hibernate Search module works as a bridge between Hibernate ORM and full-text search engines such as Lucene or Elasticsearch. While performing a search, it enables us to work with JPA entities, and in the background, it transparently works with Lucene to provide a consistent experience. This Hibernate search guide will discuss the core concepts …

Lucene RAMDirectory Example

In this Lucene 6 tutorial, we will learn to use RAMDirectory to run quick examples of POCs because it is not intended to work with huge indexes.

Lucene UnifiedHighlighter Example

Lucene UnifiedHighlighter is the highest-performing highlighter, especially for large documents. Tutorial to highlight search terms in indexed documents/files.

Lucene Search Highlight Example

In Lucene highlighter example, learn to search in documents and highlight search terms in search results using SimpleHTMLFormatter and Fragmenter.

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.