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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:23:41+00:00 2026-06-03T12:23:41+00:00

I have an app that I’m attempting to integrate hibernate search into. I’m using

  • 0

I have an app that I’m attempting to integrate hibernate search into. I’m using Hibernate Search 3.4.2. I have a domain class that looks like the following:

@Indexed
public Group {

    @Fieldindex (index = Index.TOKENIZED, store = Store.YES)
    private String groupName;
}

In my test cases, I create a few Groups and save them to the database. Once stored in the database, I create the index and then search for given text strings. This seems to work.

The problem I’m having is that any new Groups created after the index has been created are not indexed. From what I’ve read, I thought that once the index is created, any new items persisted would be automatically indexed with the new values, but this doesn’t seem to be the behavior I’m getting. Is there something I’ve missed in the way of configuration? Or do I have to do something manually to tell Hibernate Search that I’ve added a new object to be indexed?

Needless to say, I’m a bit confused…

[EDIT] I’m using JPA, so my hibernate search confguration is contained in my persistence.xml as follows:

     
<property name="hibernate.search.default.directory_provider" value="filesystem"/> 
<property name="hibernate.search.default.indexBase" value="D:\var2\lucene\indexes"/>

I can see that the index files are created, and I can use Luke to view the contents, they just don’t ever seem to get updated when I persist a new object.

  • 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-03T12:23:43+00:00Added an answer on June 3, 2026 at 12:23 pm

    As stated in the documentation “By default, every time an object is inserted, updated or deleted through Hibernate, Hibernate Search updates the according Lucene index”.

    What I would do is to check my persistence.xml and see if I have not accidentally set hibernate.search.indexing_strategy = manual

    If that’s not the case, maybe you could try to force it and see if that works?

    hibernate.search.indexing_strategy = event

    Which framework are you using? Maybe check out the last post of this question.

    // Jakob

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

Sidebar

Related Questions

I have a app that uses a classic email like layout like the one
I have an app that has a ListBox of ListBoxes. I would like to
I have a app that I'm deploying to a development server using Capistrano. I'd
I have an App that will send authenticated emails using System.Net.Mail and System.Net.NetworkCredential my
I have an app that's a simple clone of reddit. Using Devise you can
I have an app that plays radio stations, and I now want to integrate
have an app that finds your GPS location successfully, but I need to be
Have an app that has listings - think classified ads - and each listing
I have an app that switches between full screen and normal screen for a
I have an app that uses the ActionBar with tabs in combination with Fragments.

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.