Add flattenSearchResponse to stub index pattern