Merge pull request #1047 from rnitta/patch-1

Fix Search::use_boolean_and documents
This commit is contained in:
Eric Huss 2019-10-04 12:39:05 -07:00 committed by GitHub
commit 09c738468f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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. - **teaser-word-count:** The number of words used for a search result teaser.
Defaults to `30`. Defaults to `30`.
- **use-boolean-and:** Define the logical link between multiple search words. If - **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 - **boost-title:** Boost factor for the search result score if a search word
appears in the header. Defaults to `2`. appears in the header. Defaults to `2`.
- **boost-hierarchy:** Boost factor for the search result score if a search word - **boost-hierarchy:** Boost factor for the search result score if a search word

View File

@ -504,7 +504,7 @@ pub struct Search {
/// The number of words used for a search result teaser. Default: `30`. /// The number of words used for a search result teaser. Default: `30`.
pub teaser_word_count: u32, pub teaser_word_count: u32,
/// Define the logical link between multiple search words. /// 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, pub use_boolean_and: bool,
/// Boost factor for the search result score if a search word appears in the header. /// Boost factor for the search result score if a search word appears in the header.
/// Default: `2`. /// Default: `2`.