handle search index (WIP)