Using the Lucene API is not the problem. Looks fairly simple to get going.
The problem is that it says that you can set up annotations to have Hibernate
automagically maintain a Lucene index without writing a single line of Java!
In fact, as well as hooking automatic Lucene updates in, you
OK, as usual, the docs are completely lacking.
Here is what worked.
In META_INF/persistence.xml in the .par file:
| property name=hibernate.ejb.cfgfile value=hibernate_config.xml/
|
hibernate_config.xml goes in the root level in the .par file. It contains:
| ?xml version='1.0'
Just read the documentation of Lucene at http://lucene.apache.org/java/docs/.
You may find down the Lucene index update. As my memory is good, you need to
look up the index field name in the lucene indexed file and you can update it.
Tvan
View the original post :