Thanks Saurabh And Prince, Works perfectly.
On Sun, 14 Apr 2019 at 17:21, Prince Manohar
wrote:
> Basically, you need to boost some documents low.
>
> For this, you can either use solr’s Boost Query ( bq ) or Boost Function
> (bf)
> parameter.
>
> For example in your case:-
>
> If you want the d
Basically, you need to boost some documents low.
For this, you can either use solr’s Boost Query ( bq ) or Boost Function (bf)
parameter.
For example in your case:-
If you want the documents with countries A and B to show last in the
result, you can use:-
bq=( country:A OR country:B )^-1
Note
fq=country :c1 OR c2 OR c3&sort=if(termfreq (country,c2),0,1) desc
Correcting query.
On Sun 14 Apr, 2019, 3:36 PM Saurabh Sharma,
wrote:
> I would suggest to sort on the basis of condition. First find all the
> records and then sort on the basis of condition where you will be putting
> spcific
I would suggest to sort on the basis of condition. First find all the
records and then sort on the basis of condition where you will be putting
spcific countries below other.
fq=country :c1 OR c2 OR c3&sort=if(termfreq (country,c2),1,0) desc
Here we are putting c2 below c1 and c3.
You can also