Thank you, it works like a charm now :-)
This is what I've done to make Hiberate Search to start indexing Seam stuff:
* Make sure you got the right versions of the jar-files in
\jboss-4.0.5.GA\server\default\lib I had old hibernate files there, and needed to change them for new files. The compatibility matrix (
http://www.hibernate.org/6.html#A3 ) helped me.
* If you for some reason got the hiberate-all.jar file there - remove it
* Add the following files to your EAR:
hibernate-search.jar,
hibernate-commons-annotations.jar and
lucene-core-2.1.0.jar and make sure to create references to them in
application.xml
* Make changes to persistence.xml, add
<property name="hibernate.search.default.directory_provider" value="org.hibernate.search.store.FSDirectoryProvider"/>
<property name="hibernate.search.default.indexBase" value="C:\luceneIndex"/>
The folder wasn't created automatically for me, but after adding it myself, it worked nicelly.
* Add @Indexed and other annotations to your entities. Note! If you read the docs (
http://www.hibernate.org/hib_docs/searc ... figuration ) it says
@Indexed(name="Status"), which is wrong. The correct syntax follows in the doc (
@Indexed(index="Status"))
This is my experience and perhaps not the right way to, but it finally worked, perhaps this could be of help to someone else.
//Frippuz