Fusion Server

Version 4.2
How To
Documentation
    Learn More

      Configurations API

      Table of Contents

      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://fusion-host:8764/api/configurations?verbose=true&pattern=zk-connect

      RESPONSE

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

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

      REQUEST

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

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

      REQUEST

      http://fusion-host:8764/api/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://fusion-host:8764/api/configurations/com.lucidworks.apollo.service.recommend.allowed.types

      RESPONSE

      None. Check the setting again to confirm the changes.

      Loading API specification...