Manisha, The most general recommendation around commits is to not explicitly commit after every update. There are settings that will let Solr automatically commit after some threshold is met, and by delegating commits to that mechanism you can generally ingest faster.
See this blog post that goes into detail about how to set that up for your situation: https://lucidworks.com/post/understanding-transaction-logs-softcommit-and-commit-in-sorlcloud/ Kind regards, Scott On Wed, Feb 3, 2021 at 5:44 PM Manisha Rahatadkar < manisha.rahatad...@anjusoftware.com> wrote: > Hi All > > Looking for some help on document indexing frequency. I am using apache > solr 7.7 and SolrNet library to commit documents to Solr. Summary for this > function is: > // Summary: > // Commits posted documents, blocking until index changes are flushed > to disk and > // blocking until a new searcher is opened and registered as the main > query searcher, > // making the changes visible. > > I understand that, the document gets reindexed after every commit. I have > noticed that as the number of documents are increasing, the reindexing > takes time. and sometimes I am getting solr connection time out error. > I have following questions: > > 1. Is there any frequency suggested by Solr for document insert/update > and reindex? Is there any standard recommendation? > 2. If I remove the copy fields from managed-schema.xml, do I need to > delete the existing indexed data from solr core and then insert data and > reindex it again? > > Thanks in advance. > > Regards > Manisha > > > > Confidentiality Notice > ==================== > This email message, including any attachments, is for the sole use of the > intended recipient and may contain confidential and privileged information. > Any unauthorized view, use, disclosure or distribution is prohibited. If > you are not the intended recipient, please contact the sender by reply > email and destroy all copies of the original message. Anju Software, Inc. > 4500 S. Lakeshore Drive, Suite 620, Tempe, AZ USA 85282. > -- Scott Stults | Founder & Solutions Architect | OpenSource Connections, LLC | 434.409.2780 http://www.opensourceconnections.com