Parent: [25ff72] (diff)

Child: [d29719] (diff)

Download this file

indexedmimetypes.sh    59 lines (44 with data), 942 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/sh
topdir=`dirname $0`/..
. $topdir/shared.sh
initvariables $0
RECOLL_CONFDIR=$topdir/$myname
export RECOLL_CONFDIR
logfilename=$toptmp/$myname.log
sharedconf() {
cat > recoll.conf <<EOF
topdirs = $tstdata/html $tstdata/txt
logfilename=$logfilename
loglevel = 6
EOF
}
###########
# End boilerplate
sharedconf
cat >> recoll.conf <<EOF
indexedmimetypes = text/plain
indexallfilenames = 0
EOF
recollindex -z
(
# text files are indexed
recollq shorty
# html ones are not (not even the names)
recollq qtextedit
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
sharedconf
cat >> recoll.conf <<EOF
indexedmimetypes = text/plain
indexallfilenames = 1
EOF
recollindex -z
(
# text files are indexed
recollq shorty
# html ones are not (but the names are)
recollq qtextedit
recollq template
) 2> $mystderr | egrep -v '^Recoll query: ' >> $mystdout
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
checkresult
rm -f index.pid