# Article Language and Search

**URL:** <https://forum.xwiki.org/t/article-language-and-search/3837>\
**Category:** Help / Discuss\
**Created:** [October 31, 2018, 8:05am UTC](https://forum.xwiki.org/t/article-language-and-search/3837 "2018-10-31T08:05:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GOhrner](https://forum.xwiki.org/user_avatar/forum.xwiki.org/gohrner/32/4966_2.png) [@GOhrner](https://forum.xwiki.org/u/GOhrner)\
**Post date:** [October 31, 2018, 8:05am UTC](https://forum.xwiki.org/t/article-language-and-search/3837/1 "2018-10-31T08:05:33Z")

</div>

When starting to use our Wiki, I still had default language settings configured, which meant that the Wiki defaulted to English.

Meanwhile I switched the language to German. It’s no multilingual Wiki, only German content.

Now I just noticed that Search is basically “not working” for all pages created until I switched the language, as those older pages are (wrongly) marked as “English language” and the Search by default only includes German language pages…

If I manually include English language pages in the search, the wrongly-tagged pages are found as desired.

Is there any way to fix the language meta data of that older pages (after finding [How do I change or set a language on a page?](https://forum.xwiki.org/t/how-do-i-change-or-set-a-language-on-a-page/2834) I fear there isn’t yet :-/ ) or to configure the Search to include all languages by default?

I just noticed the language selector in CKEditor - could it help? Currently however, it only offers

- Arabic
- French
- Spanish

None of these languages is configured in Xwiki administration page however (the default was English and I just added German and made it default). Where does this language list come from, and how can I change it to include German and English?

---

<div class="post-metadata">

**Author:** ![mflorea](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mflorea/32/49_2.png) [@mflorea](https://forum.xwiki.org/u/mflorea)\
**Post date:** [October 31, 2018, 9:42am UTC](https://forum.xwiki.org/t/article-language-and-search/3837/2 "2018-10-31T09:42:23Z")

</div>

> [@GOhrner](#):
>
> Is there any way to fix the language meta data of that older pages

Is you don’t have that many pages then you can:

- enable multilingual mode
- go to each page, edit and change the Default Language as indicated on [https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/PageEditing#HDefaultLanguage](https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/PageEditing#HDefaultLanguage)
- disable the multilingual mode back

Otherwise you need a script. I don’t know is there is such a script. One place to look for is [https://snippets.xwiki.org](https://snippets.xwiki.org) .

> [@GOhrner](#):
>
> configure the Search to include all languages by default

Edit `Main.SolrSearchConfig`, look for `facetQuery` and remove the line that sets the `locale` filter.

> [@GOhrner](#):
>
> I just noticed the language selector in CKEditor - could it help?

That is used to mark a paragraph from your page as being written in a different language than the page itself (your page is in German and you insert a quote that is in French). The list of languages that appear on this drop down can be configured from the WYSIWYG editor administration section.

---

<div class="post-metadata">

**Author:** ![GOhrner](https://forum.xwiki.org/user_avatar/forum.xwiki.org/gohrner/32/4966_2.png) [@GOhrner](https://forum.xwiki.org/u/GOhrner)\
**Post date:** [October 31, 2018, 11:34am UTC](https://forum.xwiki.org/t/article-language-and-search/3837/3 "2018-10-31T11:34:49Z")

</div>

Thanks a lot. The Wiki still has sufficiently few pages so manually updating the default language it was feasible and the simplest solution.

After redindexing, the search works much better now, so I do not need to adjust the Solr query.

Concerning the language drop down in CKEditor, I was not able to successfully locate the config option:

> **[XWiki](http://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor%20Integration/#HAdministrationSection)**
>
> XWiki for sharing information

Or do I have to configure it using the “Advanced Configuration” text field? I searched the CKEditor extension page and Xwiki Internationalisation pages for hint, but without success. Where does the default list of “Arabic, French, Spanish” come from? Is it just CKEditor’s default - but as a default that’s an somewhat uncommon language selection. 🙂

---

<div class="post-metadata">

**Author:** ![mflorea](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mflorea/32/49_2.png) [@mflorea](https://forum.xwiki.org/u/mflorea)\
**Post date:** [November 2, 2018, 10:57am UTC](https://forum.xwiki.org/t/article-language-and-search/3837/4 "2018-11-02T10:57:18Z")

</div>

> [@GOhrner](#):
>
> Or do I have to configure it using the “Advanced Configuration” text field?

Yes, you need to use the “Advanced Configuration” text area. CKEditor and its plugins have a huge number of configuration options so we can’t expose all of them in the administration section. See [Class Config (CKEDITOR.config) | CKEditor 4 API docs](https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-language_list)

> Defaults to `['ar:Arabic:rtl', 'fr:French', 'es:Spanish']`

That is just the default from CKEditor. We didn’t overwrite it.
