XWIKI-9309: Also search in attachments when type is DOCUMENT
* Use dedicated search fields based on the selected search results type.
* Displays dedicated search fields for attachments.