Skip to content
iamazy edited this page Sep 23, 2019 · 1 revision

FunctionScore && DisMax

示例

--function_score
select * from student where h!age> 10 and h!weight between 80 and 90 and color = 'red' func_score high > 160 && name ='小明' aggregate by terms(name,10),terms(age,10)>(cardinality(clazz))
--dis_max
select * from student dis_max age>11 || name='小米宁' and ( height>1.6 or fruit ='apple') || firstName is not null and tie_breaker=0.7
Clone this wiki locally