-->
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: Disregarding frequency of terms in hibernate search
PostPosted: Fri Mar 12, 2010 6:29 am 
Regular
Regular

Joined: Mon Mar 10, 2008 6:40 pm
Posts: 114
If someone has multiple names and a word common to their multiple names is in my search query, they're going to probably be #1 in my search results even though it doesn't make sense for them to be so high. Maybe I searched for John Henry and even though there's an exact match, John Bob comes up #1 because he also has the name John Billy... so John matched twice. I don't want this to happen. How do I get Hibernate Search (or lucene) to either search the names individually or disregard how often a word occurs in a name?


Top
 Profile  
 
 Post subject: Re: Disregarding frequency of terms in hibernate search
PostPosted: Fri Mar 12, 2010 8:24 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
It all depends how exactly you model (entities) look like and which query you are using. For example, I would assume that not all names are stored in the same string property and maybe first and last names are also stored separately. Have you considered index or search time boosting? And is this actually a real problem you are having? Post your entity and search code to get some more concrete feedback.

--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.