Hi You might add an int field "Search Rule" that identifies the type of search. example Search Rule Description 0 Unpaid Search 1 Paid Search - Rule 1 2 Paid Serch - Rule 2
You can use filterqueries (http://wiki.apache.org/solr/CommonQueryParameters) like fq: Search Rule :[1 TO *] Alternatively, You can even use a boolean field to identify whether or not a search is paid and then an addtitional field that identifies the type of paid search. -- karthick On Thu, Aug 23, 2012 at 11:16 AM, Nicholas Ding <nicholas...@gmail.com>wrote: > Hi > > 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 comes > first. > > Could anyone offer me some suggestions how I customize the ranking based on > my requirement? > > Thanks > Nicholas >