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
autoCommit
setting (Solr hard commit) is inherited from the collection’ssolrconfig.xml
and is typically set to15
seconds withopenSearcher=false
. This persists data to disk at that interval without opening a new searcher, which helps maintain search performance. -
The
autoSoftCommit
setting (Solr soft commit) is turned off by default, with Fusion relying on thecommitWithin
setting to make data visible to searches. -
Solr’s
commitWithin
parameter configured at the collection level with a default of10000
milliseconds, ensures data is committed and available for searching within 10 seconds. The default for signals collections is1000
milliseconds. Fusion usescommitWithin
to avoid relying on specific Solr-side configurations. Thecom.lucidworks.apollo.solr.commitWithin
global property defines the defaultcommitWithin
for all documents added through Fusion. When you create a new collection in Fusion, its per-collectioncommitWithin
is 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: