Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7666593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:52:22+00:00 2026-05-31T14:52:22+00:00

Currently, Im using solr as a search server. My issue is that I do

  • 0

Currently, Im using solr as a search server. My issue is that I do alot of real time indexing on the data set (although the document size is very small, only 100 chars). I was wondering how I could speed this up by disabling the need to commit, autocommit, etc. Just add it to the index, im not too worried about the dataset being too volatile. I use a node js library to index into solr. Here is a snippet:

 var doc = {
                id: id.id,
                text_t: id.words
                };

                var callback = function(err, response) {
                    if (err) throw err;
                    solr.commit();

                };
            solr.add(doc, callback);

Removing, solr.commit() does not index the doc (even though I thought commit() just persisted it to disk)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T14:52:23+00:00Added an answer on May 31, 2026 at 2:52 pm

    The upcoming version of Solr will have a feature called soft commit which might interest you. A soft commit is similar to a commit but doesn’t make a fsync to ensure that data has been written to disk. This means that you might lose data (in case of a failure of the power supply for example, but not if Solr crashes while the server keeps running) but a soft commit is likely to be much faster than a regular (hard) commit since the OS can leverage the buffer cache.

    With a current version of Solr, a good trade-off would be to use the commitWithin feature of Solr UpdateHandler. For example, by using 10000 as a value for the commitWithin parameter, you would ensure that any document is commited at most 10 seconds after it has been added to the index and would keep the commit rate under 1 commit every 10 seconds. Lower values of commitWithin will provide better freshness of the data while higher values would stress the disks less.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using RABL to output a Sunspot/SOLR result set and the search results
I am currently using Windows Server 2008 Standard and have several Hyper V machines.
I am currently using Solr to do some searching across a large amount of
I have a rails app that uses Sunspot and Solr for search functionality. I'm
We are using SOLR as our search engine. When I search for a product,
I have tried search using Apache SOLR. I have done with the PHP client
Im currently using the JQuery UI extension for its search autocomplete. However, I need
I am building a faceted search with Lucene.NET, not using Solr. I want to
Currently using cocos2d. I have a plist data name myplist.plist. Inside the plist are
Im currently using base64_encode for some $_GET params that i don't want regular user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.