--- label: 'Configuring site search' top_level: true related: - user.permissions - block.place --- {% set search_link_text %}{% trans %}Search{% endtrans %}{% endset %} {% set search_link = render_var(help_route_link(search_link_text, 'search.view')) %} {% set user_overview_topic = render_var(help_topic_link('user.overview')) %}
{% trans %}The core Search module organizes site search into pages. Each page allows users to search a particular type of content with a particular configuration. The configuration includes specifying a URL that starts with search, a name for the page, and additional options for some search page types.{% endtrans %}
{% trans %}When users visit the main search page (see {{ search_link }}), they will see the configured search pages that they have access to. Each search page has a search form on it, and the page will display search results after the user enters keywords into the form and clicks the search button.{% endtrans %}
{% trans %}The core Search module provides the ability to configure search pages; search page types are provided by both core and contributed modules. The core modules that provide search page types are:{% endtrans %}
{% trans %}As an alternative to the core Search module's system of search pages, you can use contributed modules to provide site search. For example, the Apache Solr and Sphinx contributed modules use third-party technology to provide site search.{% endtrans %}
{% trans %}There are two main limitations of the core Search module. First, it is not appropriate for very large sites -- if you have a large site, look into other search technologies like Apache Solr. Second, the Node search page type only supports exact keyword matching, which is not the behavior that most users will expect. You can improve this by installing a language-specific stemming module for your language (such as Porter Stemmer for American English), which makes it so that, for example, a search for the word walk would match pages containing the words walk, walking, and walked.{% endtrans %}
{% trans %}In order to configure site search using the core Search module, you will need to configure one or more search pages. You will also need to verify or alter permissions so that the desired user roles can search the site. (See {{ user_overview_topic }} for more information about roles and permissions.) For content search, you will also need to make sure that the search index is configured and that the site is fully indexed. Finally, you may wish to place the Search form block on pages of your site, or add the search page to a navigation menu, to give users easy access to search. See the related topics listed below for specific tasks.{% endtrans %}