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

Hibernate Search in Action: Where does it fit in?

 
Ranch Hand
Posts: 451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've been digging a little into data mining and the intelligent web with the help of two other Manning books. It seems clear that Hibernate Search fits into the data mining space, but where?

Does it provide an ORM data mining capability?

Thanks,

Don
 
author
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don,

No, in the strictest sense it does not. It provides the ability to do extensible full text search against a database. That's what it was designed to do and that what it does well.

Hope this helps.

John G
 
Don Stadler
Ranch Hand
Posts: 451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by John Griffin:
Don,

No, in the strictest sense it does not. It provides the ability to do extensible full text search against a database. That's what it was designed to do and that what it does well.

Hope this helps.

John G



Yes, that does help. Thank you. I subscribed to the Manning promotion last week and took advantage of the 50% discount on e-books. I almost bought your book then but decided to go for Algorithms of the Intelligent Web, mostly because I wasn't sure where Hibernate Search fit into the search/data mining space. So this book is on my short list now.

What is the scope of the search that Hibernate Search does? Obviously into the various kinds of char and varchar, but does the search cover things like Blobs, large text types, the XML types provided by some DB's, etc? Does it use HQL or another mechanism to construct the searches?
[ December 11, 2008: Message edited by: Don Stadler ]
 
author
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A full-text search is all about searching strings but you can often find a string representation for a datab structure that makes sense for example date in absolute format.

Hibernate Search does support amost java types form the JDK and lets you write custom bridges to convert a structure into a string representation indxed into Lucene. chatper 4 covers Bridges.

A few examples:
- reads a byte[] representing the PDF, extract the text and index it
- read a MS Word file from a URL, extract the text and index it
- take a Map and store it in a way that makes search easier for you
 
Don Stadler
Ranch Hand
Posts: 451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Emmanuel Bernard:
A full-text search is all about searching strings but you can often find a string representation for a datab structure that makes sense for example date in absolute format.

Hibernate Search does support amost java types form the JDK and lets you write custom bridges to convert a structure into a string representation indxed into Lucene. chatper 4 covers Bridges.

A few examples:
- reads a byte[] representing the PDF, extract the text and index it
- read a MS Word file from a URL, extract the text and index it
- take a Map and store it in a way that makes search easier for you



Thank you Emmanuel, that sounds downright useful. So one could use a date as part of the search criteria, and pick up a string from within a PDF or a Map?

Any numeric search capability, or would that be asking too much?

[ December 11, 2008: Message edited by: Don Stadler ]
 
Emmanuel Bernard
author
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes you can search numbers and range of numbers.
The catch is to store them in a way to make numeric comparison equivalent to String comparison

2 < 12 but "2" > "12"

The idea is to put non significant zeros
"002" < "012"

You can do that with a custom bridge. There are examples of that (of various flexibility) in chapter 4.
 
Don Stadler
Ranch Hand
Posts: 451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Emmanuel,

Thank you, that helps.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic