Data commit functionality
Solr offers three methods to determine when newly-indexed documents are made visible in searches. The methods are manual commits, auto commit settings, and the per-updatecommitWithin parameter.
Fusion relies on Solr’s commit mechanisms, but adds a Fusion-managed commitWithin policy per collection. Fusion’s typical commit configuration includes:
-
The
autoCommitsetting (Solr hard commit) is inherited from the collection’ssolrconfig.xmland is typically set to15seconds withopenSearcher=false. This persists data to disk at that interval without opening a new searcher, which helps maintain search performance. -
The
autoSoftCommitsetting (Solr soft commit) is turned off by default, with Fusion relying on thecommitWithinsetting to make data visible to searches. -
Solr’s
commitWithinparameter configured at the collection level with a default of10000milliseconds, ensures data is committed and available for searching within 10 seconds. The default for signals collections is1000milliseconds. Fusion usescommitWithinto avoid relying on specific Solr-side configurations. Thecom.lucidworks.apollo.solr.commitWithinglobal property defines the defaultcommitWithinfor all documents added through Fusion. When you create a new collection in Fusion, its per-collectioncommitWithinis initialized from this global default.
Examples
In order to see this object within the Fusion UI, it must be associated with an app. To do this, create the object using the
/apps endpoint.For more information on collection features and feature management, see Collection Features API
collection-id in the JSON and save as a file or send directly in the string.
Recommendations JSON: