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.

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

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

xtField). If false, only explicitly specified field properties will<br />

be included.<br />

OUTPUT<br />

Output Content<br />

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

for each field, but will minimally include the field name, the type, if it is indexed and if it is stored. If multiVa<br />

lued is defined as either true or false (most likely true), that will also be shown. See the section Defining Fields f<br />

or more information about each parameter.<br />

EXAMPLES<br />

Get a list of all fields.<br />

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

The sample output below has been truncated to only show a few fields.<br />

{<br />

...<br />

}<br />

"fields": [<br />

{<br />

"indexed": true,<br />

"name": "_version_",<br />

"stored": true,<br />

"type": "long"<br />

},<br />

{<br />

"indexed": true,<br />

"name": "author",<br />

"stored": true,<br />

"type": "text_general"<br />

},<br />

{<br />

"indexed": true,<br />

"multiValued": true,<br />

"name": "cat",<br />

"stored": true,<br />

"type": "string"<br />

},<br />

],<br />

"responseHeader": {<br />

"QTime": 1,<br />

"status": 0<br />

}<br />

List Dynamic Fields<br />

GET / collection/schema/dynamicfields<br />

GET / collection/schema/dynamicfields/<br />

name<br />

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

84

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

Saved successfully!

Ooh no, something went wrong!