-->
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: Partial searches
PostPosted: Thu Aug 06, 2009 11:28 am 
Beginner
Beginner

Joined: Tue Feb 03, 2009 12:29 pm
Posts: 49
hi,

We have a full text search using Lucene across multiple fields. Now they want partial searches to be supported for some of the fields. For example, searching for "choc cake" should include records which have terms starting with "choc" and "cake". I know that Lucene supports this if we use wild card searches such as "choc*", but this behavior needs to be supported by default. I can think of the following options.

1. Split the words in the quick search string and concatenate a "*" at the end of each word
2. Search for exact matches first and if no results are returned then go for option 1.

Please suggest what the best approach would be for this problem.

Thanks,
Seema


Top
 Profile  
 
 Post subject: Re: Partial searches
PostPosted: Fri Aug 07, 2009 8:46 pm 
Newbie

Joined: Wed Jul 15, 2009 12:34 pm
Posts: 18
I would go directly for 1. It's fast and easy to implement.


Top
 Profile  
 
 Post subject: Re: Partial searches
PostPosted: Mon Aug 10, 2009 11:34 pm 
Newbie

Joined: Mon Aug 10, 2009 11:31 pm
Posts: 1
I think this is enough .....
I do agree with you. Those are the most effective way

simulation taux banque credit immobilier de France - Credit immobilier de France, simulation credit immobilier. Résultat mitigé pour le crédit immobilier de France.simulation taux banque credit immobilier de France


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.