-->
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.  [ 2 posts ] 
Author Message
 Post subject: Predictive Style Analyzer
PostPosted: Wed Feb 10, 2010 1:11 pm 
Newbie

Joined: Wed Feb 10, 2010 5:07 am
Posts: 11
Is there a recommended configuration for an analyzer that would support a Google-style predictive front-end search engine?

I would like to have smart-stemming a-la snowball but also return predictive hits (i.e. "mad" would return "madonna" in a music search).

Thanks.


Top
 Profile  
 
 Post subject: Re: Predictive Style Analyzer
PostPosted: Tue Feb 16, 2010 11:40 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
I guess you problem could also be solved from a query point of view. Why not just use a PrefixQuery which will automatically be generated when you generate a query of the form "mad*"

If you want to tackle your problem from the analyzer level you probably would have to index each of your tokens including all its substrings (similar to what the synonym analyzer does). This approach has, however, side effects you have to be aware of. See also http://www.gossamer-threads.com/lists/l ... w_threaded

I am also not quite sure what you mean with "Google-style predictive search". Do you mean fuzzy search?

--Hardy


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