First off, I am using JPA powered by Hibernate rather than Hibernate itself.  
The following represents what I am doing:


  | @In
  | private EntityManager em;
  | .
  | .
  | .
  | fullTextEntityManager = Search.createFullTextEntityManager(em);
  | .
  | .
  | .
  | fullTextQuery = fullTextEntityManager.createFullTextQuery(luceneQuery, 
Widget.class);
  | 

And here is the persistence.xml:


  | <properties>
  |          <property name="hibernate.dialect" 
value="org.hibernate.dialect.Oracle9Dialect"/>
  |          <property name="hibernate.cache.provider_class" 
value="org.hibernate.cache.HashtableCacheProvider"/>
  |          <property name="hibernate.transaction.manager_lookup_class" 
value="org.hibernate.transaction.WeblogicTransactionManagerLookup"/>
  |          <property name="hibernate.transaction.factory_class" 
value="org.hibernate.transaction.CMTTransactionFactory"/>
  |          <property name="hibernate.search.default.directory_provider" 
value="org.hibernate.search.store.FSDirectoryProvider"/>
  |          <property name="hibernate.search.default.indexBase" 
value="C:/persistence/search/indexes"/>
  |          <property name="hibernate.search.analyzer" 
value="org.apache.lucene.analysis.standard.StandardAnalyzer"/>
  | </properties>
  | 

Let me know what else you need.

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121420#4121420

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121420
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to