11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

INPUT<br />

Path Parameters<br />

Key<br />

Description<br />

collection<br />

name<br />

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

The name of the dynamic field rule (if limiting request to a single dynamic field rule).<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, xml<br />

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

showDefaults boolean No false If true, all default field properties from each dynamic field's<br />

field type will be included in the response (e.g. tokenized for<br />

solr.TextField). If false, only explicitly specified field<br />

properties will be included.<br />

OUTPUT<br />

Output Content<br />

The output will include each dynamic field rule and the defined configuration for each rule. The defined<br />

configuration can vary for each rule, but will minimally include the dynamic field name, the type, if it is indexed<br />

and if it is stored. See the section Dynamic Fields for more information about each parameter.<br />

EXAMPLES<br />

Get a list of all dynamic field declarations:<br />

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

The sample output below has been truncated.<br />

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

85

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

Saved successfully!

Ooh no, something went wrong!