• Post Reply Bookmark Topic Watch Topic
  • New Topic

Should I learn hibernate search ?  RSS feed

 
sid smith
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just finished learning the basics of Hibnernate such as mapping, simple search, annotations and a small project. I came across a book called "hibernate search". I was wondering if it would be useful to learn hibernate search to become more advanced in hibernate. Can someone please give me some suggestions on what to do next ? Thanks.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are your objectives? Note that Hibernate Search isn't nearly as widely used as Hibernate.
 
sid smith
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:What are your objectives? Note that Hibernate Search isn't nearly as widely used as Hibernate.


My objective was to learn more hibernate. I learned that one can use the criteria api to search, but one has to master it to avoid slow searching. So, I was thinking if I should learn hibernate search.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hibernate Search does something rather different than Hibernate ORM, and is not nearly as widely used. Unless you have specific reasons to learn it, I would advise to spend time learning something else instead.
 
Hauke Ingmar Schmidt
Rancher
Posts: 436
2
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hibernate search and HQL/criteria API are for different use cases. You use Hibernate search when you need to index and search the content of objects, e.g. a full text search. HQL and the criteria API are for issuing queries against the database, queries on the fields.

Some databases offer support for indexing large clobs and would make a dedicated search engine superfluous. But in general database queries should not do and often can't do full text searches.

Hibernate search is not a faster replacement for query building in general. It has a special focus and learning it just because you want to get more proficient does not look very useful to me.

If your queries are too slowly executed but shouldn't (because they are "normal" queries) then it certainly would pay more to improve the knowledge there.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!