Confusion dans la configuration

This commit is contained in:
Michael RICOIS 2011-11-25 16:37:44 +00:00
parent 41b415961b
commit fcac51436c
5 changed files with 105 additions and 65 deletions

View File

@ -7,25 +7,26 @@ source dir
sql_db = jo sql_db = jo
sql_query_pre = sql_query_pre =
sql_query = sql_query =
SELECT id, siren, actif, \ SELECT id, siren, adr_dep, typeDir, dirSiren, civilite, CONCAT(nom,' ',naissance_nom, ' ', dirRS) AS nom, prenom, \
IF(civilite='M',1,IF(civilite='MME' OR civilite='MLLE',2,0)) AS genre, \ YEAR(naissance_date) AS naiss_annee, \
CONCAT(nom,' ',naissance_nom, ' ', dirRS) AS nom, prenom, \ MONTH(naissance_date) AS naiss_mois, \
YEAR(naissance_date) AS naiss_annee, \ DAY(naissance_date) AS naiss_jour, \
MONTH(naissance_date) AS naiss_mois, \ naissance_lieu, fonction_code, actif \
DAY(naissance_date) AS naiss_jour, \ FROM dirigeants;
naissance_lieu, adr_dep \ sql_attr_str2ordinal = civilite
FROM rncs_dirigeants; sql_attr_str2ordinal = typeDir
sql_attr_uint = naiss_annee sql_attr_str2ordinal = fonction_code
sql_attr_uint = naiss_mois sql_attr_uint = dirSiren
sql_attr_uint = naiss_jour sql_attr_uint = naiss_annee
sql_attr_uint = actif sql_attr_uint = naiss_mois
sql_attr_uint = genre sql_attr_uint = naiss_jour
sql_attr_uint = adr_dep sql_attr_uint = actif
sql_attr_uint = adr_dep
} }
index dir index dir
{ {
source = source_dir source = dir
path = /dbs/sphinx/dir path = /dbs/sphinx/dir
docinfo = extern docinfo = extern
morphology = none morphology = none

View File

@ -0,0 +1,37 @@
source dir
{
type = mysql
sql_host = 192.168.78.230
sql_user = sphinx
sql_pass = indexer
sql_db = jo
sql_query_pre =
sql_query =
SELECT id, siren, adr_dep, typeDir, dirSiren, civilite, CONCAT(nom,' ',naissance_nom, ' ', dirRS) AS nom, prenom, \
YEAR(naissance_date) AS naiss_annee, \
MONTH(naissance_date) AS naiss_mois, \
DAY(naissance_date) AS naiss_jour, \
naissance_lieu, fonction_code, actif \
FROM dirigeants_tmp;
sql_attr_str2ordinal = civilite
sql_attr_str2ordinal = typeDir
sql_attr_str2ordinal = fonction_code
sql_attr_uint = dirSiren
sql_attr_uint = naiss_annee
sql_attr_uint = naiss_mois
sql_attr_uint = naiss_jour
sql_attr_uint = actif
sql_attr_uint = adr_dep
}
index dir
{
source = dir
path = /dbs/sphinx/dir
docinfo = extern
morphology = none
charset_type = sbcs
charset_table = 0..9, A..Z->a..z, a..z, \
U+23, U+25, U+26, U+2B, U+3D, U+40, \
U+C0..U+DE->U+E0..U+FE, U+DF, U+E0..U+FF
}

View File

@ -1,36 +0,0 @@
source dir
{
type = mysql
sql_host = 192.168.3.30
sql_user = sphinx
sql_pass = indexer
sql_db = jo
sql_query_pre =
sql_query =
SELECT id, siren, actif, \
IF(civilite='M',1,IF(civilite='MME' OR civilite='MLLE',2,0)) AS genre, \
CONCAT(nom,' ',naissance_nom, ' ', dirRS) AS nom, prenom, \
YEAR(naissance_date) AS naiss_annee, \
MONTH(naissance_date) AS naiss_mois, \
DAY(naissance_date) AS naiss_jour, \
naissance_lieu, adr_dep \
FROM rncs_dirigeants;
sql_attr_uint = naiss_annee
sql_attr_uint = naiss_mois
sql_attr_uint = naiss_jour
sql_attr_uint = actif
sql_attr_uint = genre
sql_attr_uint = adr_dep
}
index dir
{
source = source_dir
path = /dbs/sphinx/dir
docinfo = extern
morphology = none
charset_type = sbcs
charset_table = 0..9, A..Z->a..z, a..z, \
U+23, U+25, U+26, U+2B, U+3D, U+40, \
U+C0..U+DE->U+E0..U+FE, U+DF, U+E0..U+FF
}

View File

@ -0,0 +1,37 @@
source dir
{
type = mysql
sql_host = 192.168.3.30
sql_user = sphinx
sql_pass = indexer
sql_db = jo
sql_query_pre =
sql_query =
SELECT id, siren, adr_dep, typeDir, dirSiren, civilite, CONCAT(nom,' ',naissance_nom, ' ', dirRS) AS nom, prenom, \
YEAR(naissance_date) AS naiss_annee, \
MONTH(naissance_date) AS naiss_mois, \
DAY(naissance_date) AS naiss_jour, \
naissance_lieu, fonction_code, actif \
FROM dirigeants_tmp;
sql_attr_str2ordinal = civilite
sql_attr_str2ordinal = typeDir
sql_attr_str2ordinal = fonction_code
sql_attr_uint = dirSiren
sql_attr_uint = naiss_annee
sql_attr_uint = naiss_mois
sql_attr_uint = naiss_jour
sql_attr_uint = actif
sql_attr_uint = adr_dep
}
index dir
{
source = source_dir
path = /dbs/sphinx/dir
docinfo = extern
morphology = none
charset_type = sbcs
charset_table = 0..9, A..Z->a..z, a..z, \
U+23, U+25, U+26, U+2B, U+3D, U+40, \
U+C0..U+DE->U+E0..U+FE, U+DF, U+E0..U+FF
}

View File

@ -7,20 +7,21 @@ source dir
sql_db = jo sql_db = jo
sql_query_pre = sql_query_pre =
sql_query = sql_query =
SELECT id, siren, actif, \ SELECT id, siren, adr_dep, typeDir, dirSiren, civilite, CONCAT(nom,' ',naissance_nom, ' ', dirRS) AS nom, prenom, \
IF(civilite='M',1,IF(civilite='MME' OR civilite='MLLE',2,0)) AS genre, \ YEAR(naissance_date) AS naiss_annee, \
CONCAT(nom,' ',naissance_nom, ' ', dirRS) AS nom, prenom, \ MONTH(naissance_date) AS naiss_mois, \
YEAR(naissance_date) AS naiss_annee, \ DAY(naissance_date) AS naiss_jour, \
MONTH(naissance_date) AS naiss_mois, \ naissance_lieu, fonction_code, actif \
DAY(naissance_date) AS naiss_jour, \ FROM dirigeants;
naissance_lieu, adr_dep \ sql_attr_str2ordinal = civilite
FROM rncs_dirigeants; sql_attr_str2ordinal = typeDir
sql_attr_uint = naiss_annee sql_attr_str2ordinal = fonction_code
sql_attr_uint = naiss_mois sql_attr_uint = dirSiren
sql_attr_uint = naiss_jour sql_attr_uint = naiss_annee
sql_attr_uint = actif sql_attr_uint = naiss_mois
sql_attr_uint = genre sql_attr_uint = naiss_jour
sql_attr_uint = adr_dep sql_attr_uint = actif
sql_attr_uint = adr_dep
} }
index dir index dir