writer.commit()
ix.close()
What do you mean by "not able to search any data"? Is there an error, or
are the results empty? In the listing you put on dpaste, the actual
adding of documents is hidden inside an "adddoc" function. Anything
interesting going on in there? Can you reduce the problem to a test case?
Thanks,
Matt
I'm guessing it has something to do with merging. So it would only
show up when you create a writer and add documents more than once, e.g.
w1 = index.writer()
w1.add_document(...)
w1.commit()
w2 = index.writer()
w2.add_document(...)
w2.commit()
I'll try to reproduce the problem here this weekend. I hope we can get
to the bottom of this quickly.
Thanks!
Matt
I should have said, either merging, or multi-searching (where the
index has multiple segments and the reader composites them). I'll try
to recreate both conditions and see if I can see what you're getting.
Mat
I've got a test case, it seems to be a problem with MultiReader
(yikes!). Will try to figure out a fix right away.
Matt