Hi Uros,

Could you give an example of indexing and updating script?

With best regards,
   Alexander Veremyev.

Uros wrote:
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

Reply via email to