This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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
 
Can you hear that? That's my theme music. I don't know where it comes from. Check under this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic