Implement anchored searches: terms to be found at a maximum distance of the start or end of the text
This commit is contained in:
Executable
+31
@@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
(
|
||||
for q in \
|
||||
'"^anchortermeaudebut"' \
|
||||
'"^ anchortermeunpeuplusloin"' \
|
||||
'"^anchortermeunpeuplusloin"o30' \
|
||||
'"^ anchortermeunpeuplusloin"o30' \
|
||||
'"anchortermenullepart"' \
|
||||
'"^anchortermenullepart"' \
|
||||
'"anchortermenullepart $"' \
|
||||
'"anchortermeunpeumoinsloin$"o30' \
|
||||
'"anchortermeunpeumoinsloin$"' \
|
||||
'"anchortermealafin$"' \
|
||||
'title:"^anchortitlebegin"' \
|
||||
'title:"^anchortitleend"' \
|
||||
'title:"anchortitleend$"' \
|
||||
; do
|
||||
echo $q
|
||||
recollq -q $q
|
||||
done
|
||||
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
||||
@@ -0,0 +1,34 @@
|
||||
"^anchortermeaudebut"
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes
|
||||
"^ anchortermeunpeuplusloin"
|
||||
0 results
|
||||
"^anchortermeunpeuplusloin"o30
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes
|
||||
"^ anchortermeunpeuplusloin"o30
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes
|
||||
"anchortermenullepart"
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes
|
||||
"^anchortermenullepart"
|
||||
0 results
|
||||
"anchortermenullepart $"
|
||||
0 results
|
||||
"anchortermeunpeumoinsloin$"o30
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes
|
||||
"anchortermeunpeumoinsloin$"
|
||||
0 results
|
||||
"anchortermealafin$"
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes
|
||||
title:"^anchortitlebegin"
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes
|
||||
title:"^anchortitleend"
|
||||
0 results
|
||||
title:"anchortitleend$"
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes
|
||||
Reference in New Issue
Block a user