Mise à jour des configs
This commit is contained in:
parent
fb43745934
commit
81dfda1597
@ -1,41 +1,40 @@
|
|||||||
source source_ent
|
source ent
|
||||||
{
|
{
|
||||||
type = mysql
|
type = mysql
|
||||||
sql_host = 192.168.78.230
|
sql_host = 192.168.3.30
|
||||||
sql_user = sphinx
|
sql_user = sphinx
|
||||||
sql_pass = indexer
|
sql_pass = indexer
|
||||||
sql_db = jo
|
sql_db = jo
|
||||||
sql_query_pre =
|
sql_query_pre =
|
||||||
sql_query = SELECT id, siren, nic, siege, CONCAT(raisonSociale,\
|
sql_query = SELECT id, siren, nic, siege, CONCAT(raisonSociale,\
|
||||||
' "" ',enseigne,' "" ',sigle,' "" ',identite_pre,' "" ',\
|
' "" ',enseigne,' "" ',sigle,' "" ',identite_pre,' "" ',\
|
||||||
REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(sigle,' ',''),\
|
REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(sigle,' ',''),\
|
||||||
'@','A'), '&',' ET '),'/',''),',',''),'-',''),'.',''),' ',\
|
'@','A'), '&',' ET '),'/',''),',',''),'-',''),'.',''),' ',\
|
||||||
REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(sigle,\
|
REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(sigle,\
|
||||||
'@','A'), '&',' ET '),'/',''),',',''),'-',''),'.','')) AS nom, adr_dep, \
|
'@','A'), '&',' ET '),'/',''),',',''),'-',''),'.','')) AS nom, adr_dep, \
|
||||||
actif, adr_num, adr_typeVoie, CONCAT(adr_libVoie,' ',adr_comp) AS adresse, adr_cp, \
|
actif, adr_num, adr_typeVoie, CONCAT(adr_libVoie,' ',adr_comp) AS adresse, adr_cp, \
|
||||||
adr_ville AS ville, cj, ape_etab, (siren>200) AS sirenValide, rang \
|
adr_ville AS ville, cj, ape_etab, (siren>200) AS sirenValide, rang \
|
||||||
FROM etablissements_tmp;
|
FROM etablissements;
|
||||||
sql_attr_str2ordinal = adr_typeVoie
|
sql_attr_str2ordinal = adr_typeVoie
|
||||||
sql_attr_uint = siren
|
sql_attr_uint = siren
|
||||||
sql_attr_uint = nic
|
sql_attr_uint = nic
|
||||||
sql_attr_uint = siege
|
sql_attr_uint = siege
|
||||||
sql_attr_uint = adr_num
|
sql_attr_uint = adr_num
|
||||||
sql_attr_uint = adr_cp
|
sql_attr_uint = adr_cp
|
||||||
sql_attr_uint = adr_dep
|
sql_attr_uint = adr_dep
|
||||||
sql_attr_uint = actif
|
sql_attr_uint = actif
|
||||||
sql_attr_uint = cj
|
sql_attr_uint = cj
|
||||||
sql_attr_uint = sirenValide
|
sql_attr_uint = sirenValide
|
||||||
sql_attr_uint = rang
|
sql_attr_uint = rang
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
index ent
|
index ent
|
||||||
{
|
{
|
||||||
source = source_ent
|
source = ent
|
||||||
path = /dbs/sphinx/ent
|
path = /dbs/sphinx/ent
|
||||||
docinfo = extern
|
docinfo = extern
|
||||||
charset_type = sbcs
|
charset_type = sbcs
|
||||||
charset_table = 0..9, A..Z->a..z, a..z, \
|
charset_table = 0..9, A..Z->a..z, a..z, \
|
||||||
U+23, U+25, U+26, U+2B, U+3D, U+40, \
|
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
|
U+C0..U+DE->U+E0..U+FE, U+DF, U+E0..U+FF
|
||||||
}
|
}
|
||||||
|
41
config/Sphinx/MysqlServer/enttmp.conf
Normal file
41
config/Sphinx/MysqlServer/enttmp.conf
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
source ent
|
||||||
|
{
|
||||||
|
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, nic, siege, CONCAT(raisonSociale,\
|
||||||
|
' "" ',enseigne,' "" ',sigle,' "" ',identite_pre,' "" ',\
|
||||||
|
REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(sigle,' ',''),\
|
||||||
|
'@','A'), '&',' ET '),'/',''),',',''),'-',''),'.',''),' ',\
|
||||||
|
REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(sigle,\
|
||||||
|
'@','A'), '&',' ET '),'/',''),',',''),'-',''),'.','')) AS nom, adr_dep, \
|
||||||
|
actif, adr_num, adr_typeVoie, CONCAT(adr_libVoie,' ',adr_comp) AS adresse, adr_cp, \
|
||||||
|
adr_ville AS ville, cj, ape_etab, (siren>200) AS sirenValide, rang \
|
||||||
|
FROM etablissements_tmp;
|
||||||
|
sql_attr_str2ordinal = adr_typeVoie
|
||||||
|
sql_attr_uint = siren
|
||||||
|
sql_attr_uint = nic
|
||||||
|
sql_attr_uint = siege
|
||||||
|
sql_attr_uint = adr_num
|
||||||
|
sql_attr_uint = adr_cp
|
||||||
|
sql_attr_uint = adr_dep
|
||||||
|
sql_attr_uint = actif
|
||||||
|
sql_attr_uint = cj
|
||||||
|
sql_attr_uint = sirenValide
|
||||||
|
sql_attr_uint = rang
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
index ent
|
||||||
|
{
|
||||||
|
source = ent
|
||||||
|
path = /dbs/sphinx/ent
|
||||||
|
docinfo = extern
|
||||||
|
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
|
||||||
|
}
|
@ -1,15 +1,16 @@
|
|||||||
source source_act
|
source source_act
|
||||||
{
|
{
|
||||||
type = mysql
|
type = mysql
|
||||||
sql_host = 192.168.3.30
|
sql_host = 192.168.3.30
|
||||||
sql_user = sphinx
|
sql_user = sphinx
|
||||||
sql_pass = indexer
|
sql_pass = indexer
|
||||||
sql_db = jo
|
sql_db = jo
|
||||||
sql_query_pre =
|
sql_query_pre =
|
||||||
sql_query = SELECT id, Siren1, RaisonSociale, Siren2, actif, dateLien, IF(dateUpdate>dateInsert,dateUpdate,dateInsert) as dateMaj, \
|
sql_query =
|
||||||
source, Pmin*1 AS PminNum, MajMin, PpPm, IF(Pays='','FRA',Pays) AS Pays \
|
SELECT id, Siren1, RaisonSociale, Siren2, actif, dateLien, IF(dateUpdate>dateInsert,dateUpdate,dateInsert) as dateMaj, \
|
||||||
FROM liens \
|
source, Pmin*1 AS PminNum, MajMin, PpPm, IF(Pays='','FRA',Pays) AS Pays \
|
||||||
WHERE ActionPart=1 AND Siren1>1000 AND Siren1 IN (SELECT DISTINCT SIREN FROM etablissements_old);
|
FROM liens \
|
||||||
|
WHERE ActionPart=1 AND Siren1>1000 AND Siren1 IN (SELECT DISTINCT SIREN FROM etablissements_old);
|
||||||
sql_attr_uint = actif
|
sql_attr_uint = actif
|
||||||
sql_attr_uint = source
|
sql_attr_uint = source
|
||||||
sql_attr_uint = PminNum
|
sql_attr_uint = PminNum
|
||||||
@ -26,6 +27,6 @@ index act
|
|||||||
morphology = none
|
morphology = none
|
||||||
charset_type = sbcs
|
charset_type = sbcs
|
||||||
charset_table = 0..9, A..Z->a..z, a..z, \
|
charset_table = 0..9, A..Z->a..z, a..z, \
|
||||||
U+23, U+25, U+26, U+2B, U+3D, U+40, \
|
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
|
U+C0..U+DE->U+E0..U+FE, U+DF, U+E0..U+FF
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
source source_dir
|
source dir
|
||||||
{
|
{
|
||||||
type = mysql
|
type = mysql
|
||||||
sql_host = 192.168.3.30
|
sql_host = 192.168.3.30
|
||||||
@ -6,29 +6,21 @@ source source_dir
|
|||||||
sql_pass = indexer
|
sql_pass = indexer
|
||||||
sql_db = jo
|
sql_db = jo
|
||||||
sql_query_pre =
|
sql_query_pre =
|
||||||
sql_query = SELECT id, siren, actif, \
|
sql_query =
|
||||||
IF(civilite='M',1,IF(civilite='MME' OR civilite='MLLE',2,0)) AS genre, \
|
SELECT id, siren, actif, \
|
||||||
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, adr_dep \
|
DAY(naissance_date) AS naiss_jour, \
|
||||||
FROM rncs_dirigeants;
|
naissance_lieu, adr_dep \
|
||||||
# UNION \
|
FROM rncs_dirigeants;
|
||||||
#SELECT id, siren, 0 AS actif, \
|
|
||||||
#'' AS genre, \
|
|
||||||
#CONCAT(nom,' ',nomUsage,' ',rs) AS nom, prenom, \
|
|
||||||
#0 AS naiss_annee, \
|
|
||||||
#0 AS naiss_mois, \
|
|
||||||
#0 AS naiss_jour, \
|
|
||||||
#'' AS naissance_lieu, 0 AS adr_dep \
|
|
||||||
#FROM bodacc_dirigeants_histo;
|
|
||||||
sql_attr_uint = naiss_annee
|
sql_attr_uint = naiss_annee
|
||||||
sql_attr_uint = naiss_mois
|
sql_attr_uint = naiss_mois
|
||||||
sql_attr_uint = naiss_jour
|
sql_attr_uint = naiss_jour
|
||||||
sql_attr_uint = actif
|
sql_attr_uint = actif
|
||||||
sql_attr_uint = genre
|
sql_attr_uint = genre
|
||||||
sql_attr_uint = adr_dep
|
sql_attr_uint = adr_dep
|
||||||
}
|
}
|
||||||
|
|
||||||
index dir
|
index dir
|
||||||
@ -37,9 +29,8 @@ index dir
|
|||||||
path = /dbs/sphinx/dir
|
path = /dbs/sphinx/dir
|
||||||
docinfo = extern
|
docinfo = extern
|
||||||
morphology = none
|
morphology = none
|
||||||
#ispell_aff = /usr/local/sphinx/etc/francais.aff
|
|
||||||
charset_type = sbcs
|
charset_type = sbcs
|
||||||
charset_table = 0..9, A..Z->a..z, a..z, \
|
charset_table = 0..9, A..Z->a..z, a..z, \
|
||||||
U+23, U+25, U+26, U+2B, U+3D, U+40, \
|
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
|
U+C0..U+DE->U+E0..U+FE, U+DF, U+E0..U+FF
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
ource histo
|
source histo
|
||||||
{
|
{
|
||||||
type = mysql
|
type = mysql
|
||||||
sql_host = 192.168.78.230
|
sql_host = 192.168.3.24
|
||||||
sql_user = sphinx_histo
|
sql_user = sphinx_histo
|
||||||
sql_pass = sphinx
|
sql_pass = sphinx
|
||||||
sql_db = histobodacc
|
sql_db = histobodacc
|
||||||
@ -13,11 +13,11 @@ ource histo
|
|||||||
|
|
||||||
index histo
|
index histo
|
||||||
{
|
{
|
||||||
source = histo
|
source = histo
|
||||||
path = /home/sphinx/histo
|
path = /home/sphinx/histo
|
||||||
docinfo = extern
|
docinfo = extern
|
||||||
morphology = none
|
morphology = none
|
||||||
min_word_len = 1
|
min_word_len = 1
|
||||||
charset_type = sbcs
|
charset_type = sbcs
|
||||||
html_strip = 1
|
html_strip = 1
|
||||||
}
|
}
|
||||||
|
@ -1,25 +1,26 @@
|
|||||||
source source_dir
|
source dir
|
||||||
{
|
{
|
||||||
type = mysql
|
type = mysql
|
||||||
sql_host = 192.168.3.24
|
sql_host = 192.168.3.30
|
||||||
sql_user = sphinx
|
sql_user = sphinx
|
||||||
sql_pass = indexer
|
sql_pass = indexer
|
||||||
sql_db = jo
|
sql_db = jo
|
||||||
sql_query_pre =
|
sql_query_pre =
|
||||||
sql_query = SELECT id, siren, actif, \
|
sql_query =
|
||||||
IF(civilite='M',1,IF(civilite='MME' OR civilite='MLLE',2,0)) AS genre, \
|
SELECT id, siren, actif, \
|
||||||
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, adr_dep \
|
DAY(naissance_date) AS naiss_jour, \
|
||||||
FROM rncs_dirigeants;
|
naissance_lieu, adr_dep \
|
||||||
|
FROM rncs_dirigeants;
|
||||||
sql_attr_uint = naiss_annee
|
sql_attr_uint = naiss_annee
|
||||||
sql_attr_uint = naiss_mois
|
sql_attr_uint = naiss_mois
|
||||||
sql_attr_uint = naiss_jour
|
sql_attr_uint = naiss_jour
|
||||||
sql_attr_uint = actif
|
sql_attr_uint = actif
|
||||||
sql_attr_uint = genre
|
sql_attr_uint = genre
|
||||||
sql_attr_uint = adr_dep
|
sql_attr_uint = adr_dep
|
||||||
}
|
}
|
||||||
|
|
||||||
index dir
|
index dir
|
||||||
@ -28,7 +29,6 @@ index dir
|
|||||||
path = /dbs/sphinx/dir
|
path = /dbs/sphinx/dir
|
||||||
docinfo = extern
|
docinfo = extern
|
||||||
morphology = none
|
morphology = none
|
||||||
#ispell_aff = /usr/local/sphinx/etc/francais.aff
|
|
||||||
charset_type = sbcs
|
charset_type = sbcs
|
||||||
charset_table = 0..9, A..Z->a..z, a..z, \
|
charset_table = 0..9, A..Z->a..z, a..z, \
|
||||||
U+23, U+25, U+26, U+2B, U+3D, U+40, \
|
U+23, U+25, U+26, U+2B, U+3D, U+40, \
|
||||||
|
Loading…
Reference in New Issue
Block a user