summaryrefslogtreecommitdiff
path: root/logical_search.py
diff options
context:
space:
mode:
Diffstat (limited to 'logical_search.py')
-rw-r--r--logical_search.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/logical_search.py b/logical_search.py
index 805ec22..3ebaee5 100644
--- a/logical_search.py
+++ b/logical_search.py
@@ -86,6 +86,16 @@ class Corpus(object):
... reference=None,
... )
... )
+ >>> c.add_doc(Document(
+ ... docid=3,
+ ... tags=set(['urgent']),
+ ... properties=[
+ ... ('author', 'Scott'),
+ ... ('subject', 'car turning in front of you')
+ ... ],
+ ... reference=None,
+ ... )
+ ... )
>>> c.query('author:Scott and important')
{1}
"""