lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: Term component sort is not working
Date Tue, 16 Nov 2010 14:36:01 GMT
> I am capturing all the user entered search terms in to the
> database and the number of times the search term is
> entered.Let us say
> 
> "laptop" has entered 100 times.
> "laptop bag" has entered 80 times.
> "laptop battery" has entered 90 times.
> 
> I am using terms component for auto suggest feature.If the
> user types for "lap" , i am getting response as 
> "laptop bag"
> "laptop"
> "laptop battery"
> 
> But i should get "laptop"
>              
>    "laptop battery"
>              
>    "laptop bag"
> 
> As "laptop" is entered by more number of times it should
> come first in the result.In this case i need to utilize the
> WEIGHTAGE(the number times searched) for sorting.

Then you can use this approached (instead of Terms Component) described here: http://www.lucidimagination.com/blog/2009/09/08/auto-suggest-from-popular-queries-using-edgengrams/


      

Mime
View raw message