72 lines
2.5 KiB
Plaintext
72 lines
2.5 KiB
Plaintext
|
|
||
|
source 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 = source_ent
|
||
|
path = /dbs/sphinx/ent
|
||
|
docinfo = extern
|
||
|
wordforms = /usr/local/sphinx/etc/wordforms.txt
|
||
|
abreviations = /usr/local/sphinx/etc/abreviations.txt
|
||
|
ispell_aff = /usr/local/sphinx/etc/francais.aff
|
||
|
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
|
||
|
}
|
||
|
|
||
|
index ent_mns
|
||
|
{
|
||
|
source = source_ent
|
||
|
path = /dbs/sphinx/ent_mns
|
||
|
docinfo = extern
|
||
|
wordforms = /usr/local/sphinx/etc/wordforms.txt
|
||
|
abreviations = /usr/local/sphinx/etc/abreviations.txt
|
||
|
non_significatifs = /usr/local/sphinx/etc/mots-non-significatifs.txt
|
||
|
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
|
||
|
}
|
||
|
|
||
|
index ent_phx
|
||
|
{
|
||
|
source = source_ent
|
||
|
path = /dbs/sphinx/ent_phx
|
||
|
docinfo = extern
|
||
|
morphology = libstemmer_francais
|
||
|
wordforms = /usr/local/sphinx/etc/wordforms.txt
|
||
|
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
|
||
|
}
|