From a6b385c8bfaa8770ae5ffbd4e9d48a0c14e0ee14 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sun, 1 Jan 2023 22:32:28 +0000 Subject: [PATCH] Change default query string operator to and --- core/db/elastic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/db/elastic.py b/core/db/elastic.py index 13cd018..c27a771 100644 --- a/core/db/elastic.py +++ b/core/db/elastic.py @@ -146,7 +146,7 @@ class ElasticsearchBackend(StorageBackend): "fuzzy_max_expansions": 50, "fuzzy_prefix_length": 0, # "minimum_should_match": 1, - "default_operator": "or", + "default_operator": "and", "analyzer": "standard", "lenient": True, "boost": 1,