Collection Features API

The Collection Features API allows the following settings to be specified for a collection:

Property Description

dynamicSchema

Modifies the Solr schema to be "managed", which means it’s possible for Fusion to use Solr’s schema API to manage the schema. It also sets Solr to operate in 'schemaless' mode, which means fields do not need to be pre-defined in the schema for them to be added to Solr’s index. Note that this applies to the Solr included with Fusion, and does not modify an existing Solr cluster, if you have one already.

searchLogs

Creates a parallel collection for the storage of log data which is used to generate search query reports.

signals

Creates a parallel collection for the storage of signals data (such as user clicks, or ratings). Signals will need to be indexed and aggregated in order to be used. See the section on Signals for more information.

partitionByTime

Partition the corresponding Solr collection by time; see Time Series Indexing.

Examples

List the status of the features for the "demo" collection:

REQUEST

curl -u user:pass http://localhost:8764/api/apollo/collections/demo/features

RESPONSE

 [ {
  "name" : "dynamicSchema",
  "collectionId" : "demo",
  "params" : { },
  "enabled" : false
}, {
  "name" : "searchLogs",
  "collectionId" : "demo",
  "params" : { },
  "enabled" : false
}, {
  "name" : "signals",
  "collectionId" : "demo",
  "params" : { },
  "enabled" : false
} ]

Enable signals for a collection named 'demo':

REQUEST

curl -u user:pass -X PUT -H Content-type:application/json -d '{"enabled":true}' http://localhost:8764/api/apollo/collections/demo/features/signals