Boolean on some attributes

This commit is contained in:
Michael RICOIS 2014-08-19 15:01:48 +00:00
parent 058bd99844
commit 903e3cb394
2 changed files with 19 additions and 18 deletions

View File

@ -16,7 +16,7 @@ source ent
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
@ -25,6 +25,7 @@ source ent
sql_attr_uint = rang
}
index ent
{
source = ent

View File

@ -1,28 +1,28 @@
source ent
{
type = mysql
sql_host = 192.168.3.30
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.3.30
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
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