Class OpenSearchAnySearchDAO

java.lang.Object
org.apache.syncope.core.persistence.common.dao.AbstractAnySearchDAO
org.apache.syncope.core.persistence.opensearch.dao.OpenSearchAnySearchDAO
All Implemented Interfaces:
AnySearchDAO

public class OpenSearchAnySearchDAO extends AbstractAnySearchDAO
Search engine implementation for users, groups and any objects, based on OpenSearch.
  • Field Details

    • client

      protected final org.opensearch.client.opensearch.OpenSearchClient client
    • indexMaxResultWindow

      protected final int indexMaxResultWindow
  • Constructor Details

  • Method Details

    • getAdminRealmsFilter

      protected Triple<Optional<org.opensearch.client.opensearch._types.query_dsl.Query>,Set<String>,Set<String>> getAdminRealmsFilter(Realm base, boolean recursive, Set<String> adminRealms, AnyTypeKind kind)
    • getQuery

      protected org.opensearch.client.opensearch._types.query_dsl.Query getQuery(Realm base, boolean recursive, Set<String> adminRealms, SearchCond cond, AnyTypeKind kind)
    • doCount

      protected long doCount(Realm base, boolean recursive, Set<String> adminRealms, SearchCond cond, AnyTypeKind kind)
      Specified by:
      doCount in class AbstractAnySearchDAO
    • sortBuilders

      protected List<org.opensearch.client.opensearch._types.SortOptions> sortBuilders(AnyTypeKind kind, Stream<org.springframework.data.domain.Sort.Order> orderBy)
    • doSearch

      protected <T extends Any<?>> List<T> doSearch(Realm base, boolean recursive, Set<String> adminRealms, SearchCond cond, org.springframework.data.domain.Pageable pageable, AnyTypeKind kind)
      Specified by:
      doSearch in class AbstractAnySearchDAO
    • getQuery

      protected org.opensearch.client.opensearch._types.query_dsl.Query getQuery(SearchCond cond, AnyTypeKind kind)
    • getQuery

      protected org.opensearch.client.opensearch._types.query_dsl.Query getQuery(AnyTypeCond cond)
    • getQuery

      protected org.opensearch.client.opensearch._types.query_dsl.Query getQuery(RelationshipTypeCond cond)
    • getQuery

      protected org.opensearch.client.opensearch._types.query_dsl.Query getQuery(RelationshipCond cond)
    • getQuery

      protected org.opensearch.client.opensearch._types.query_dsl.Query getQuery(MembershipCond cond)
    • getQuery

      protected org.opensearch.client.opensearch._types.query_dsl.Query getQuery(RoleCond cond)
    • getQuery

      protected org.opensearch.client.opensearch._types.query_dsl.Query getQuery(PrivilegeCond cond)
    • getQuery

      protected org.opensearch.client.opensearch._types.query_dsl.Query getQuery(DynRealmCond cond)
    • getQuery

      protected org.opensearch.client.opensearch._types.query_dsl.Query getQuery(MemberCond cond)
    • getQuery

      protected org.opensearch.client.opensearch._types.query_dsl.Query getQuery(AuxClassCond cond)
    • getQuery

      protected org.opensearch.client.opensearch._types.query_dsl.Query getQuery(ResourceCond cond)
    • fillAttrQuery

      protected org.opensearch.client.opensearch._types.query_dsl.Query fillAttrQuery(PlainSchema schema, PlainAttrValue attrValue, AttrCond cond)
    • getQuery

      protected org.opensearch.client.opensearch._types.query_dsl.Query getQuery(AttrCond cond, AnyTypeKind kind)
    • getQuery

      protected org.opensearch.client.opensearch._types.query_dsl.Query getQuery(AnyCond cond, AnyTypeKind kind)
    • getQueryForCustomConds

      protected org.opensearch.client.opensearch._types.query_dsl.Query getQueryForCustomConds(SearchCond cond, AnyTypeKind kind)