Subversion Repositories Applications.papyrus

Rev

Rev 2118 | Rev 2125 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2118 Rev 2123
Line 333... Line 333...
333
	path			= /var/lib/sphinx/coste
333
	path			= /var/lib/sphinx/coste
Line 334... Line 334...
334
 
334
 
335
    infix_fields    = texte, titre
335
    infix_fields    = texte, titre
Line -... Line 336...
-
 
336
}
-
 
337
 
-
 
338
 
-
 
339
 
-
 
340
# NVJFL
-
 
341
source nvjfl : common {
-
 
342
	sql_db			= tb_eflore
-
 
343
 
-
 
344
    # note: 66 taxons nvjfl n'ont pas de numéro nomenclatural
-
 
345
	sql_query		= \
-
 
346
        SELECT b.num_nom, num_taxon, nom_sci, GROUP_CONCAT(nom_vernaculaire), \
-
 
347
        "nvjfl" AS group_id, CONCAT("nvjfl-", b.num_nom) as main_id	\
-
 
348
        FROM nvjfl_v2007 n \
-
 
349
        LEFT JOIN bdtfx_v1_02 b ON n.num_taxon = b.num_taxonomique \
-
 
350
        WHERE b.num_nom IS NOT NULL \
-
 
351
        GROUP by num_taxon
-
 
352
 
-
 
353
	sql_field_string	= group_id
-
 
354
	sql_attr_string		= main_id
-
 
355
    sql_attr_uint       = num_taxon
-
 
356
 
-
 
357
	sql_query_info	= SELECT * FROM nvjfl_v2007 WHERE num_taxon=$id
-
 
358
}
-
 
359
 
-
 
360
index i_nvjfl : i_common {
-
 
361
	source			= nvjfl
-
 
362
	path			= /var/lib/sphinx/nvjfl
-
 
363
 
-
 
364
    infix_fields    = texte, titre
-
 
365
}
-
 
366
 
-
 
367
 
-
 
368
 
-
 
369
# COSTE / NVJFL
-
 
370
# source costenvjfl : common {
-
 
371
# 	sql_db			= tb_eflore
-
 
372
 
-
 
373
# 	sql_query		= \
-
 
374
#         SELECT c.flore_bdtfx_nn AS id, c.nom_sci AS titre, dsc.body AS texte, cle.body AS determination, \
-
 
375
#         GROUP_CONCAT(n.nom_vernaculaire) AS nvjfl, n.num_taxon AS num_taxonomique, \
-
 
376
#         "costenvjfl" AS group_id, CONCAT("costenvjfl-", c.flore_bdtfx_nn) as main_id	\
-
 
377
#         FROM tb_eflore.coste_v2_00 c \
-
 
378
#         LEFT JOIN tela_prod_wikini.florecoste_pages dsc ON c.page_wiki_dsc = dsc.tag AND dsc.latest = 'Y' \
-
 
379
#         LEFT JOIN tela_prod_wikini.florecoste_pages cle ON c.page_wiki_cle = cle.tag AND cle.latest = 'Y' \
-
 
380
#         LEFT JOIN bdtfx_v1_02 b ON c.flore_bdtfx_nn = b.num_nom \
-
 
381
#         LEFT JOIN nvjfl_v2007 n ON b.num_taxonomique = n.num_taxon \
-
 
382
#         WHERE c.flore_bdtfx_nn != ''
-
 
383
 
-
 
384
# 	sql_field_string	= group_id
-
 
385
# 	sql_attr_string		= main_id
-
 
386
#     sql_attr_uint       = num_taxonomique
-
 
387
 
-
 
388
# 	sql_query_info	= SELECT * FROM coste_v2_00  WHERE flore_bdtfx_nn=$id
-
 
389
# }
-
 
390
 
-
 
391
# index i_costenvjfl : i_common {
-
 
392
# 	source			= costenvjfl
-
 
393
# 	path			= /var/lib/sphinx/costenvjfl
-
 
394
 
-
 
395
#     infix_fields    = texte, titre
336
}
396
# }
337
 
397
 
338
# notes:
398
# notes:
339
# une nouvelle source d'indexation *DOIT*, pour être utilisable par le moteur de recherche papyrus,
399
# une nouvelle source d'indexation *DOIT*, pour être utilisable par le moteur de recherche papyrus,