jQuery in Action, 2nd edition*
The moose likes Object Relational Mapping and the fly likes Hibernate Full Text Search Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate Full Text Search" Watch "Hibernate Full Text Search" New topic
Author

Hibernate Full Text Search

jose paul
Greenhorn

Joined: Aug 01, 2012
Posts: 3

I was just created a hibernate full text search using hibernate-search-4.1.1.Final.jar and all runtime dependencies.
There is no errors in this application.
But my Lucene query unsing the query DSL doesn't return any results.
I mean doesn't return any of rows in the table.
can any one please help me.


Main Search program
This Java code is used to perform hibernate full text search.

Book.java
Hibernate pojo class for mapping book table.



Author.java
Hibernate pojo class for mapping author table



**hibernate.cfg.xml**


Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

Welcome to the JavaRanch.
Please UseCodeTags. It preserves formatting and makes your code easier to read. I'm going to copy this post to our Hibernate forum in hopes someone there can chime in.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
James Boswell
Bartender

Joined: Nov 09, 2011
Posts: 1012
    
    5

In your XML config, enable the show_sql property:



You can then see what the underlying query being run is in the console output. Try extracting this query out and run it directly against your MySQL database - perhaps using Workbench app?
Julien Marchal
Greenhorn

Joined: Jul 14, 2012
Posts: 8
If you integrated Hibernate Search in an already existing application, make sure you did this
jose paul
Greenhorn

Joined: Aug 01, 2012
Posts: 3
James Boswell wrote:In your XML config, enable the show_sql property:



You can then see what the underlying query being run is in the console output. Try extracting this query out and run it directly against your MySQL database - perhaps using Workbench app?


jose paul
Greenhorn

Joined: Aug 01, 2012
Posts: 3
Julien Marchal wrote:If you integrated Hibernate Search in an already existing application, make sure you did this


No !. when i do with a new project.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate Full Text Search
 
Similar Threads
How to insert using hibernate?
Data is not inserting
EJB3.0 example
Why is my Hibernate Search query not working?
joins in Hibernate Annotation