Cluster operations are only supported when connecting through Zookeeper.
Background
Solr has three different approaches on how you can control visibility of new documents in search:- You can
commit
manually - You can rely on Solr’s
autoCommit
setting - You can specify
commitWithin
when adding documents
commitWithin
to avoid relying on specific Solr side configurations. Fusion controls commitWithin
on a per-collection basis so you can have multiple collections with different commit frequencies (for example, product documents can be committed more often than signals).
Global setting for commitWithin
:
com.lucidworks.apollo.solr.commitWithin
is a global configuration property that defines default commitWithin
for all documents added through Fusion. Every time you create a new collection in Fusion, per-collection commitWithin
is initialized as the global default.
Per-collection setting: You can either specify this property when creating collection or update it with PUT
later.
Search Cluster Definition Properties
Property | Description |
---|---|
id Required | The ID of the search cluster. This is only required when creating a new cluster definition with a POST request. |
connectString Required | The string to use to connect to the existing Solr cluster or standalone instance. If the existing Solr is running in SolrCloud mode, use the connect string for the ZooKeeper ensemble. If the existing Solr is running as a standalone instance, use the full URL for the Solr instance. |
cloud Required | Defines if the “cluster” being defined is a SolrCloud cluster (true) or a standalone Solr instance (false). |
bufferFlushInterval Optional | Defines how often to flush the buffer when writing to this cluster. If not defined, the system will default to 1000 milliseconds. |
bufferSize Optional | Defines the size of the buffer. If not defined, the system will default to 100 items in the buffer. |
concurrency Optional | Defines the maximum number of concurrent /parallel requests to Solr servers when Fusion index pipeline Solr Indexer stage has property bufferDocsForSolr set to true. |
zkClientTimeout Optional | The maximum amount of time to wait when communicating with the ZooKeeper ensemble for a SolrCloud instance. |
zkConnectTimeout Optional | The maximum amount of time to wait when trying to connect to the ZooKeeper ensemble for a SolrCloud instance. |