lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@odoko.co.uk>
Subject Re: How to show some documents ahead of others
Date Thu, 08 Oct 2015 12:48:51 GMT
Or just have a field in your index - 

paid: true/false

Then sort=paid desc, score desc

(you may need to sort paid asc, not sure which way a boolean would sort)

Question is whether you want to show ALL paid posts, or just a set of
them. For the latter you could use result grouping on the paid field.

Upayavira

On Thu, Oct 8, 2015, at 01:34 PM, NutchDev wrote:
> Hi Christian,
> 
> You can take a look at Solr's  QueryElevationComponent
> <https://wiki.apache.org/solr/QueryElevationComponent>  . 
> 
> It will allow you to configure the top results for a given query
> regardless
> of the normal lucene scoring. Also you can specify exclude document list
> to
> exclude certain results for perticular query.
> 
> 
> 
> 
> 
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/How-to-show-some-documents-ahead-of-others-tp4233481p4233490.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message