[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Hibernate and Lucene integration

2006-01-19 Thread NigelWhite
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 should be able to 
hook your own listening classes in to create/update/delete events on persisted 
objects for other reasons like security auditing.

Fecked if I can make it work though!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3918313#3918313

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3918313


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Hibernate and Lucene integration

2006-01-19 Thread NigelWhite
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' encoding='utf-8'?
  | !DOCTYPE hibernate-configuration PUBLIC
  |-//Hibernate/Hibernate Configuration DTD 3.0//EN
  |http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd;
  | hibernate-configuration
  |   session-factory
  | event type=post-commit-update
  | listener class=org.hibernate.lucene.event.LuceneEventListener/
  | /event
  | event type=post-commit-insert
  | listener class=org.hibernate.lucene.event.LuceneEventListener/
  | /event
  | event type=post-commit-delete
  | listener class=org.hibernate.lucene.event.LuceneEventListener/
  | /event
  |   /session-factory
  | /hibernate-configuration

Why not just document it properly?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3918380#3918380

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3918380


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Hibernate and Lucene integration

2006-01-18 Thread tvan
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 : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3918184#3918184

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3918184


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user