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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:27:06+00:00 2026-05-11T10:27:06+00:00

I’ve used Lucene.net to implement search functionality (for both database content and uploaded documents)

  • 0

I’ve used Lucene.net to implement search functionality (for both database content and uploaded documents) on several small websites with no problem. Now I’ve got a site where I’m indexing 5000+ documents (mainly PDFs) and the querying is becoming a bit slow.

I’m assuming the best way to speed it up would be to implement caching of some kind. Can anyone give my any pointers / examples on where to start? If you’ve got any other suggestions aside from caching (e.g should I be using multiple indexes?) I’d like to hear those too.

Edit:

Dumb user error responsible for the slow querying. I was creating highlights for the entire results set at once, instead of just the ‘page’ I was displaying. Oops.

  • 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. 2026-05-11T10:27:07+00:00Added an answer on May 11, 2026 at 10:27 am

    I’m going to make a big assumption here and assume you’re not hanging onto your index searchers in-between calls to query the index.

    If that’s true, then you should definitely share index searchers for all queries to your index. As the index becomes larger (and it doesn’t really have to get very large for this to become a factor), rebuilding the index searcher will become more and more of an overhead. To make this work correctly, you’ll need to synchronise access to the query parser class (it isn’t thread safe).

    BTW, the Java docs are (I’ve found) just as applicable to the .net version.

    For more info on your problem, see here: http://wiki.apache.org/lucene-java/ImproveSearchingSpeed

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

Sidebar

Ask A Question

Stats

  • Questions 101k
  • Answers 101k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Even though you are pointing to one member of the… May 11, 2026 at 8:03 pm
  • Editorial Team
    Editorial Team added an answer Ok, I figured it out. The script above DOES work.… May 11, 2026 at 8:03 pm
  • Editorial Team
    Editorial Team added an answer I think that is simply not possible, after all, even… May 11, 2026 at 8:03 pm

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.