You can call the Schema API from SolrJ - see Shawn Heisey’s example code here: <http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201307.mbox/%3c51daecd2.6030...@elyograg.org%3e>
Steve On May 27, 2014, at 5:50 PM, T. Kuro Kurosaka <k...@healthline.com> wrote: > On 05/27/2014 02:29 PM, Jack Krupansky wrote: >> You might consider an update request processor as an alternative. It runs on >> the server and might be simpler. You can even use the stateless script >> update processor to avoid having to write any custom Java code. >> >> -- Jack Krupansky > > That's an interesting approach. I'd consider it. > > > On 05/27/2014 02:04 PM, Sujit Pal wrote: >> 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 > The question was essentially how to get IndexSchema for Solrj client, > without needing to parse the XML file, hopefully. > > > On 05/27/2014 02:16 PM, Ahmet Arslan wrote: >> Hi, >> >> https://wiki.apache.org/solr/LukeRequestHandler make sure numTerms=0 for >> performance > > I'm afraid this won't work because when the index is empty, Luke won't return > any fields. > And for the fields that are written, this method returns more information > than I'd like to know. > I just want to know if a field is valid or not. > > > Kuro >