unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob 3c166f7e38b2c99389a8577a10c522440fdd2f70 1339 bytes (raw)
name: test/qparser.expected-output/probs 	 # note: path name is non-authoritative(*)

 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
 
(x OR y) AND z
[lex]    BRA "x" OR "y" KET AND "z"
[parse]  (AND (OR "x" "y") "z")
[gen]    ((x:(pos=1) OR y:(pos=2)) AND z:(pos=3))

# Incompatible; Xapian bails on the syntax error, we forge ahead.
(x OR y)) AND z
[lex]    BRA "x" OR "y" KET KET AND "z"
[parse]  (AND (OR "x" "y") "z")
[gen]    ((x:(pos=1) OR y:(pos=2)) AND z:(pos=3))
[xapian] (x:(pos=1) AND or:(pos=2) AND y:(pos=3) AND and:(pos=4) AND z:(pos=5))

# Empty subexpression after prefix
# Incompatible; Xapian treats as a syntax error.
prob:() AND x
[lex]    PREFIX/prob BRA KET AND "x"
[parse]  "x"
[gen]    x:(pos=1)
[xapian] (prob:(pos=1) AND and:(pos=2) AND x:(pos=3))

# Subqueries with same boolean prefix
lit:x lit:y
[lex]    PREFIX/lit "x" PREFIX/lit "y"
[parse]  (FILTER (OR (PREFIX/lit 'x') (PREFIX/lit 'y')))
[gen]    0 * (Lx OR Ly)

# Combining prob components
x -y lit:z
[lex]    "x" HATE "y" PREFIX/lit "z"
[parse]  (AND (AND "x" (FILTER (PREFIX/lit 'z'))) (NOT "y"))
[gen]    ((x:(pos=1) FILTER Lz) AND_NOT y:(pos=2))

x lit:z
[lex]    "x" PREFIX/lit "z"
[parse]  (AND "x" (FILTER (PREFIX/lit 'z')))
[gen]    (x:(pos=1) FILTER Lz)

-y lit:z
[lex]    HATE "y" PREFIX/lit "z"
[parse]  (AND (FILTER (PREFIX/lit 'z')) (NOT "y"))
[gen]    (0 * Lz AND_NOT y:(pos=1))

x -y
[lex]    "x" HATE "y"
[parse]  (AND "x" (NOT "y"))
[gen]    (x:(pos=1) AND_NOT y:(pos=2))

debug log:

solving 3c166f7 ...
found 3c166f7 in https://yhetil.org/notmuch/20110121063714.GI13226@mit.edu/

applying [1/1] https://yhetil.org/notmuch/20110121063714.GI13226@mit.edu/
diff --git a/test/qparser.expected-output/probs b/test/qparser.expected-output/probs
new file mode 100644
index 0000000..3c166f7

Checking patch test/qparser.expected-output/probs...
Applied patch test/qparser.expected-output/probs cleanly.

index at:
100644 3c166f7e38b2c99389a8577a10c522440fdd2f70	test/qparser.expected-output/probs

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).