Fixed bug with AIP search metadata viewer.

fixes #4681

Fixed bug with the AIP search metadata viewer which was a result of the
incorrect ElasticSearch type being searched for.