diff options
Diffstat (limited to 'tests/xapianindex.txt')
-rw-r--r-- | tests/xapianindex.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/xapianindex.txt b/tests/xapianindex.txt index 5638851..22aa05d 100644 --- a/tests/xapianindex.txt +++ b/tests/xapianindex.txt @@ -67,6 +67,23 @@ As well as quoted strings >>> assert expect_single(im.search(r'''"Don't peek"''')).id == uid + +We can also issue OR styled queries over a given field by submitting +a list of queries to a given field. + +>>> assert expect_single(im.search(dict(mime_type=["text/plain", +... 'application/pdf']))).id == uid + + +But an OR query for missing values still return nothing. + +>>> expect_none(im.search(dict(mime_type=["video/mpg", +... 'audio/ogg']))) + + + + + Cleanly shut down. >>> im.stop() |