Add a JSON response to searches#index Fixes #498