This commit is contained in:
parent
9cecba87b2
commit
3ba0ebe461
@ -130,25 +130,21 @@ then
|
||||
case $index in
|
||||
"ent")
|
||||
`cp files/SdIndexe/$index.conf indexeConf/$index.sphinx.conf`
|
||||
`cat indexeConf/$index.sphinx.conf >> indexeConf/sphinx.conf`
|
||||
;;
|
||||
"act")
|
||||
`cp files/SdIndexe/$index.conf indexeConf/$index.sphinx.conf`
|
||||
`cat indexeConf/$index.sphinx.conf >> indexeConf/sphinx.conf`
|
||||
;;
|
||||
"dir")
|
||||
`cp files/SdIndexe/$index.conf indexeConf/$index.sphinx.conf`
|
||||
`cat indexeConf/$index.sphinx.conf >> indexeConf/sphinx.conf`
|
||||
;;
|
||||
"comptage")
|
||||
`cp files/SdIndexe/$index.conf indexeConf/$index.sphinx.conf`
|
||||
`cat indexeConf/$index.sphinx.conf >> indexeConf/sphinx.conf`
|
||||
;;
|
||||
*)
|
||||
`cp files/generic.sphinx.conf indexeConf/$index.sphinx.conf`
|
||||
`sed -e "s/xindex/$index/g" -i indexeConf/$index.sphinx.conf`
|
||||
`cat indexeConf/$index.sphinx.conf >> indexeConf/sphinx.conf`
|
||||
esac
|
||||
`cat indexeConf/$index.sphinx.conf >> indexeConf/sphinx.conf`
|
||||
echo -e " - Written data in $index.sphinx.conf"
|
||||
echo -e $VERT"File $index as been create"$NORMAL
|
||||
done
|
||||
|
@ -1,3 +1,4 @@
|
||||
|
||||
source source_act
|
||||
{
|
||||
type = mysql
|
||||
|
@ -1,3 +1,4 @@
|
||||
|
||||
source comptage
|
||||
{
|
||||
type = mysql
|
||||
|
@ -1,3 +1,4 @@
|
||||
|
||||
source source_dir
|
||||
{
|
||||
type = mysql
|
||||
|
@ -1,3 +1,4 @@
|
||||
|
||||
source source_ent
|
||||
{
|
||||
type = mysql
|
||||
|
72
sphinx.conf
72
sphinx.conf
@ -1,3 +1,4 @@
|
||||
|
||||
source source_act
|
||||
{
|
||||
type = mysql
|
||||
@ -36,7 +37,8 @@ index act_phx
|
||||
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
|
||||
}source source_ent
|
||||
}
|
||||
source source_ent
|
||||
{
|
||||
type = mysql
|
||||
sql_host = 192.168.3.30
|
||||
@ -107,53 +109,59 @@ index ent_phx
|
||||
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
|
||||
}
|
||||
|
||||
source source_ddd
|
||||
source source_dir
|
||||
{
|
||||
type = mysql
|
||||
sql_host =
|
||||
sql_user =
|
||||
sql_pass =
|
||||
sql_db =
|
||||
sql_host = 192.168.3.30
|
||||
sql_user = sphinx
|
||||
sql_pass = indexer
|
||||
sql_db = jo
|
||||
sql_query_pre =
|
||||
sql_query =
|
||||
# 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_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 = genre
|
||||
sql_attr_uint = adr_dep
|
||||
}
|
||||
|
||||
index ddd
|
||||
index dir
|
||||
{
|
||||
source = source_ddd
|
||||
path = /dbs/sphinx/ddd
|
||||
source = source_dir
|
||||
path = /dbs/sphinx/dir
|
||||
docinfo = extern
|
||||
wordforms = /usr/local/sphinx/etc/wordforms.txt
|
||||
abreviations = /usr/local/sphinx/etc/abreviations.txt
|
||||
ispell_aff = /usr/local/sphinx/etc/francais.aff
|
||||
morphology = none
|
||||
#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 ddd_mns
|
||||
index dir_phx
|
||||
{
|
||||
source = source_ddd
|
||||
path = /dbs/sphinx/ddd_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 ddd_phx
|
||||
{
|
||||
source = source_ddd
|
||||
path = /dbs/sphinx/ddd_phx
|
||||
source = source_dir
|
||||
path = /dbs/sphinx/dir_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, \
|
||||
|
Loading…
Reference in New Issue
Block a user