When a search term is a fully quoted string, we want to avoid stemming if it is supported by the search backend. For Postgres, it does provide a feature by which if we use the "simple" search config, then no stemming is performed and an exact match with the word is done without having to resort to LIKE queries. Unfortunately, for ES/OS this is not an option because the message field is a text field, which means ES/OS will analyze it, stem it and store it in its root form. Therefore, no exact match can be possible with ES/OS. The only solution here is to have yet another keyword field for message which will store it in its raw form. But this will effectively double the disk storage for post indices and not a good design choice. Ref: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-term-query.html#avoid-term-query-text-fields https://mattermost.atlassian.net/browse/MM-60790 ```release-note NONE ``` * re-arrange the tests to run only on DB ```release-note NONE ``` --------- Co-authored-by: Mattermost Build <build@mattermost.com>