Thanks Georg very much! Ming -----邮件原件----- 发件人: Georg Sorst [mailto:georg.so...@gmail.com] 发送时间: 2016年5月31日 18:22 收件人: solr-user@lucene.apache.org 主题: Re: help need example code of solrj to get schema of a given core
Querying the schema can be done with the Schema API ( https://cwiki.apache.org/confluence/display/solr/Schema+API), which is fully supported by SolrJ: http://lucene.apache.org/solr/6_0_0/solr-solrj/org/apache/solr/client/solrj/request/schema/package-summary.html . Liu, Ming (Ming) <ming....@esgyn.cn> schrieb am Di., 31. Mai 2016 09:41: > Hello, > > I am very new to Solr, I want to write a simple Java program to get a > core's schema information. Like how many field and details of each > field. I spent a few time searching on internet, but cannot get much > information about this. The solrj wiki seems not updated for long > time. I am using Solr > 5.5.0 > > Hope there are some example code, or please give me some advices, or > simple hint like which java class I can take a look at. > > Thanks in advance! > Ming >