XWIKI-9796: Mark default 'Result Type' (Document) in facets as selected
XWIKI-9795: Better way to handle advanced search options
* Filter search results based on the current language. We use the 'locales' field which is computed dynamically especialy for this. Note that the 'Language' facet uses a different field, 'locale'.