lutece-solr-indexer

Implement Solr search modules for Lutece 8 entities with CDI auto-discovery.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide and patterns for implementing a Solr search module within Lutece 8 applications, enabling efficient full-text search capabilities for your entities.

Core Features & Use Cases

  • Solr Integration: Implement Solr search for Lutece 8 entities.
  • CDI Auto-discovery: Automatically register your Solr indexers using CDI.
  • Incremental Updates: Handle entity changes via CDI events for near real-time indexing.
  • Use Case: You have a Lutece 8 plugin managing custom entities (e.g., products, articles). This Skill helps you add a powerful search functionality to these entities using Solr, allowing users to quickly find relevant information.

Quick Start

Follow the steps outlined in this Skill to create a Solr indexer for your Lutece 8 entity.

Frequently Asked Questions about lutece-solr-indexer

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

FAQPage Schema
How do I integrate Solr search into Lutece 8 entities?

Integrate Solr search into Lutece 8 by implementing the SolrIndexer interface and using CDI auto-discovery to automatically register your custom entity indexers for full-text search capabilities.

How does incremental Solr indexing work in Lutece 8?

Incremental Solr indexing in Lutece 8 works by observing CDI events and ResourceEvent notifications, allowing your search index to capture entity changes for near real-time updates.

Can I use CDI events to handle Solr data indexing updates?

Yes, you can use CDI events to handle Solr data indexing updates. The Lutece 8 pattern observes ResourceEvent instances to trigger near real-time incremental index refreshes automatically.

What is the best way to batch index Solr items in a Lutece 8 plugin?

The best way to batch index Solr items in a Lutece 8 plugin is by using the SolrIndexerService. This service supports creating SolrItem objects with dynamic fields for bulk data indexing.

Does Lutece 8 support dynamic fields in SolrItem creation for custom entities?

Yes, Lutece 8 supports dynamic fields in SolrItem creation. When building a Solr indexer for custom entities like products or articles, you can define dynamic fields to structure your searchable data.

Why do I need CDI auto-discovery for a Solr indexer in Lutece 8?

You need CDI auto-discovery for a Solr indexer in Lutece 8 to automatically register your SolrIndexer implementations. This eliminates manual configuration and seamlessly enables full-text search modules for your entities.