import com.senseidb.search.client.req.relevance.VariableType;
public class RelevanceExample {
public static void main(String[] args) throws Exception {
SenseiServiceProxy senseiServiceProxy = new SenseiServiceProxy("localhost", 8080);
Model model = Model.builder().addFacets(RelevanceFacetType.type_int, "year","mileage").
addFacets(RelevanceFacetType.type_long, "groupid").addFacets(RelevanceFacetType.type_string, "color","category").
addFunctionParams("_INNER_SCORE", "thisYear", "year","goodYear","mileageWeight","mileage","color", "yearcolor", "colorweight", "category", "categorycolor").
addVariables(VariableType.set_int, "goodYear").addVariables(VariableType.type_int, "thisYear").
addVariables(VariableType.map_int_float, "mileageWeight").addVariables(VariableType.map_int_string, "yearcolor")
.addVariables(VariableType.map_string_float, "colorweight").addVariables(VariableType.map_string_string, "categorycolor").