1.1 --- a/test.py Sun Aug 30 21:29:10 2009 +0200
1.2 +++ b/test.py Sun Aug 30 23:10:32 2009 +0200
1.3 @@ -282,7 +282,7 @@
1.4 print doc_positions == dp, doc_positions, dp
1.5 rd.close()
1.6
1.7 -# Test high-level index operations.
1.8 +# Test high-level index operations (including merging).
1.9
1.10 docs = [
1.11 (1, "The cat sat on the mat"),
1.12 @@ -301,7 +301,7 @@
1.13 ]
1.14
1.15 index = iixr.Index("test_index")
1.16 -wi = index.get_writer(3)
1.17 +wi = index.get_writer(3, 6)
1.18 for docnum, text in docs:
1.19 for position, term in enumerate(text.split()):
1.20 wi.add_position(term, docnum, position)