lutece-lucene-indexer

Implement plugin-internal Lucene search indexing in Lutece 8.

3|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/lutece-platform/lutece-dev-plugin-claude --skill lutece-lucene-indexer-lutece-platform
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lutece-lucene-indexer
Source: https://github.com/lutece-platform/lutece-dev-plugin-claude/tree/main/skills/lutece-lucene-indexer
Command: npx skills add https://github.com/lutece-platform/lutece-dev-plugin-claude --skill lutece-lucene-indexer-lutece-platform

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive pattern and implementation guide for integrating custom Lucene-based search indexing directly within Lutece 8 plugins, enabling efficient and tailored search functionalities.

Core Features & Use Cases

  • Plugin-Internal Indexing: Allows each Lutece plugin to manage its own Lucene index independently.
  • Customizable Search: Supports custom fields, sorting, and filtering for specific plugin data.
  • Architecture Guidance: Details the necessary components: Indexer Interface, Lucene Implementation, Index Factory, Daemon, and CDI Event Listener.
  • Use Case: A Lutece plugin managing customer records needs a fast, internal search. This Skill guides the developer to create a Lucene index for customer names, IDs, and creation dates, accessible via a dedicated back-office search interface.

Quick Start

Follow the steps outlined in the SKILL.md to implement the IEntitySearchIndexer interface and its Lucene implementation for your plugin's data.

Frequently Asked Questions about lutece-lucene-indexer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement Lucene search indexing in a Lutece 8 plugin?

You implement Lucene search indexing in Lutece 8 by using the IEntitySearchIndexer interface, a Lucene implementation, an index factory, a daemon for background processing, and CDI observers for event-driven updates.

What is the architecture for plugin-internal Lucene indexing in Lutece?

The architecture for plugin-internal Lucene indexing involves an indexer interface, Lucene implementation, index factory for lifecycle management, a daemon for batch processing, and CDI event listeners for real-time index updates.

Can I use CDI events to trigger Lucene index updates in Lutece 8?

Yes, you can use CDI event observers to trigger event-driven updates to your Lucene index in Lutece 8, ensuring that your plugin's search index stays synchronized with data changes automatically.

How do I manage the Lucene index lifecycle and rebuilds in a Java plugin?

You manage the Lucene index lifecycle and rebuilds in Java by utilizing an index factory pattern alongside a daemon for background batch processing, allowing controlled index initialization and full rebuilds.

Does Lutece 8 support custom field indexing and filtering for Lucene search?

Yes, Lutece 8 supports custom field indexing, sorting, and filtering for Lucene search, allowing each plugin to independently manage tailored search functionalities for specific plugin data like customer records.