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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:45:20+00:00 2026-05-26T12:45:20+00:00

I am using lucene with a tomcat application. I have lots and lots of

  • 0

I am using lucene with a tomcat application. I have lots and lots of big and small documents that need indexing. The big documents are infrequently added and the small documents are frequently added. My current plan for flushing the indices is to do it in a singleton thread that runs in the tomcat application. I want to do this because the frequent small document adds should not force a flush every time they add the document. Thus, the index will always lag the actual documents being indexed.

The questions, are, if the adder function is not doing the flush, and for some reason lucene throws an IOException when the flush is called in the thread, how will the application know which documents are effectively unindexed, and what can be done about it. Trying to readd the indexed data again doesn’t seem to be the right solution because the exception will likely happen again.

Also, is it bad to run lucene in the tomcat cluster? Should I be running lucene in a separate java process and if so, how would that work?

And is it safer to use lucene against the file system or mysql? Obviously, these are newbie questions.

Andy

  • 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-26T12:45:20+00:00Added an answer on May 26, 2026 at 12:45 pm

    Lucene is really meant for client application development. If you plan to use it in a cluster of servers, then using Solr is the best approach. You can also cluster Solr instances and use a simple RESTless api to index new documents. Using Lucene in tomcat might work but it won’t be maintainable in the future. With Solr you have an admin ui and you can easily flush everything.

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

Sidebar

Related Questions

I have some code using Lucene that leaves the default conjunction operator as OR,
I am using Lucene.Net for indexing and searching documents, and I am using the
Im using Lucene Highlighter to highlight the matches that I have found in a
Recently I have started using Lucene. However, after few days I've spotted that queries
I'm using Lucene.Net in an ASP.NET application on a shared host. Got this stack
Am building a Book search API using Lucene. I need to index Book Name,Author,
when using lucene 3.5.0, After indexing into a RAMDirectory, is there a simple way
Am using Lucene API in my web portal which is going to have 1000s
I am using Lucene Highlighter 2.4.1 for my application. I use the highlighter to
I am using Lucene.Net 2.9.2 and I reckon I will need to write a

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.