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.

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 x<br />

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

showDefaults boolean No false If true, all default field properties from each field type will be<br />

included in the response (e.g. tokenized for solr.TextField).<br />

If false, only explicitly specified field properties will be<br />

included.<br />

OUTPUT<br />

Output Content<br />

The output will include each field type and any defined configuration for the type. The defined configuration can<br />

vary for each type, but will minimally include the field type name and the class. If query or index analyzers,<br />

tokenizers, or filters are defined, those will also be shown with other defined parameters. See the section <strong>Solr</strong><br />

Field Types for more information about how to configure various types of fields.<br />

EXAMPLES<br />

Get a list of all field types.<br />

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

The sample output below has been truncated to show a few different field types from different parts of the list.<br />

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

87

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

Saved successfully!

Ooh no, something went wrong!