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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:41:47+00:00 2026-05-20T22:41:47+00:00

There is an existing ehcache and lucene comparison sometime back and the answer is

  • 0

There is an existing ehcache and lucene comparison sometime back and the answer is they can’t be compared directly. However in EhCache 2.4, it now has search feature. We are thinking to migrate our currently Lucene solution into EhCache Search. One of the benefit I see is when EhCache is integrated with Terracotta, it can be become distributed cache and index easily. Any other concerns I should take account before the migration? Could anyone share their experience about EhCache Search as cache and index solution?

Thanks.

Update: After a quick test, it seems like EhCache Search does not allow cache to be persisted into disk. I got the below error if I try to set diskPersistent=”true” on my ehcache.xml. Which mean the indexed cache need to be rebuilt everytime. I see this is one of the disadvantage.

Search attributes not supported by
this store type:
net.sf.ehcache.store.compound.impl.DiskPersistentStore

  • 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-20T22:41:48+00:00Added an answer on May 20, 2026 at 10:41 pm

    Here are list of limitation:

    1. Can’t persist searchable cache into disk.
    2. Custom AttributeExtractor only support certain types, which means you can’t use search attribute with parameterize T like net.sf.ehcache.search.Attribute.eq(T), net.sf.ehcache.search.Attribute.between(T, T) etc but only net.sf.ehcache.search.Attribute.ilike(String) which may cause slower performance and less search constraint. I have to edit the EhCache source to make it support my custom type as I wish to use Attribute.eq(T).

    Thanks.

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

Sidebar

Related Questions

Are there existing template extract libraries in either python or php? Perl has Template::Extract
Is there any existing jQuery functionality that can test if characters entered into a
Is there an existing application or library in Java which will allow me to
Is there an existing solution to create a regular expressions dynamically out of a
Are there any existing solutions for remote execution of commands on a windows server
Is there any existing code in Apache HttpClient or in the servlet API to
Is there an existing PL/SQL method which takes a string and returns the same
There's an existing function that ends in the following, where d is a dictionary:
In some existing code there is a test to see if the user is
I'm wondering if there is an existing class or library code in Cocoa Touch

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.