I am trying to create a index file with hibernate search and I cannot even get it to create an index file.
I am running
JBoss 4.2.3.GA (which I think has hibernate 3.2.4.sp1) So I got Hibernate-Search 3.0.1.GA and used annotations.
I am running jboss4.2.3.GA and I am having problems getting hibernate search to work.
Looking at the compatibility matrix I think with jboss4.2.3.GA I need to use hibernate-search version 3.0.1. (I may upgrade later but I would like to get a small example working first).
I downloaded version 3.0.1 and put the jar in the jboss lib directory. Started jboss and I did not see anything out of the ordinary.
I have the following in my persistence.xml
and I have a couple entity beans:
So a
doc is just a simple entity that contains one or more text items. I want to be able to search for text and return the doc that the text belongs to. However when I persist my data I do not see any hibernate search output in the jboss logs nor do I see anything in my index (i.e index file is never even created).
Am I missing something, or is all I really need to do for jboss is deploy the hibernate-search.jar?
I thought that if you use annotations you did not have to turn anything on (like listeners).
Any ideas