diff --git a/config/Sphinx/Dev/ciblage.conf b/config/Sphinx/Dev/ciblage.conf index cd76681..c7a3c56 100644 --- a/config/Sphinx/Dev/ciblage.conf +++ b/config/Sphinx/Dev/ciblage.conf @@ -62,7 +62,13 @@ source ciblage bilHN, \ bilYP, \ codeCommune AS adr_com, \ - LOWER('EX') AS exclu \ + CASE zus WHEN '' THEN 0 WHEN 'HORSZONE' THEN 0 WHEN 'NSP' THEN 0 WHEN 'X' THEN 0 ELSE 1 END as zus, \ + CASE zfu WHEN '' THEN 0 WHEN 'HORSZONE' THEN 0 WHEN 'NSP' THEN 0 WHEN 'X' THEN 0 ELSE 1 END as zfu, \ + CASE zru WHEN '' THEN 0 WHEN 'NSP' THEN 0 ELSE 1 END as zru, \ + CASE zus WHEN '' THEN 0 WHEN 'NSP' THEN 0 ELSE 1 END as zus, \ + CASE cucs WHEN '' THEN 0 WHEN 'NSP' THEN 0 ELSE 1 END as cucs, \ + IF(zrr=1,1,0) as zrr, \ + IF(zafr=1,1,0) as zafr \ FROM etablissements_act WHERE siren>100; sql_field_string = siren @@ -121,6 +127,12 @@ source ciblage sql_attr_uint = bilHN sql_attr_uint = bilYP sql_field_string = adr_com + sql_attr_uint = zus + sql_attr_uint = zru + sql_attr_uint = zfu + sql_attr_uint = cucs + sql_attr_uint = zrr + sql_attr_uint = zafr } index ciblage