adityamparikh opened a new pull request, #201: URL: https://github.com/apache/solr-mcp/pull/201
### Summary `shows.json` is the dataset the tutorial and the hackathon card index. The same 61 shows now ship in every format the indexing tools accept, so the walkthrough can be followed in whichever one a reader has: | File | Shape | |---|---| | `src/test/resources/shows.csv` | One row per show. Multi-valued fields (`genres`, `creators`, `cast`, `tags`) are **repeated column headers**; the CSV creator adds one value per non-empty cell under the same field name, so the documents match JSON field for field. | | `src/test/resources/shows.xml` | `<shows>` with one `<show>` element per record and repeated child elements for lists. | | `src/test/resources/shows-markdown/<id>.md` | One file per show: every field in YAML front matter, the description as the body under a `# Title` heading. One Markdown document is one Solr document, hence 61 files. | `ShowsSampleDataTest` pins that CSV and Markdown parse to exactly the JSON documents (Markdown adds `content` and `headings`), and documents the XML mapping honestly: the XML creator flattens by element path, so fields arrive as `show_title`, `show_platform` and there is no plain `id` (`show_id` instead; Solr assigns its own `id`). That is existing behaviour, not something this PR changes; it is worth a separate look because it makes XML the one format where the tutorial's later prompts need different field names. The native test binary needs an explicit `-H:IncludeResources` for the three new flavours; Spring AOT only registers `*.json` resources, which is why `shows.json` already worked natively. ### Verification - `./gradlew build` on Java 25: green, `ShowsSampleDataTest` 4/4. - `./gradlew nativeTest -Pnative` on GraalVM CE 25.0.2: green including the four new tests (the first run failed on the missing resources, which is what the build change fixes). - Each format was also pushed through a running server's indexing tool into Solr: 61 of 61 for CSV and XML, one document per Markdown file. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01CiUHyyXLTo9ATdgg8eRFZJ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
