search-index now accepts javascript objects instead of JSON strings