On 5/14/2020 1:13 PM, Mark H. Wood wrote:
On Fri, Apr 17, 2020 at 10:11:40AM -0600, Shawn Heisey wrote:
On 4/16/2020 10:07 AM, Mark H. Wood wrote:
I need to ask Solr 4.10 for the name of the unique key field of a
schema.  So far, no matter what I've done, Solr is returning a 404.

The Luke Request Handler, normally assigned to the /admin/luke path, will give you the info you're after. On a stock Solr install, the following URL would work:

/solr/admin/luke?show=schema

I have tried this on solr 4.10.4 and can confirm that the response does have the information.

Since you are working with a different context path, you'll need to adjust your URL to match.

Note that as of Solr 5.0, running with a different context path is not supported. The admin UI and the more advanced parts of the startup scripts are hardcoded for the /solr context.

Thanks,
Shawn

Reply via email to