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.

the runtime jars.<br />

For example, to use a blob named test, you would configure solrconfig.xml like this:<br />

<br />

<br />

If there are parameters available in the custom handler, you can define them in the same way as any other<br />

request handler definition.<br />

Config API<br />

The Config API enables manipulating various aspects of your solrconfig.xml using REST-like API calls. This<br />

feature is enabled by default and works similarly in both <strong>Solr</strong>Cloud and standalone mode. Many commonly edited<br />

properties (such as cache sizes and commit settings) and request handler definitions can be changed with this<br />

API.<br />

When using this API, solrconfig.xml is is not changed. Instead, all edited configuration is stored in a file<br />

called configoverlay.json. The values in configoverlay.json override the values in solrconfig.xml.<br />

API Entry Points<br />

Commands<br />

Commands for Common Properties<br />

Commands for Custom Handlers and Local Components<br />

Commands for User-Defined Properties<br />

How to Map solrconfig.xml Properties to JSON<br />

Examples<br />

Creating and Updating Common Properties<br />

Creating and Updating Request Handlers<br />

Creating and Updating User-Defined Properties<br />

How It Works<br />

Empty Command<br />

Listening to config Changes<br />

API Entry Points<br />

/config: retrieve or modify the config. GET to retrieve and POST for executing commands<br />

/config/overlay: retrieve the details in the configoverlay.json alone<br />

/config/params : allows creating parameter sets that can override or take the place of parameters<br />

defined in solrconfig.xml. See the Request Parameters API section for more details.<br />

Commands<br />

This API uses specific commands to tell <strong>Solr</strong> what property or type of property to add to configoverlay.json.<br />

The commands are passed as part of the data sent with the request.<br />

The config commands are categorized into 3 different sections which manipulate various data structures in solr<br />

config.xml. Each of these is described below.<br />

Common Properties<br />

Components<br />

User-defined properties<br />

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

482

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

Saved successfully!

Ooh no, something went wrong!