Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate Full Text Search

 
jose paul
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 9300
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you integrated Hibernate Search in an already existing application, make sure you did this
 
jose paul
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic