Does solr has API to read solr schema.xml?
问题 Is there any solr api to read the solr schema.xml? The reason I need it is that solr facet is not backward compatible. If the index doesn't define field A, but the program tries to generate facet for field A, all the facets will fail.Therefore I need to check in the runtime what index fields do we have in the index and generate the facets dynamically. 回答1: You can get the schema with http://localhost:8983/solr/admin/file/?contentType=text/xml;charset=utf-8&file=schema.xml It's the raw xml, so