kotman12 commented on code in PR #4149: URL: https://github.com/apache/solr/pull/4149#discussion_r3018229614
########## solr/solr-ref-guide/modules/indexing-guide/pages/luke-request-handler.adoc: ########## @@ -118,3 +130,43 @@ Alternatively, to work through the Lucene native id: http://localhost:8983/solr/techproducts/admin/luke?fl=manu&docId=0 From SolrJ, you can access /luke using the {solr-javadocs}/solrj/org/apache/solr/client/solrj/request/LukeRequest.html[`LukeRequest`] object. + +== Distributed Mode (SolrCloud) + +When running in SolrCloud, the Luke handler can aggregate results from all shards in a collection by setting `distrib=true`. +By default, `distrib` is `false` and the handler inspects only the local shard's index. + +To get a collection-wide view: + +[source,text] +http://localhost:8983/solr/techproducts/admin/luke?distrib=true + +To get detailed field statistics across all shards for a specific field: + +[source,text] +http://localhost:8983/solr/techproducts/admin/luke?distrib=true&fl=manu Review Comment: @dsmiley here is a really [rough attempt](https://github.com/kotman12/solr/commit/b86054dd3db26e3eb933983f6615df8d4fbfb2c9) with using the request path to determine distrib. I am not really sure what you had in mind so I figured we could hash out the details over code. One of the flies in the ointment is the CloudSolrClient which hits the cores directly so if you are using it client-side the solr server now will incorrectly assume you are `distrib=false`. The way I worked around this for now is changing CloudSolrClient to set distrib explicitly when it's hitting a collection. Ofc there may be other approaches to consider here. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
