From d5485b6fdb9f31246202f9cd24c5211ae172a8a7 Mon Sep 17 00:00:00 2001 From: Monika Michalska <153922997+monikamichalska@users.noreply.github.com> Date: Wed, 13 Nov 2024 10:40:56 +0100 Subject: [PATCH] [DOCS-7266] Update phrase search description in Search Enterprise 4.0 (#1597) --- search-enterprise/latest/using/index.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/search-enterprise/latest/using/index.md b/search-enterprise/latest/using/index.md index 24c452fb4b..9a0be22dd2 100644 --- a/search-enterprise/latest/using/index.md +++ b/search-enterprise/latest/using/index.md @@ -104,6 +104,12 @@ The whole phrase will be tokenized before the search according to the appropriat "big yellow banana" ``` +The behavior for phrase queries with Alfresco Search Enterprise (Elasticsearch) differs from Alfresco Search Services (Solr). + +With Solr, searching for multiple terms in a phrase query returns results where all terms exist in any order. For example, searching “scary fish” returns results for “scary gigantic fish” and also “it’s OK if you have a fish, but scary if you don’t”. + +With Elasticsearch searching for multiple terms in a phrase query returns results where all terms exist in the order supplied. For example, searching “scary fish” returns results for “there are scary fish in the water” but not “scary gigantic fish” or “it’s OK if you have a fish, but scary if you don’t”. An alternative is to search “scary AND fish” to find results where both terms occur in any order. See [Search for conjunctions](#search-for-conjunctions) for more information. + ## Search for wildcards Wildcards are supported in terms, phrases, and exact phrases using `*` to match zero, one, or more characters and `?` to match a single character.