Boolean on some attributes

This commit is contained in:
Michael RICOIS 2014-08-19 15:18:28 +00:00
parent 903e3cb394
commit 2662bbf352
2 changed files with 25 additions and 25 deletions

View File

@ -10,13 +10,13 @@ source ent
sql_query = SELECT id, siren, nic, siege, \
CONCAT_WS(" ", raisonSociale, enseigne, sigle, identite_pre) AS nom, \
REPLACE(REPLACE(adr_dep, '2B', '202'), '2A', '201') AS adr_dep, \
actif, adr_num, CONCAT_WS(" ", adr_typeVoie, adr_libVoie ,adr_comp) AS adresse, adr_cp, \
adr_ville AS ville, cj, ape_etab, IF(siren>200,1,0) AS sirenValide, rang \
FROM etablissements;
sql_attr_uint = siren
actif, adr_num, CONCAT_WS(" ", adr_typeVoie, adr_libVoie ,adr_comp) AS adresse, adr_cp, \
adr_ville AS ville, cj, ape_etab, IF(siren>200,1,0) AS sirenValide, rang \
FROM etablissements;
sql_attr_uint = siren
sql_attr_uint = nic
sql_attr_uint = siege
sql_attr_uint = actif
sql_attr_bool = actif
sql_attr_uint = adr_num
sql_attr_uint = adr_cp
sql_attr_uint = adr_dep

View File

@ -1,28 +1,28 @@
source ent
{
type = mysql
sql_host = 192.168.78.230
sql_user = sphinx
sql_pass = indexer
sql_db = jo
sql_query_pre = SET NAMES utf8
sql_query = SELECT id, siren, nic, siege, \
type = mysql
sql_host = 192.168.78.230
sql_user = sphinx
sql_pass = indexer
sql_db = jo
sql_query_pre = SET NAMES utf8
sql_query = SELECT id, siren, nic, siege, \
CONCAT_WS(" ", raisonSociale, enseigne, sigle, identite_pre) AS nom, \
REPLACE(REPLACE(adr_dep, '2B', '202'), '2A', '201') AS adr_dep, \
actif, adr_num, CONCAT_WS(" ", adr_typeVoie, adr_libVoie ,adr_comp) AS adresse, adr_cp, \
adr_ville AS ville, cj, ape_etab, IF(siren>200,1,0) AS sirenValide, rang \
FROM etablissements_tmp;
sql_attr_uint = siren
sql_attr_uint = nic
sql_attr_uint = siege
sql_attr_uint = actif
sql_attr_uint = adr_num
sql_attr_uint = adr_cp
sql_attr_uint = adr_dep
sql_attr_uint = cj
sql_attr_uint = sirenValide
sql_attr_uint = rang
actif, adr_num, CONCAT_WS(" ", adr_typeVoie, adr_libVoie ,adr_comp) AS adresse, adr_cp, \
adr_ville AS ville, cj, ape_etab, IF(siren>200,1,0) AS sirenValide, rang \
FROM etablissements_tmp;
sql_attr_uint = siren
sql_attr_uint = nic
sql_attr_uint = siege
sql_attr_bool = actif
sql_attr_uint = adr_num
sql_attr_uint = adr_cp
sql_attr_uint = adr_dep
sql_attr_uint = cj:4
sql_attr_bool = sirenValide
sql_attr_uint = rang
}
index ent