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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:17:39+00:00 2026-05-29T04:17:39+00:00

I am using a read-only Lucene.NET index in a web application and creating a

  • 0

I am using a read-only Lucene.NET index in a web application and creating a single IndexSearcher for all requests. The creation process for this is thread-safe, as are the IndexSearcher methods according to the docs.

My question is around how the IndexSearcher stores the index in memory after opening. Does it read the entire index into memory on creation?

I ask because the application uses (potentially) hundreds of different indices, at approx. 27MB (on disk) each, with a new IndexSearcher for every one. I want to be aware of how this will affect the memory usage of the worker process.

  • 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-29T04:17:40+00:00Added an answer on May 29, 2026 at 4:17 am

    The IndexSearcher will not store the entire index in memory, but it’s underlying reader caches some information about Fields, Terms and Segments. The amount of memory required will vary a lot depending of what’s in your index, etc.

    Using a really high amount of indices like that will affect total memory consumed by the process. It is generally better to have fewer bigger indices.

    If you intend to use several hundred indices, I would recommend to test the scalability of your approach with real production data first.

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

Sidebar

Related Questions

Using a shared repo (core.sharedRepository=group) we ran into some issues with git creating read-only
I'm using c# asp.net, just trying to display data in a read-only format once
I'm using Lucene.Net + SimpleLucene in my asp .net mvc application. There is a
When using memory-mapped files it seems it is either read-only, or write-only. By this
I am using jqGrid ( http://www.trirand.com/blog/ ) to display some read-only data. The resizeable
I cloned a repo using its GitHub read-only URL onto my team's staging server.
Using jquery how do i simply check if it is read only? this is
I connect to a database with read only access using SQL developer. It's a
When using custom classes with read-only properties that are of type List or similar
Using .get() is it possible to read only the first line of a .txt

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.