add onlyNames config variable for filtering file names

This commit is contained in:
Jean-Francois Dockes
2019-06-17 08:28:14 +02:00
parent be81082f38
commit 45043b816f
12 changed files with 189 additions and 275 deletions
+3
View File
@@ -66,3 +66,6 @@ excludedmimetypes = text/plain
[/home/dockes/projets/fulltext/testrecoll/excludehtml]
indexedmimetypes = application/pdf
[/home/dockes/projets/fulltext/testrecoll/onlynames]
onlyNames = *.matchesonepat *.matchestwopat
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
topdir=`dirname $0`/..
. $topdir/shared.sh
initvariables $0
(
recollq -S url -q onlynametestkeyword
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
checkresult
+3
View File
@@ -0,0 +1,3 @@
2 results
text/plain [file:///home/dockes/projets/fulltext/testrecoll/onlynames/subdir/fn.matchesonepat] [fn.matchesonepat] 20 bytes
text/plain [file:///home/dockes/projets/fulltext/testrecoll/onlynames/subdir/fn.matchestwopat] [fn.matchestwopat] 20 bytes