File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Hibernate-Search not creating index Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate-Search not creating index" Watch "Hibernate-Search not creating index" New topic
Author

Hibernate-Search not creating index

Bobby Anderson
Ranch Hand

Joined: Oct 28, 2008
Posts: 114
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate-Search not creating index
 
Similar Threads
'singleton objects' to coordinate read/write
Getting an error while returning a blob using Hibernate
hibernate search problem w/ entity inheritance
Sets in hibernate?
Hibernate Search - can you store info in lucene index file without persisting to the DB?