From 559c3675a735d19a45c3ef86a889acfd200b7944 Mon Sep 17 00:00:00 2001 From: RT_Enzyme <52275903001@stu.ecnu.edu.cn> Date: Mon, 17 Apr 2023 19:01:52 +0800 Subject: [PATCH 1/2] fix BooleanQuery document --- src/query/boolean_query/boolean_query.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/query/boolean_query/boolean_query.rs b/src/query/boolean_query/boolean_query.rs index b180008743..e1ecd65f22 100644 --- a/src/query/boolean_query/boolean_query.rs +++ b/src/query/boolean_query/boolean_query.rs @@ -11,8 +11,8 @@ use crate::schema::{IndexRecordOption, Term}; /// `Must` occurrence /// * match none of the sub queries associated with the /// `MustNot` occurrence. -/// * match at least one of the subqueries that is not -/// a `MustNot` occurrence. +/// * match at least one of the sub queries associated +/// with the `Should` occurrence. /// /// /// You can combine other query types and their `Occur`ances into one `BooleanQuery` From a89c2861d9791d67ce28203d7266b6cfb24c5b55 Mon Sep 17 00:00:00 2001 From: Paul Masurel Date: Mon, 17 Apr 2023 21:05:43 +0900 Subject: [PATCH 2/2] Update src/query/boolean_query/boolean_query.rs --- src/query/boolean_query/boolean_query.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query/boolean_query/boolean_query.rs b/src/query/boolean_query/boolean_query.rs index e1ecd65f22..28c1693e3c 100644 --- a/src/query/boolean_query/boolean_query.rs +++ b/src/query/boolean_query/boolean_query.rs @@ -12,7 +12,7 @@ use crate::schema::{IndexRecordOption, Term}; /// * match none of the sub queries associated with the /// `MustNot` occurrence. /// * match at least one of the sub queries associated -/// with the `Should` occurrence. +/// with the `Must` or `Should` occurrence. /// /// /// You can combine other query types and their `Occur`ances into one `BooleanQuery`