-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.sh
More file actions
executable file
·34 lines (31 loc) · 887 Bytes
/
index.sh
File metadata and controls
executable file
·34 lines (31 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
#
# Lancement de l'indexation du Littre avec Alix
#
# Ne pas modifier les 2 lignes suivantes, merci
WEBINF=web-app/WEB-INF
CP="$WEBINF/lib/alix-3.5.0.jar:$WEBINF/lib/lucene-core-3.5.0.jar:$WEBINF/lib/javacrim-lucene.jar:$WEBINF/lib/sqlitejdbc-v056.jar:$WEBINF/classes"
# Rajouter ici sa personnalisation
case $1 in
defaut)
ANALYZER_OPT='-analyzer fr.crim.littre.lucene.LittreAnalyzer'
INDEX_DIR=$WEBINF/index
XSL_FILE='transform/littre_alix.xsl'
;;
example)
ANALYZER_OPT=''
INDEX_DIR=$WEBINF/index/example
XSL_FILE='transform/littre_alix_example.xsl'
;;
search)
ANALYZER_OPT=''
INDEX_DIR=$WEBINF/index/search
XSL_FILE='transform/littre_alix_search.xsl'
;;
*)
echo 'usage: index.sh {defaut|example|search}'
exit;
;;
esac
# Lancement de la commande
java -cp $CP fr.crim.lucene.alix.Alix $ANALYZER_OPT -dir $INDEX_DIR -xsl $XSL_FILE index xml