Fix search in collection and document

The search plugin supports limiting the search in current document and/or collection. This setting get's lost after the search results are listet. A follow-up search will search in all available documents and collections.

This fix gets the document or collection UID from the available facet search metadata.