11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

INPUT<br />

Path Parameters<br />

Key<br />

collection<br />

Description<br />

The collection (or core) name.<br />

Query Parameters<br />

The query parameters can be added to the API request after a '?'.<br />

Key Type Required Default Description<br />

wt string No json Defines the format of the response. The options are json or xml. If not<br />

specified, JSON will be returned by default.<br />

OUTPUT<br />

Output Content<br />

The output will include simply the field name that is defined as the uniqueKey for the index.<br />

EXAMPLES<br />

List the uniqueKey.<br />

curl http://localhost:8983/solr/gettingstarted/schema/uniquekey?wt=json<br />

{<br />

"responseHeader":{<br />

"status":0,<br />

"QTime":2},<br />

"uniqueKey":"id"}<br />

Show Global Similarity<br />

GET / collection/schema/similarity<br />

INPUT<br />

Path Parameters<br />

Key<br />

collection<br />

Description<br />

The collection (or core) name.<br />

Query Parameters<br />

The query parameters can be added to the API request after a '?'.<br />

Key Type Required Default Description<br />

wt string No json Defines the format of the response. The options are json or xml. If not<br />

specified, JSON will be returned by default.<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

92

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!