• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hibernate-Search not creating index

 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic