XWIKI-9259: Solr search page should manipulate locale and locales fields instead of the deprecated lang field
* Use 'locales' for filtering and 'locale' for determining the language/locale of a search result.
XWIKI-9295: Don't include the language parameter in the search result URL if it matches the current language
(cherry picked from commit d0bc89dfd9c90d1b1a2954ae689335fbdd6d31ee)