Hey Guys
I'm new to this forum (and fairly new to hibernate search) so please fogive me if my question is triviel or has been answered before. Here goes:
I have a hibernate-persisted class, which I'm trying to make searchable using hibernate search. When loading the classes from the database, the search index is appearantly being updated heavily. When starting with an empty index folder (I'm using FSDirectoryProvider until I resolve this problem), after application startup (webapp under tomcat) the folder contains 2 files:
After I load the page, which contains a list with the searchable objects on it, the content of the folder is:
_17.cfs
_18.cfs
_19.cfs
_1a.cfs
_1b.cfs
_1c.cfs
_1d.cfs
_1e.cfs
_1f.cfs
_a.cfs
_l.cfs
_w.cfs
segments.gen
segments_2x
Notice, no search in the index has been performed yet. The list of objects is retreived using HibernateDaoSupport/HibernateTemplate. After loading the page a second time, the folder contains this:
_17.cfs
_17_1.del
_1i.cfs
_1t.cfs
_24.cfs
_2f.cfs
_2q.cfs
_2r.cfs
_2s.cfs
_2t.cfs
_2u.cfs
_2v.cfs
_2w.cfs
_a.cfs
_a_1.del
_l.cfs
_l_1.del
_w.cfs
_w_1.del
segments.gen
segments_5w
In my search, the list of all the searchable objects is loaded again, which makes me unsure if the changes are due to the search, or just due to reloading the list:
_32.cfs
_3d.cfs
_3o.cfs
_3z.cfs
_4a.cfs
_4b.cfs
_4c.cfs
_4d.cfs
_4e.cfs
segments.gen
segments_8x
Furthermore, loading the list page takes significantly longer than it did with my previous search solution Compass, which also uses Lucene as backend (the reason I'm switching away from Compass is that it requires Terracotta DSO/Custom and we are switching to Terracotta Express/Standard, and after I resolve this problem I intend to make or modify a DirectoryProvider to use the Terracotta Express as storage). I'm not 100% sure, but to me it seems that my objects are indexed each time they are loaded via hibernate.
Can anyone point me in the direction to look for a solution? I will gladly provide any relevant info if the above is not enough to go by, just let me know what info is needed. My current hibernate dependencies:
hibernate: 3.2.5.ga (can't easily be upgraded because of other dependencies)
hibernate-search: 3.0.0.GA
hibernate-commons-annotations 3.3.0.ga
Any help will be appreciated. Thanks in advance,
Jarnis Bertelsen