13.05.2014 Views

apache-solr-ref-guide-4.6.pdf

Create successful ePaper yourself

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

wt string No json Defines the format of the response. The options are json or xml. If not specified, JSON will be returned by<br />

default.<br />

Output<br />

Output Content<br />

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

rule, but will minimally include the dynamic field name, the type, if it is indexed and if it is stored. See the section Dynamic Fields for more<br />

information about each parameter.<br />

Examples<br />

Input<br />

Get the details of the "*_s" rule.<br />

curl http://localhost:8983/<strong>solr</strong>/collection1/schema/dynamicfields/*_s?wt=json<br />

Output<br />

{<br />

}<br />

"dynamicfield": {<br />

"indexed": true,<br />

"name": "*_s",<br />

"stored": true,<br />

"type": "string"<br />

},<br />

"responseHeader": {<br />

"QTime": 1,<br />

"status": 0<br />

}<br />

List Field Types<br />

GET / collection/schema/fieldtypes<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 specified, JSON will be returned by<br />

default.<br />

Output<br />

Output Content<br />

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

minimally include the field type name and the class. If query or index analyzers, tokenizers, or filters are defined, those will also be shown with<br />

other defined parameters. See the section Solr Field Types for more information about how to configure various types of fields.<br />

Apache Solr Reference Guide 4.6<br />

50

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

Saved successfully!

Ooh no, something went wrong!