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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T22:22:02+00:00 2026-06-02T22:22:02+00:00

I am building a web application with a backend restful web service. One of

  • 0

I am building a web application with a backend restful web service.

One of my tables is pretty much standalone, i.e rows only referenced from one other table in a manner where I can happily live without joins and only fetch by primary key when I need to. However this table holds a lot of rows and the searches performed against it all scream “Lucene”. MySQL is unable to handle these queries with a reasonable response time.

So I would like to use Lucene for searching this table. In the past I’ve used Solr extensively so I’m familiar with the concepts and terminology. I was thinking that given my circumstances described above, instead of SQL-to-Lucene index synchronization, I can’t see a reason why I shouldn’t simply use Lucene as the canonical storage for this particular entity. Basically I would like to have a “Lucene DAO” implementation that replaces the current Hibernate DAO implementation for this particular table.

So my questions are:

  1. Is there any reason why I should avoid that and stick to SQL-to-index sync?
  2. If a “Lucene DAO” is a viable approach, are there any libraries out there that provide the foundation for something like that? I tried to search but couldn’t find any.
  3. I have come across Hibernate Search It does only half of what I’m looking for but I can try and use it for searching only. Does anyone have any experience using Hibernate Search?

Edit: I’ve now come across Compass which at a quick glance seems to be what I’m looking for. Does anyone have any experience with it?


Edit #2: Compass has been discontinued and replaced with ElasticSearch which isn’t quite the same (service rather than a component). Hibernate Search didn’t prove to be what I’m looking for either. The bottom line is that this is a valid approach, but for the time being one has to implement such a DAO themselves.

  • 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-02T22:22:03+00:00Added an answer on June 2, 2026 at 10:22 pm

    I would ditch SQL for this use case and use Lucene straight, no chaser.

    Your queries with Lucene will be a lot richer: n-grams instead of LIKE.

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

Sidebar

Related Questions

I am building a Web Application using asp.net (C#). I come from windows forms
I am building a web application that needs to print directly from browser, however,
I'm building from scratch a web application that is not trivial (have some algorithms
I am building a web application with a back and front end, the backend
I'm building a web service with a RESTful interface (lets call it MY_API ).
I'm building a web service with a RESTful interface (lets call it MY_API ).
I'm building a web application that uses Oracle Database 10g as the database backend.
I'm building a .NET web service that will be consumed by a vendor's application,
I’m building a J2EE web application which uses Oracle SSO with an OID back-end
Im building a web application which is a process management app. Several different employee

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.