Salines
Salines

Reputation: 5767

Solr: do we need commit=true query when we have autoCommit in SolrConfig?

I'm new to Solr and unsure do we need commit=true in push query when we have autoCommit in SolrConfig???

Here is QA about autoCommit that partial help me to understand autoCommit:

Choosing a solr/lucene commit strategy

But now need clarification, for this part.

Upvotes: 0

Views: 408

Answers (1)

Persimmonium
Persimmonium

Reputation: 15791

you need it if you want to make sure your updates get picked up sooner than the autocommit in solrconfig.xml will. If you don't have the urgency, just dont.

Also notice that you can use commitWithin=X that is not as aggressive as commit=true

Upvotes: 3

Related Questions