From c9c857c057e9893e45dc1263bf82cd8694f3b76a Mon Sep 17 00:00:00 2001 From: Scott Reynolds Date: Wed, 15 Feb 2012 09:52:20 -0800 Subject: [PATCH] more interesting search/indexing in readme --- README.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 29f8c61..3da5c5a 100644 --- a/README.rst +++ b/README.rst @@ -22,6 +22,8 @@ With that installed you are now ready to interact with it via the python console >>> import searchers.searcher as s >>> idx = indexer.Indexer() >>> idx.index_url('http://www.mongodb.org/display/DOCS/Philosophy') ->>> s.Searcher().search('database power') +>>> idx.index_url('http://www.mongodb.org/display/DOCS/Use+Cases') +>>> [(x['document']['title'], x['score']) for x in s.Searcher().search('cloud')] +>>> [(x['document']['title'], x['score']) for x in s.Searcher().search('database power')]