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