Skip to content

Commit f162e54

Browse files
Jieikupeterprototypes
authored andcommitted
Fix multi-lingual json index (getzola#2197)
* Fix multi-ligual json index * multi-lingual search Fix cargo fmt
1 parent c5e6b9b commit f162e54

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

components/site/src/lib.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -787,11 +787,7 @@ impl Site {
787787
}
788788

789789
fn index_for_lang(&self, lang: &str) -> Result<()> {
790-
let index_json = search::build_index(
791-
&self.config.default_language,
792-
&self.library.read().unwrap(),
793-
&self.config,
794-
)?;
790+
let index_json = search::build_index(lang, &self.library.read().unwrap(), &self.config)?;
795791
let (path, content) = match &self.config.search.index_format {
796792
IndexFormat::ElasticlunrJson => {
797793
let path = self.output_path.join(format!("search_index.{}.json", lang));

0 commit comments

Comments
 (0)