We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6184162 commit 671e93aCopy full SHA for 671e93a
libs/wire-subsystems/src/Wire/IndexedUserStore/ElasticSearch.hs
@@ -223,6 +223,11 @@ defaultUserQuery searcher mSearcherTeamId teamSearchInfo (normalized -> term') =
223
}
224
],
225
ES.boolQueryShouldMatch = [ES.QueryExistsQuery (ES.FieldName "handle")],
226
+ -- The following matches both where searchable is true
227
+ -- or where the field is missing. There didn't seem to
228
+ -- be a more readable way to express
229
+ -- "not(exists(searchable) or searchable = true" in
230
+ -- Elastic Search.
231
ES.boolQueryMustNotMatch = [ES.TermQuery (ES.Term "searchable" "false") Nothing]
232
233
-- This reduces relevance on users not in team of search by 90% (no
0 commit comments