[xappy] r614 committed - xappy/unittests/cached_searches.py: Test that replacing a...

1 view
Skip to first unread message

xa...@googlecode.com

unread,
Mar 30, 2010, 1:18:40 PM3/30/10
to xappy-...@googlegroups.com
Revision: 614
Author: boulton.rj
Date: Tue Mar 30 10:17:27 2010
Log: xappy/unittests/cached_searches.py: Test that replacing a
document when using store_only=True drops the document from
cached queries.
http://code.google.com/p/xappy/source/detail?r=614

Modified:
/trunk/ChangeLog
/trunk/xappy/unittests/cached_searches.py

=======================================
--- /trunk/ChangeLog Tue Mar 30 10:09:23 2010
+++ /trunk/ChangeLog Tue Mar 30 10:17:27 2010
@@ -1,3 +1,9 @@
+Tue Mar 30 17:16:10 GMT 2010 Richard Boulton <ric...@tartarus.org>
+
+ * xappy/unittests/cached_searches.py: Test that replacing a
+ document when using store_only=True drops the document from
+ cached queries.
+
Tue Mar 30 17:08:58 GMT 2010 Richard Boulton <ric...@tartarus.org>

* xappy/indexerconnection.py: If a document is replaced with
=======================================
--- /trunk/xappy/unittests/cached_searches.py Wed Jan 27 07:29:29 2010
+++ /trunk/xappy/unittests/cached_searches.py Tue Mar 30 10:17:27 2010
@@ -80,7 +80,12 @@
self.assertRaises(xappy.IndexerError, iconn.delete, '10')
iconn.set_cache_manager(man)

- iconn.delete('10')
+ doc = xappy.UnprocessedDocument()
+ doc.append('text', 'hello')
+ doc.append('f1', str(16 % 5))
+ doc.append('f2', 16 % 7)
+ doc.id = '10'
+ iconn.replace(doc, store_only=True)
iconn.flush()

# Now, try making the cache internal, opening a new indexer
connection

Reply all
Reply to author
Forward
0 new messages