Have you looked at IndexSchema? That would offer you methods to query index metadata using SolrJ.
http://lucene.apache.org/solr/4_7_2/solr-core/org/apache/solr/schema/IndexSchema.html -sujit On Tue, May 27, 2014 at 1:56 PM, T. Kuro Kurosaka <k...@healthline.com>wrote: > I'd like to write Solr client code that writes text to language specific > field, say, myfield_es, for Spanish, > if the field myfield_es is defined in schema.xml, and otherwise to a > fall-back field myfield. To do this, > I need to obtain a list of defined fields (and dynamic fields) from the > server. But I cannot find > a suitable Solrj API. Is there any? I'm using Solr 4.6.1. I could write > code to use Schema REST API > (https://wiki.apache.org/solr/SchemaRESTAPI) but I would much prefer to > use > the existing code if one exists. > > -- > T. "Kuro" Kurosaka • Senior Software Engineer > > >