Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data ESConn = ESConn {}
- data IndexedUserStoreConfig = IndexedUserStoreConfig {
- conn :: ESConn
- additionalConn :: Maybe ESConn
- interpretIndexedUserStoreES :: (Member (Embed IO) r, Member Metrics r) => IndexedUserStoreConfig -> InterpreterFor IndexedUserStore r
- getTeamSizeImpl :: Member (Embed IO) r => IndexedUserStoreConfig -> TeamId -> Sem r TeamSize
- upsertImpl :: forall r. (Member (Embed IO) r, Member Metrics r) => IndexedUserStoreConfig -> DocId -> UserDoc -> VersionControl -> Sem r ()
- updateTeamSearchVisibilityInboundImpl :: forall r. Member (Embed IO) r => IndexedUserStoreConfig -> TeamId -> SearchVisibilityInbound -> Sem r ()
- bulkUpsertImpl :: Member (Embed IO) r => IndexedUserStoreConfig -> [(DocId, UserDoc, VersionControl)] -> Sem r ()
- doesIndexExistImpl :: Member (Embed IO) r => IndexedUserStoreConfig -> Sem r Bool
- searchUsersImpl :: Member (Embed IO) r => IndexedUserStoreConfig -> UserId -> Maybe TeamId -> TeamSearchInfo -> Text -> Int -> Sem r (SearchResult UserDoc)
- defaultUserQuery :: UserId -> Maybe TeamId -> TeamSearchInfo -> Text -> IndexQuery Contact
- paginateTeamMembersImpl :: Member (Embed IO) r => IndexedUserStoreConfig -> BrowseTeamFilters -> Int -> Maybe PagingState -> Sem r (SearchResult UserDoc)
- searchInMainIndex :: forall r. Member (Embed IO) r => IndexedUserStoreConfig -> Search -> Sem r (SearchResult UserDoc)
- queryIndex :: Member (Embed IO) r => IndexedUserStoreConfig -> Int -> IndexQuery x -> Sem r (SearchResult UserDoc)
- teamUserSearchQuery :: TeamId -> Maybe Text -> Maybe RoleFilter -> Maybe TeamUserSearchSortBy -> Maybe TeamUserSearchSortOrder -> IndexQuery TeamContact
- mkUserQuery :: UserId -> Maybe TeamId -> TeamSearchInfo -> Query -> IndexQuery Contact
- termQ :: Text -> Text -> Query
- matchSelf :: UserId -> Maybe Query
- restrictSearchSpace :: Maybe TeamId -> TeamSearchInfo -> Query
- matchTeamMembersOf :: TeamId -> Query
- matchTeamMembersSearchableByAllTeams :: Query
- matchNonTeamMemberUsers :: Query
- matchUsersNotInTeam :: TeamId -> Query
- runInBothES :: Monad m => IndexedUserStoreConfig -> (IndexName -> BH m a) -> m (a, Maybe a)
- mappingName :: MappingName
- boolQuery :: BoolQuery
Documentation
interpretIndexedUserStoreES :: (Member (Embed IO) r, Member Metrics r) => IndexedUserStoreConfig -> InterpreterFor IndexedUserStore r Source #
getTeamSizeImpl :: Member (Embed IO) r => IndexedUserStoreConfig -> TeamId -> Sem r TeamSize Source #
upsertImpl :: forall r. (Member (Embed IO) r, Member Metrics r) => IndexedUserStoreConfig -> DocId -> UserDoc -> VersionControl -> Sem r () Source #
updateTeamSearchVisibilityInboundImpl :: forall r. Member (Embed IO) r => IndexedUserStoreConfig -> TeamId -> SearchVisibilityInbound -> Sem r () Source #
bulkUpsertImpl :: Member (Embed IO) r => IndexedUserStoreConfig -> [(DocId, UserDoc, VersionControl)] -> Sem r () Source #
doesIndexExistImpl :: Member (Embed IO) r => IndexedUserStoreConfig -> Sem r Bool Source #
searchUsersImpl :: Member (Embed IO) r => IndexedUserStoreConfig -> UserId -> Maybe TeamId -> TeamSearchInfo -> Text -> Int -> Sem r (SearchResult UserDoc) Source #
defaultUserQuery :: UserId -> Maybe TeamId -> TeamSearchInfo -> Text -> IndexQuery Contact Source #
The default or canonical IndexQuery
.
The intention behind parameterising queryIndex
over the IndexQuery
is that
it allows to experiment with different queries (perhaps in an A/B context).
FUTUREWORK: Drop legacyPrefixMatch
paginateTeamMembersImpl :: Member (Embed IO) r => IndexedUserStoreConfig -> BrowseTeamFilters -> Int -> Maybe PagingState -> Sem r (SearchResult UserDoc) Source #
searchInMainIndex :: forall r. Member (Embed IO) r => IndexedUserStoreConfig -> Search -> Sem r (SearchResult UserDoc) Source #
queryIndex :: Member (Embed IO) r => IndexedUserStoreConfig -> Int -> IndexQuery x -> Sem r (SearchResult UserDoc) Source #
teamUserSearchQuery :: TeamId -> Maybe Text -> Maybe RoleFilter -> Maybe TeamUserSearchSortBy -> Maybe TeamUserSearchSortOrder -> IndexQuery TeamContact Source #
mkUserQuery :: UserId -> Maybe TeamId -> TeamSearchInfo -> Query -> IndexQuery Contact Source #
restrictSearchSpace :: Maybe TeamId -> TeamSearchInfo -> Query Source #
See TeamSearchInfo
matchTeamMembersOf :: TeamId -> Query Source #
matchUsersNotInTeam :: TeamId -> Query Source #
runInBothES :: Monad m => IndexedUserStoreConfig -> (IndexName -> BH m a) -> m (a, Maybe a) Source #