Hi, 

i'm trying to find what may be a problem when updating documents. For now I
don't have a clue. Here is my scenario.

1. open index
1.1 also add setMaxBufferedDocs(1) and setMaxMergeDocs(1)
2. find by document_id (this is indexed)
3. if found delete this document
4. create document from data
5. add document to index
6. commit
7. unset index

If I open index with luke I see that document stored. Then I update some
other, maybe same document. 
And here is the problem. When searching for document_id document is not
found (it's also not found when
searching on front page) so document is added with previous one. 

If I call optimize it helps, but I have two same documents in index. If I
update it again both of them gets deleted and then add one document.

Is there something I'm doing wrong?

regards
Uros
-- 
View this message in context: 
http://www.nabble.com/Zend_Search_Lucene---updating-documents-tf3325986s16154.html#a9246813
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to