Monika
Monika

Reputation: 13

solrj can not boost results

I am new to solr . I tried to boost result by applying query

query.set("bq", "id:"
+ userId + "^100");

When I execute query it didn't boost result. Where I am missing?

Upvotes: 1

Views: 169

Answers (1)

Prashant Thorat
Prashant Thorat

Reputation: 1812

It looks like you are missing defType as edismax

   query.set("defType", "edismax");
   query.set("bq", "id:" + userId + "^100");

Hope so it will help you..

Upvotes: 3

Related Questions