fix #4710, export/document searchindex and rsearchindex