lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pranaya Behera <>
Subject Getting dynamic fields using LukeRequest.
Date Tue, 09 Aug 2016 12:52:15 GMT
      I have the following script to retrieve all the fields in the 
collection. I am using SolrCloud 6.1.0.
LukeRequest lukeRequest = new LukeRequest();
LukeResponse lukeResponse = lukeRequest.process(cloudSolrClient);
Map<String, LukeResponse.FieldInfo> fieldInfoMap = 
for (Map.Entry<String, LukeResponse.FieldInfo> entry : 
fieldInfoMap.entrySet()) {
   entry.getKey(); // Here fieldInfoMap is size of 0 for sometime and 
sometime it is getting incomplete data.

Setting showSchema to true doesn't yield any result. Only making it 
false yields result that too incomplete data. As I can see in the doc 
that it has more than what it is saying it has.

LukeRequest hits 
/solr/product/admin/luke?numTerms=0&wt=javabin&version=2 HTTP/1.1 .

How it should be configured for solrcloud ?
I have already mentioned

<requestHandler name="/admin/luke" class="org.apache.solr.handler.admin.LukeRequestHandler"

in the solrconfig.xml. It doesn't matter whether it is present in the 
solrconfig or not as I am requesting it from solrj.

View raw message