You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "adityamparikh (via GitHub)" <gi...@apache.org> on 2026/09/14 03:04:13 UTC
[PR] feat(indexing): index many markdown documents in one call [solr-mcp]
adityamparikh opened a new pull request, #203:
URL: https://github.com/apache/solr-mcp/pull/203
### Summary
`index-markdown-documents` treated the whole input as one document (#144), so a client with sixty documents needed sixty tool calls, each a full model round trip. That is what made the Markdown path slow: indexing 61 documents took over two minutes end to end while Solr's share was under a second.
A new document now starts at every YAML front-matter block, so a whole dataset is one call. Text before the first block is its own document; a lone `---` followed by prose is a thematic break and does not split; input with a single block, or none, parses exactly as before, including the content-derived id when no `id` is given.
### What changed
- `MarkdownDocumentCreator.splitDocuments` finds front-matter blocks (a `---` line, one or more `key: value` or list-item lines, a closing `---`) and parses each chunk with the existing single-document logic.
- Tool and parameter descriptions say one or more documents; README row.
- `MarkdownDocumentCreatorTest` covers three blocks in one string, a horizontal rule inside a body, per-document ids (equal to the id the same document gets on its own), and a preface before the first block. `MarkdownIndexingTest` is unchanged and still passes.
Part of a set with `feat/json-documents-array` and `fix/xml-record-fields`; independent, any merge order.
### Verification
- `./gradlew build` on Java 25: green.
- `./gradlew nativeTest -Pnative` on GraalVM CE 25.0.2: 260 successful, 0 failed.
🤖 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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] feat(indexing): index many markdown documents in one call [solr-mcp]
Posted by "adityamparikh (via GitHub)" <gi...@apache.org>.
adityamparikh closed pull request #203: feat(indexing): index many markdown documents in one call
URL: https://github.com/apache/solr-mcp/pull/203
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] feat(indexing): index many markdown documents in one call [solr-mcp]
Posted by "adityamparikh (via GitHub)" <gi...@apache.org>.
adityamparikh commented on PR #203:
URL: https://github.com/apache/solr-mcp/pull/203#issuecomment-5701111773
Superseded by #207, which bundles the `List<String> documents` tool parameter alongside SnakeYAML front matter parsing and multi-record splitting.
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org