Hi, I'd like to start a discussion on SIP-29: Schema-declared nested documents https://cwiki.apache.org/confluence/spaces/SOLR/pages/467437348/SIP-29+Schema-declared+nested+documents
Problem: Solr decides per request whether a nested JSON object is a child document, an atomic update or something to flatten. The schema knows nothing about nesting, and child fields share one namespace with the root document, so names can collide. Proposal, in short: - The schema declares which names hold nested documents: <nested name="reviews"> - Fields of a nested document get their own namespace, e.g. reviews.title - One rule for JSON objects, so Solr document syntax and the custom-JSON mapper (/update/json/docs) become one format - Opt-in per schema. Existing schemas behave as today. Target 11.0 Most important question: Why should we NOT move in this direction? See the SIPs lists of "Open Questions" for some other concrete discussion topics. Umbrella JIRA: https://issues.apache.org/jira/browse/SOLR-18725 Companion proposal: SIP-28, Modernize the JSON update API (own thread). Please discuss in this thread. Very technical discussions related to an existing JIRA can go in that JIRA. 🤖 I directed Claude Fable to craft both SIPs, umbrella JIRAs and this email :) 🤖 Jan --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
