Wouldn’t you reverse that? Assuming there are exactly two “available” states, sort=available desc, score desc
Maybe available would sort asc, depends on your values…. > On Sep 24, 2019, at 10:15 AM, digi_business <federico.co...@digibusiness.it> > wrote: > > Hi all, reading your suggestions i've juste come out of the darkness! > > Just for explaining, my problem is that i want to show all my items (not > only the "availables"), but having the availables coming first, still > mantaining my custom sorting by "ranking" desc. > i then used this BoostQuery > bq=(Avail_From: [* TO NOW] AND Avail_To: [NOW TO *])^10 > and discovered that for activating it i must declare defType=edismax before > all > then i discovered about the default SolR "score" sorting, and explicitating > it like this did the magic > sort=score desc, Ranking desc > > thanks all for the help, and I really hope this could help someone else in > the future > > > > -- > Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html