Individual skill

orchardcore-custom-indexing-elasticsearch

Skill for building a custom Elasticsearch index for arbitrary records in Orchard Core 4.0, following the CrestApps AI Memory pattern of CrestApps.OrchardCore 3.0. Covers a custom index profile type with AddElasticsearchIndexingSource, IndexProfileHandlerBase mappings with ElasticsearchIndexMetadata and dense vectors, an embedding deployment chosen from the embedding slot and stored in DataSourceIndexProfileMetadata, IDocumentIndexHandler mapping, a custom indexing service with the keyed IDocumentIndexManager and BuildDocumentIndexContext, deferred lifecycle indexing with ShellScope, re-sync through SynchronizedAsync, and a master index site setting read through IOptionsMonitor. Use it for custom Elasticsearch indexing of non-content data, vector search over custom records, or questions about CrestApps.OrchardCore.AI.Memory.Elasticsearch, OrchardCore.Indexing, OrchardCore.Elasticsearch, IIndexProfileStore, IndexProfileEmbeddingMetadataAccessor, and IAIClientFactory.CreateEmbeddingGeneratorAsync.

src/CrestApps.AgentSkills/crestapps-orchardcore/orchardcore-custom-indexing-elasticsearch/SKILL.md

Read pinned source

Source commit d86d04f234b1b2bd8145368a2544490f9d557596

What was checked

Matches the observed repository HEAD
Yes
Scanner rules are current
Yes
Repository scan complete
No
Skill scan complete
No
Observed behavior
Instructions only
Last checked
Nov 6, 2026

These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.

Install this skill

Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.

An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.

Repository context

Repository stars (not skill ratings)
13
Repository last updated
Oct 21, 2026
License
MIT

Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.

Files and excerpt

File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.

Browse files
Read excerpt

# Orchard Core Custom Indexing for Elasticsearch

## Index arbitrary records into Elasticsearch

You are an Orchard Core expert. Generate code that indexes custom records (not content items) into an Elasticsearch index profile, optionally with embeddings for vector search. Model it on `CrestApps.OrchardCore.AI.Memory` (records, settings, indexing service) and `CrestApps.OrchardCore.AI.Memory.Elasticsearch` (provider registration and mappings).

### When to use it

- Records you store yourself: CRM or ERP rows, generated summaries, user-scoped facts, imported business data.
- Full-text, filtered, or vector search over them through Orchard Core's index profiles.
- For Orchard content items use the built-in content index instead (see `orchardcore-elasticsearch`). For retrieval-augmented chat over an index you already have, an AI data source is usually enough (see `orchardcore-ai-data-sources`).

### Architecture