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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:06:30+00:00 2026-06-11T08:06:30+00:00

We are using Lucene 2.9.2 (upgrade to 3.x is planned) and it is a

  • 0

We are using Lucene 2.9.2 (upgrade to 3.x is planned) and it is a known fact that the search queries become slower over time. Usually we perform a full reindex. I have read the question https://stackoverflow.com/a/668453/356815 and its answers and to answer it right now: we do NOT use optimize() because performance was not acceptable anymore when running it.

Fragmentation?

I wonder the following: What are the best practices to measure the fragmentation of an existing index? Can Luke help me in that?

It would be very interesting to hear your thoughts about this analysis topic.

A bit more infos about our index:

  • We have indexed 400’000 documents
  • We heavily use properties per document
  • For each request we create a new searcher object (as we want changes to appear immediately in the search results)
  • Query performance is between 30ms (repeated same searches) and 10 seconds (complex)
  • The index consists of 44 files (15 .del files, 24 cfs files) and has a size of 1GB
  • 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-11T08:06:32+00:00Added an answer on June 11, 2026 at 8:06 am

    Older version of Lucene did not effectively deal with large numbers of segments. This is why some people recommended to optimize (merge all segments together) in order to improve search performance.

    This is less true with recent versions of Lucene. Indeed optimize has been renamed to sound less magical (you now need to call forceMerge(1)) and always merging segments is even considered harmful (look at this nice article from Lucene developer Simon Willnauer).

    For each request we create a new searcher object

    Opening a reader is very costly. You should rather use SearcherManager which will help you reopen (incremental open) your index only when necessary.

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

Sidebar

Related Questions

I'm building an ASP.NET MVC site where I'm using Lucene.Net for search queries. I
I am using Lucene to index my database and then perform a phrase search
Recently I have started using Lucene. However, after few days I've spotted that queries
I am using Lucene/Solr for my log search tool. Is there a way I
I have some code using Lucene that leaves the default conjunction operator as OR,
I'm using Lucene.Net to implement a search website (to search PDFs). Once the keyword
Normally when using Lucene you set a search query and Lucene gives you some
Is it possible to search on date ranges using Lucene in Java? How do
I have a single XML file that I want to index using Lucene.NET. The
I'm using Lucene to search an index and it works fine. My only issue

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.