It tooked me some time today to find an
error in one of our customer applications.
The LotusScript function db,search didn't found all the documents the customer expected. After looking at the item properties of one of the missing documents we found the reason.
One item from our search didn't had the item flag SUMMARY. Normally this flag indicates whether an item could be shown in a view or not.
It seams that db.search also checks for this item.
After we found the reason it was easy to write a little agent so set the SUMMARY flag again.