Skip to content

Error: search for default language is specified twice #2467

Open
@kh4rit

Description

@kh4rit

Bug Report

Environment

Zola version: 0.18.0

Expected Behavior

$ zola build should build the website without errors.

Current Behavior

Upon $ zola build the following error is raised:

Error: Failed to build the site
Error: `search` for default language is specified twice, as Search { include_title: true, include_content: true, truncate_content_length: None, include_description: false, include_path: false, index_format: ElasticlunrJson } and Search { include_title: true, include_content: true, truncate_content_length: None, include_description: false, include_path: false, index_format: ElasticlunrJavascript }.

Step to reproduce

  1. Create a new project with $ zola init, agree to activation of search index.
  2. Add the following lines to config.toml:
search.index_format = "elasticlunr_json"
[languages.en.translations]
  1. Run $ zola build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions