• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Should I learn hibernate search ?

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 43081
77
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 436
2
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic