execute search on startup and show preview for first doc.