add excludedmimetypes configuration variable
This commit is contained in:
@@ -5,10 +5,11 @@ topdir=`dirname $0`/..
|
||||
|
||||
initvariables $0
|
||||
|
||||
recollq 'boolean_uniqueterm One OR Two -Three' 2> $mystderr |
|
||||
egrep -v '^Recoll query: ' > $mystdout
|
||||
(
|
||||
recollq 'boolean_uniqueterm One OR Two -Three'
|
||||
|
||||
diff -w ${myname}.txt 2>> $mystderr |
|
||||
egrep -v '^Recoll query: ' >> $mystdout
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
||||
|
||||
@@ -31,3 +31,11 @@ mhmboxquirks = tbird
|
||||
|
||||
[/home/dockes/projets/fulltext/testrecoll/cjk]
|
||||
localfields= ; keyword = ckjtsthuniique; blabla= "some string"
|
||||
|
||||
[/home/dockes/projets/fulltext/testrecoll/idxtypes]
|
||||
indexedmimetypes = text/plain
|
||||
|
||||
[/home/dockes/projets/fulltext/testrecoll/excltypes]
|
||||
excludedmimetypes = text/plain
|
||||
|
||||
|
||||
|
||||
+2
-1
@@ -4,9 +4,10 @@ topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
(
|
||||
# Only
|
||||
recollq filename:testdirfile dir:testrecoll/dir/d1 OR
|
||||
recollq filename:testdirfile dir:testrecoll/dir/d1 OR \
|
||||
dir:testrecoll/dir/d2 -dir:d2
|
||||
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
Executable
+22
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
|
||||
thisdir=`dirname $0`
|
||||
topdir=$thisdir/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
(
|
||||
echo "Should find idxtypes/idxt.txt only"
|
||||
recollq idxtypesunique
|
||||
echo
|
||||
|
||||
echo "Should find idxtypes/idxt.html only"
|
||||
recollq excltypesunique
|
||||
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
||||
@@ -0,0 +1,7 @@
|
||||
Should find idxtypes/idxt.txt only
|
||||
1 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/idxtypes/idxt.txt] [idxt.txt] 16 bytes
|
||||
|
||||
Should find idxtypes/idxt.html only
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/excltypes/idxt.html] [idxt.html] 69 bytes
|
||||
Reference in New Issue
Block a user