Search results only for the current language I have a site with 4 languages and am using the builtin search to look for content on the site. How is it possible to restrict the search results only to the currently selected language?

I tried looking into Configuration > Search Pages, but do not see any way how to do that there.
The "Advanced" core search has this built in. If you prefer to do this from a theme - you could do it with form_alter. This basically hides the advanced search settings and sets current language as the only language to get results from, in the search block and search page.

Alternately you can just allow users to control which language they want to get results from and simply allow them to use advanced search.

Code for theme:

/**
 * Implements hook_form_FORM_ID_alter().
 */
function hook_form_search_form_alter(&amp;$form, &amp;$form_state) {
  $form['help_link']['#access'] = FALSE;
  $form['advanced']['#access'] = FALSE;
  $form['basic']['keys']['#title'] = '';
  $manager = \Drupal::languageManager();
  $form['advanced']['lang-fieldset']['language']['#default_value'] = [$manager-&gt;getCurrentLanguage()-&gt;getId()];
}

/**
 * Implements hook_form_FORM_ID_alter().
 */
function hook_form_search_block_form_alter(&amp;$form, &amp;$form_state) {
  $manager = \Drupal::languageManager();

  $form['advanced-form'] = [
    '#type' =&gt; 'hidden',
    '#value' =&gt; 1,
  ];
  $form['f[0]'] = [
    '#type' =&gt; 'hidden',
    '#value' =&gt; 'language:' . $manager-&gt;getCurrentLanguage()-&gt;getId(),
  ];
}