1.1 --- a/test.py Wed Sep 30 22:02:51 2009 +0200
1.2 +++ b/test.py Thu Oct 01 00:22:35 2009 +0200
1.3 @@ -421,8 +421,8 @@
1.4 (["sea", "shore"], [(36, [6, 7])])
1.5 ]
1.6
1.7 -index = Index("test_index")
1.8 -wi = index.get_writer(3, 2, 6)
1.9 +index = Index("test_index", 3, 2, 3, 6)
1.10 +wi = index.get_writer()
1.11 for docnum, text in docs:
1.12 doc = Document(docnum)
1.13 for position, term in enumerate(text.split()):
1.14 @@ -465,8 +465,8 @@
1.15 # Test index updates.
1.16
1.17 index = Index("test_index")
1.18 -index2 = Index("test_index2")
1.19 -wi = index2.get_writer(3, 2, 6)
1.20 +index2 = Index("test_index2", 3, 2, 3, 6)
1.21 +wi = index2.get_writer()
1.22 for docnum, text in docs:
1.23
1.24 # Add the same documents but with different numbers.