-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Different search type in Hibernate
PostPosted: Wed Jan 05, 2005 6:38 am 
Newbie

Joined: Mon Dec 13, 2004 2:32 am
Posts: 8
Hi Everybody,

I have a requirement where in i need the product that we are devloping to allow the user with the following search type:

1. Stem Search:
Example Values: A query that can return values such as Abort, Aborting, Aborted.
I would like to return result that contain all the three values when the user enter any one of the above values as the search criteria.

2. Fuzzy Search:
Example Values : python, pithon, phithon
I would like to return all the above values for a search criteria where the user might enter any of the above three values. One could consider it as a case where in the user might have commited some typographical error.

3. Sounds/Phonic search:
Example values : Smith, Smithe, Smythe.

Here again the user might enter any of the above values but i need to return all the three values.

I would like to know if Hibernate has any in-built feature or some tweaks that will allow me to achive the above,

In our case the product that we are developing is pretty much assured to stick to Oracle for its life, i would also like to know if hibernate has any way to access the rich search featuers that oracle comes with (All the above search type are provided as an external piece of software that could be bought and used along with oracle from oracle itself).

I would appricate any insight into this query.

Warm Regards,
Madhusudan M Krishnamurthy


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 05, 2005 7:22 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
if your rdbms supports it and it can be expressed by a function call then you can use it in the where part of a HQL query.

if some special sql is needed look into createSQLQuery() (please not it currently only supports returning full persistent objects)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 05, 2005 7:32 am 
Newbie

Joined: Wed Jan 05, 2005 4:59 am
Posts: 5
Location: Stockholm, Sweden
To me it seems like you're in the need of a free-text search engine. Have you considered Luceneand the like?

I'm afraid I can't help you with the Hibernate/Lucene integration though since I've never tried it myself...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.