1.1 --- a/iixr.py Sun Aug 30 23:10:32 2009 +0200
1.2 +++ b/iixr.py Sun Aug 30 23:22:51 2009 +0200
1.3 @@ -1082,6 +1082,7 @@
1.4 self.position_counter += 1
1.5 if self.flush_interval and self.position_counter >= self.flush_interval:
1.6 self.flush_terms()
1.7 + self.position_counter = 0
1.8
1.9 def add_field(self, docnum, identifier, value):
1.10
1.11 @@ -1100,6 +1101,7 @@
1.12 self.field_counter += 1
1.13 if self.flush_interval and self.field_counter >= self.flush_interval:
1.14 self.flush_fields()
1.15 + self.field_counter = 0
1.16
1.17 def get_term_writer(self):
1.18