fixes #148 Search get's cleared when documents are locked