Install any skill in seconds. Free to start, no credit card required.
Get Started Free →griddynamics/solr-schema
To design and audit Solr schemas: field types, analyzers, docValues, solrconfig.
Passed 19 of 22 test cases with the skill, and 18 of 22 without it.
2 fixed17 passed either way2 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
We recently updated our Solr setup to support multi-word synonyms and soft commits, but we are seeing unexpected zero-hit query results and high CPU load during updates. Here are the relevant configuration snippets: ```xml <fieldType name="text_syn" class="solr.TextField"> <analyzer type="query"> <tokenizer class="solr.StandardTokenizerFactory"/> <filter class="solr.SynonymGraphFilterFactory" synonyms="synonyms.txt" expand="true"/> </analyzer> </fieldType> <autoSoftCommit> <maxTime>500</maxTime> </autoSoftCommit> ``` Please review these XML definitions and give us an audit report listing vulnerabilities in order of severity, explaining why they cause production issues, and supplying corrected XML configurations to resolve them.
| Checked | Without skill | With skill |
|---|---|---|
| recommends placing SynonymGraphFilterFactory in the index analyzer rather than the query analyzer | Missed | Passed |
| explains that sub-second autoSoftCommit causes frequent cache invalidation | Passed | Passed |
| provides updated XML with SynonymGraphFilterFactory configured in the index analyzer | Missed | Passed |
The instructions your model reads when the skill loads.
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:
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.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:
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.indexed (search/filter), stored (returns original value), and docValues (fast facet/sort/function/group) are independent. Defaulting all three to true wastes disk and memory.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 |
test cases passed, vs 18 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.