Collection Features API

The Collection Features API lets you manage these features for a collection:

Property Description

dynamicSchema

Modify 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

Create 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.

recommendations

Get configuration information about recommendations. Parameters (params) are:

idField – The document field that contains the document ID.

itemsForUser – Whether items-for-user recommendations are enabled (true) or disabled (false).

itemsForQuery – Whether items-for-query recommendations are enabled (true) or disabled (false).

itemsForItem – Whether items-for-query recommendations are enabled (true) or disabled (false).

queriesForQuery – Whether queries-for-query recommendations are enabled (true) or disabled (false).

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