diff options
author | Benjamin Saller <bcsaller@objectrealms.net> | 2007-07-22 17:42:48 (GMT) |
---|---|---|
committer | Benjamin Saller <bcsaller@objectrealms.net> | 2007-07-22 17:42:48 (GMT) |
commit | 64b7f95ba456e4c2e00b9c866804b71435203e07 (patch) | |
tree | dcb7470f3b7b766576e98f84509493d95eed48cc /tests | |
parent | ab19f19116433362051e988a9e5709018f5c4ad0 (diff) |
OR style support on dicts was missing after the rewrite. Added
Diffstat (limited to 'tests')
-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() |