-->
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.  [ 5 posts ] 
Author Message
 Post subject: [Hibernate Search] How to match partial string?
PostPosted: Wed Aug 15, 2007 5:07 pm 
Newbie

Joined: Wed Aug 15, 2007 5:03 pm
Posts: 9
Hi all, I am new to the forum and also new to Hibernate Search. I am developing an application using Seam and wanted to integrate Hibernate Search into it.

I checked out the seam-dvd example that came with the seam package, one thing I noticed about the search function (it uses Hibernate Search) is that you have to match the whole string in order to get an result, I will give an example:

You have to search for "bourne" or "identity" in order to get "The Bourne Identity" in your result, is there anyway I can configure Hibernate Search so that "The Bourne Identity" can match with "bour", "bou", "iden" or similar search strings?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 15, 2007 6:03 pm 
Newbie

Joined: Wed Aug 15, 2007 5:03 pm
Posts: 9
I think I have some clues now, do I have to write my own QueryParser or Analyzer or both for this?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 15, 2007 10:15 pm 
Newbie

Joined: Wed Aug 15, 2007 5:03 pm
Posts: 9
Emmanuel, am I on the right track, do you have any suggestions?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 16, 2007 3:12 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
You need to read some basic Lucene documentation, querying in Hibernate Search is the same API.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 16, 2007 9:49 am 
Newbie

Joined: Wed Aug 15, 2007 5:03 pm
Posts: 9
ahh the Lucene documentation.. I got it now, thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.