Configurations API

The Configurations API allows setting global properties for Fusion. Some settings are not set by any configuration file but are reported as settings from the operating system. Those settings cannot be changed with this API.

Examples

Show the configuration items that include the pattern 'zk-connect', with verbose enabled:

REQUEST

curl -u user:pass http://localhost:8764/api/apollo/configurations?verbose=true&pattern=zk-connect

RESPONSE

{
  "com.lucidworks.apollo-admin.config/zk-connect" : [ {
    "value" : "localhost:9983",
    "location" : "system properties"
  } ]
}

Get the configuration items from the Connectors JVM that include the term 'connect':

REQUEST

curl -u user:pass http://localhost:8984/connectors/api/v1/configurations?pattern=connect

Get the configuration items from the Fusion JVM that start with 'com.lucidworks':

REQUEST

http://localhost:8764/api/apollo/configurations?prefix=com.lucidworks

Change the default allowed recommendation types to include 'itemsForItem":

REQUEST

curl -u user:pass -X PUT -H 'Content-type: application/json' -d '{"itemsForQuery", "termsForDocument", "itemsforItem"}' http://localhost:8764/api/apollo/configurations/com.lucidworks.apollo.service.recommend.allowed.types

RESPONSE

None. Check the setting again to confirm the changes.