它已经实现:
_client.Search<ElasticsearchProject>(s => s.Query(q=>q .FunctionScore(fs=>fs.Functions( f=>f .scriptScore(ss=>ss.script("25")) .Filter(ff=>ff.Term(t=>t.Country, "A")), f=> f .scriptScore(ss=>ss.script("15")) .Filter(ff=>ff.Term("a","b"))) .ScoreMode(FunctionScoreMode.first) .BoostMode(FunctionBoostMode.sum))));
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)