solr-schema

solr-schema is a skill for Claude Code, Codex from griddynamics/rosetta. It costs 25 tokens per session (2,174 once invoked), scanned A, original, Apache-2.0.

A guide for designing and auditing Apache Solr schemas, which define how a search collection stores, analyzes, indexes, and returns fields.

In plain words
What is it for?
Use it to review or design managed schemas, field types, analyzers, document values, synonyms, and related Solr configuration.
Why use it?
It helps prevent field settings, analyzers, synonyms, and configuration choices from causing poor search relevance or broken faceting.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/griddynamics/rosetta/solr-schema
Any agent
npx skills add griddynamics/rosetta --skill solr-schema
Clone the repo
git clone --depth 1 https://github.com/griddynamics/rosetta

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for solr-schema

README.md
[![agentmods](https://agentmods.dev/badge/skills/griddynamics/rosetta/solr-schema.svg)](https://agentmods.dev/skills/griddynamics/rosetta/solr-schema)
Your own site
<a href="https://agentmods.dev/skills/griddynamics/rosetta/solr-schema"><img src="https://agentmods.dev/badge/skills/griddynamics/rosetta/solr-schema.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,174 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.02174
Opus 5 $0.00013 $0.01087
Sonnet 5 $0.00005 $0.00435
Haiku 4.5 $0.00003 $0.00217

Measured 2d ago against content hash f983a88dd990, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

solr-schema scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

instructions/r3/core/skills/solr-schema/SKILL.md · 116 lines

How it starts

The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a senior Apache Solr engineer who audits existing schemas/solrconfig and designs new ones from a domain description. You focus on field-type, analyzer, docValues, synonym, and solrconfig decisions that quietly break relevance, faceting, or indexing in production. You target Solr 9.x and flag Solr 10 differences only when relevant.

<when_to_use_skill>

Audit/design a managed-schema/schema.xml/solrconfig.xml, or field types, analyzer chains, docValues/stored/indexed choices, and synonyms for a new collection. Triggers: fieldType, tokenizer/filter/analyzer, docValues, synonyms, schemaless, the Schema REST API, "review/audit my schema", "design field types for…". Query construction/debugging (eDisMax, faceting, kNN, explain output) → solr-query skill. Custom plugin code (SearchComponent, QueryParser, URP, DocTransformer, ValueSource) → solr-extending skill. Tagging/graph semantic-search architecture → solr-semantic-search skill. This skill stops at the schema and solrconfig layer.

</when_to_use_skill>

<core_concepts>

This skill operates in two modes:

  • Mode A — Audit. The user pastes a managed-schema/schema.xml and/or solrconfig.xml, or gives a running-Solr URL. Walk the audit checklist in severity order, cite the specific field/element, explain the impact, and give corrected config. If only a URL is available (no files), pivot to live inspection — READ SKILL FILE references/07-live-inspection.md.
  • Mode B — Design. The user describes a domain. Produce field-type / analyzer / docValues / synonym recommendations plus a concrete managed-schema fragment, justifying each indexed/stored/docValues choice against the field's actual use (search vs. facet vs. sort vs. display vs. function).

Three orthogonal axes must be decided per field, never globally:

  1. Analysis — exact-match (string, one opaque token) or full-text (text_*, a token stream from an analyzer chain)? Picking string for searchable prose, or text_general for an id/facet value, is the single most common schema error.
  2. Storage triadindexed (search/filter), stored (returns original value), and docValues (fast facet/sort/function/group) are independent. Defaulting all three to true wastes disk and memory.
  3. Index vs query symmetry — index- and query-time analyzer chains can legally differ; small divergences (a filter on one side only, multi-word synonyms at query time) cause silent zero-hit failures with no error.

This SKILL.md is a router. For any non-trivial question, read the relevant references/ file before answering — references hold the examples, decision tables, and gotchas and are not duplicated here.

</core_concepts>

When the user asks about… Read
Field type selection; string vs text_general vs text_en; tokenizers + filter chains READ SKILL FILE references/01-field-types.md
Index vs query analyzer asymmetry; detecting silent misses READ SKILL FILE references/02-analyzer-asymmetry.md
indexed/stored/docValues triad; useDocValuesAsStored; facet/sort/function needs READ SKILL FILE references/03-docvalues-stored-indexed.md
Synonyms: SynonymGraphFilter, index vs query placement, synonyms.txt vs managed READ SKILL FILE references/04-synonyms.md
solrconfig.xml review: caches, autoCommit/softCommit, schemaFactory, luceneMatchVersion, URP chains READ SKILL FILE references/05-solrconfig-review.md
Anti-pattern catalog + Solr 9.x version-compat READ SKILL FILE references/06-anti-patterns.md
Live-instance inspection: /schema, /analysis, /admin/luke (no XML files) READ SKILL FILE references/07-live-inspection.md
Schemaless mode pitfalls + Schema REST API READ SKILL FILE references/08-schemaless-managed-api.md

<audit_checklist>

Mode A spine — walk in order; earlier items cause the loudest production failures.

Read the full file on GitHub · 116 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 116 lines · 25 tokens per session scan A f983a88dd990

Subscribe to this mod's changes

solr-schema is a skill published in the GitHub repository griddynamics/rosetta (342 stars, last pushed yesterday), licensed Apache-2.0. It adds 25 tokens to every session and 2,174 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.