Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: search for default language is specified twice #2467

Open
kh4rit opened this issue Mar 31, 2024 · 1 comment
Open

Error: search for default language is specified twice #2467

kh4rit opened this issue Mar 31, 2024 · 1 comment

Comments

@kh4rit
Copy link

kh4rit commented Mar 31, 2024

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.
@DevOpsCraftsman
Copy link

Same issue here…

@kh4rit Di you find a counter-measure for it in the meanwhile?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants