From 5fe801a7d1b42beee4d172fe9b89393c4364061a Mon Sep 17 00:00:00 2001 From: rnitta Date: Thu, 3 Oct 2019 11:35:42 +0900 Subject: [PATCH] fix Search::use_boolean_and documents --- book-example/src/format/config.md | 2 +- src/config.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/book-example/src/format/config.md b/book-example/src/format/config.md index c1c7bb14..81db7a01 100644 --- a/book-example/src/format/config.md +++ b/book-example/src/format/config.md @@ -190,7 +190,7 @@ Available configuration options for the `[output.html.search]` table: - **teaser-word-count:** The number of words used for a search result teaser. Defaults to `30`. - **use-boolean-and:** Define the logical link between multiple search words. If - true, all search words must appear in each result. Defaults to `true`. + true, all search words must appear in each result. Defaults to `false`. - **boost-title:** Boost factor for the search result score if a search word appears in the header. Defaults to `2`. - **boost-hierarchy:** Boost factor for the search result score if a search word diff --git a/src/config.rs b/src/config.rs index 29e662bb..9713bace 100644 --- a/src/config.rs +++ b/src/config.rs @@ -504,7 +504,7 @@ pub struct Search { /// The number of words used for a search result teaser. Default: `30`. pub teaser_word_count: u32, /// Define the logical link between multiple search words. - /// If true, all search words must appear in each result. Default: `true`. + /// If true, all search words must appear in each result. Default: `false`. pub use_boolean_and: bool, /// Boost factor for the search result score if a search word appears in the header. /// Default: `2`.