Re: The way to customize ranking?

2012-08-28 Thread Chris Hostetter
: I'm working on Solr to build a local business search in China. We have a : special requirement from advertiser. When user makes a search, if the : results contain paid advertisements, those ads need to be moved on the top : of results. For different ads, they have detailed rules about which

Re: The way to customize ranking?

2012-08-27 Thread Mike Schultz
kind of step function, where if there is any scalar value, that overwhelms the score. This could do that for you. -- View this message in context: http://lucene.472066.n3.nabble.com/The-way-to-customize-ranking-tp4002885p4003565.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: The way to customize ranking?

2012-08-23 Thread Karthick Duraisamy Soundararaj
Hi You might add an int field Search Rule that identifies the type of search. example Search Rule Description 0 Unpaid Search 1 Paid

Re: The way to customize ranking?

2012-08-23 Thread Nicholas Ding
Thank you, but I don't want to filter those ads. For example, when user make a search like q=Car Result list: 1. Ford Automobile (score 10) 2. Honda Civic (score 9) ... ... ... 99. Paid Ads (score 1, Ad has own field to identify it's an Ad) What I want to find is a way to make the score of Paid

Re: The way to customize ranking?

2012-08-23 Thread Karthick Duraisamy Soundararaj
I cant think of a way you can achieve this in one request. Can you make two different solr requests? If so, you can make on with fq=PaidSearch:0 other with fq=padidSearch:[1:*] . On Thu, Aug 23, 2012 at 11:45 AM, Nicholas Ding nicholas...@gmail.comwrote: Thank you, but I don't want to filter

Re: The way to customize ranking?

2012-08-23 Thread François Schiettecatte
I would create two indices, one with your content and one with your ads. This approach would allow you to precisely control how many ads you pull back and how you merge them into the results, and you would be able to control schemas, boosting, defaults fields, etc for each index independently.

Re: The way to customize ranking?

2012-08-23 Thread Savvas Andreas Moysidis
Could you not apply this logic in your solr client prior to displaying the results? On 23 August 2012 20:56, François Schiettecatte fschietteca...@gmail.com wrote: I would create two indices, one with your content and one with your ads. This approach would allow you to precisely control how

Re: The way to customize ranking?

2012-08-23 Thread Nicholas Ding
Yes, I think do two separate calls to Solr could solve my problem. But I really want to reduce the HTTP requests to Solr, if I could write a Solr extension and place my ranking logics to inside, that could be perfect. On Thu, Aug 23, 2012 at 5:53 PM, Savvas Andreas Moysidis