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 8397783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:52:48+00:00 2026-06-09T20:52:48+00:00

I use Lucene search engine to index some address data. I use MMapDirectory to

  • 0

I use Lucene search engine to index some address data. I use MMapDirectory to store the index. Now I want to use my old cache while creating a new one. Do I need to copy my old cache into the other directory? Or maybe is there any good way to do this? I wonder if create parameter in IndexWriter contructor is done for that reason, but don’t actually know how to use it correctly and if it provides “real-time searching”.

  • 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-09T20:52:49+00:00Added an answer on June 9, 2026 at 8:52 pm

    If your question is: Can I update my existing index with an IndexWriter while IndexSearchers search the current index, prior to the modifications, the answer is yes.

    IndexSearchers opened prior to the IndexWriter.Commit() will see the index as it was prior to the modifications, only IndexSearchers opened after the Commit will see changes.

    The create parameter on the IndexWriter simply tells it to create the Directory if it does not exist, it will also overwrite an existing index at the specified location.

    For realtime searching, this is done by using the IndexWriter.GetIndexReader() method to create/refresh your searchers, while keeping the IndexWriter opened for as long as possible.

    As a side note, MMapDirectory has always had bad performances compared to SimpleFSDirectory with Lucene.net, and I think its not even implemented in the 2.9.4.1 Version. I wouldnt recommend using it.

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

Sidebar

Related Questions

I am currently attempting to use Lucene to search data populated in an index.
I've developed an app that uses Lucene engine to search. Now I want to
I use Lucene.Net to index some documents. I want to show the user a
I use NumericField write a Integer in lucene Index: doc.add( new NumericField(id,Integer.MAX_VALUE,Field.Store.YES,true) .setIntValue(123) );
I am using lucene as Search engine. When we use the standardAnalyser,the stop words
i have a kohana-based website, and i want to use zend-lucene search. as i
I want to use lucene.net to index records in our database. The records are
I'm writing a Seam-based application, making use of JPA/Hibernate and Hibernate Search (Lucene). I
I want to use Lucene in my project. When I simply copy the .jar
I want to use these two classes from lucene - import org.apache.lucene.analysis.snowball.*; import org.apache.lucene.analysis.PorterStemmer;

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.