Or you can do a search for two ads with random ordering, then a second search 
for ads in the desired order with excludes for the two ads returned in the 
first. 

You don't have to do everything inside Solr.

wunder
Search Guy, Chegg

On Feb 9, 2012, at 1:04 AM, Tommaso Teofili wrote:

> I think you may use/customize the query elevation component to achieve that.
> http://wiki.apache.org/solr/QueryElevationComponent
> Tommaso
> 
> 2012/2/9 mtheone <mthe...@gmail.com>
> 
>> Say I have a classified ads site, I want to display 2 random items (premium
>> ads) in the beginning of the search result and the rest are regular ads,
>> how
>> do I do it?
>> 
>> Thanks
>> 
>> --
>> View this message in context:
>> http://lucene.472066.n3.nabble.com/How-to-do-this-in-Solr-random-result-for-the-first-few-results-tp3728729p3728729.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>> 





Reply via email to