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

  • Home
  • SEARCH
  • 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 8121671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:34:07+00:00 2026-06-06T05:34:07+00:00

I am using Lucene/Solr for my log search tool. Is there a way I

  • 0

I am using Lucene/Solr for my log search tool. Is there a way I can perform a commit operation on my IndexWriter when a particular set of docs is flushed from memory to the disk. My RamBufferSize is 24Mb and MergeFactor is 10.

Or is calling commit in frequent intervals irrespective of the flushes the only way? I wish the autocommit feature was not deprecated.

  • 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-06-06T05:34:09+00:00Added an answer on June 6, 2026 at 5:34 am

    You might consider using the commitWithin feature of Solr. This will hand off the commit responsibilities to Solr.

    CommitWithin is a commit strategy introduced in Solr 1.4, which lets
    the client ask Solr to make sure this gets committed within a
    certain time. This leaves the control of when to do the commit to Solr
    itself, optimizing number of commits to a minimum while still
    fulfilling the update latency requirements. If I say (in an XMLUpdateRequestHandler update), that tells
    Solr to make sure the document gets committed within 10000ms, i.e.
    10s. I can then continue to add other documents within those 10
    seconds (possibly with other commitWithin values), and Solr will
    automatically do a when the oldest in the buffer is
    due.

    I use this quite frequently when adding documents to help keep my as close to NRT (near real time) as I can, without the need for issuing commits at frequent intervals.

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

Sidebar

Related Questions

Normally when using Lucene you set a search query and Lucene gives you some
I am using solr to search through indices written through lucene's index writer. My
I am using SOLR 1.3.0 for performing a distributed search over already existing lucene
I am building a faceted search with Lucene.NET, not using Solr. I want to
when using lucene 3.5.0, After indexing into a RAMDirectory, is there a simple way
I am trying to setup a search engine using Solr (or Lucene) which could
I'm looking into using Lucene and/or Solr to provide search in an RDBMS-powered web
I'm using Lucene.Net to implement a search website (to search PDFs). Once the keyword
I'm using Lucene, and I'm trying to find a way to index and retrieve
Is it possible to search on date ranges using Lucene in Java? How do

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.