lutece-solr-indexer

Automate Solr indexer building and deployment for Lutece 8 plugins.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/vanhemsj/lutecepowers --skill lutece-solr-indexer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lutece-solr-indexer
Source: https://github.com/vanhemsj/lutecepowers/tree/main/skills/lutece-solr-indexer
Command: npx skills add https://github.com/vanhemsj/lutecepowers --skill lutece-solr-indexer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a reusable pattern to implement a Solr indexer for Lutece 8 plugins, enabling CDI-discovered indexers to transform entities into SolrItem documents and drive indexing through a standard framework.

Core Features & Use Cases

  • CDI auto-discovery of any SolrIndexer implementation and dynamic field support via SolrItem.
  • Full reindexing and incremental updates through SolrEventRessourceListener, SolrIndexerService, and the SolrIndexerDaemon.
  • Clear guidance for integrating with the plugin-solr framework, building SolrItems, and managing resource types.

Quick Start

Implement a SolrIndexer for your entity, wire it into the Solr plugin framework, and trigger a full reindex to verify indexing.

Frequently Asked Questions about lutece-solr-indexer

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

FAQPage Schema
How do I build a Solr indexer for a Lutece 8 plugin?

Implementing a Solr indexer for Lutece 8 involves creating a CDI-discovered SolrIndexer that transforms entities into SolrItem documents. You register it via the plugin and integrate it with SolrIndexerService for standard framework-driven indexing.

How does incremental Solr indexing work in Lutece?

Incremental Solr indexing in Lutece is driven by integrating a SolrIndexer with the SolrEventRessourceListener. This listener captures resource events to trigger automatic document updates without requiring a full reindex.

What is a SolrItem in Lutece and when do I need it?

A SolrItem in Lutece is a document object used to construct indexed content with dynamic field support. You need it when transforming entities into Solr documents to ensure proper field mapping during full or incremental updates.

Can I use CDI auto-discovery for custom Solr indexers in Lutece?

Yes, CDI auto-discovery supports custom Solr indexers in Lutece. The framework automatically detects any SolrIndexer implementation, allowing dynamic field support via SolrItem and seamless integration with SolrIndexerService.

How do I trigger a full reindex in Lutece Solr?

A full reindex in Lutece Solr is triggered using the SolrIndexerDaemon alongside SolrIndexerService. This combination processes all entities through your SolrIndexer to rebuild the complete search index from scratch.

Does Lutece Solr indexing support batch processing and dynamic fields?

Yes, Lutece Solr indexing supports batch processing and dynamic fields. The framework uses SolrItem construction for dynamic field mapping and SolrIndexerService to manage batch processing during full and incremental updates.