mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Yannick Lecaillez
05.38.2016 eeed545264e26d4f8d417047adc77432a30e968a
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/AttributeIndex.java
@@ -486,33 +486,37 @@
   */
  boolean isIndexed(org.opends.server.types.IndexType indexType)
  {
    Set<IndexType> indexTypes = config.getIndexType();
    switch (indexType)
    {
    case PRESENCE:
      return indexTypes.contains(IndexType.PRESENCE);
      return isIndexed(IndexType.PRESENCE);
    case EQUALITY:
      return indexTypes.contains(IndexType.EQUALITY);
      return isIndexed(IndexType.EQUALITY);
    case SUBSTRING:
    case SUBINITIAL:
    case SUBANY:
    case SUBFINAL:
      return indexTypes.contains(IndexType.SUBSTRING);
      return isIndexed(IndexType.SUBSTRING);
    case GREATER_OR_EQUAL:
    case LESS_OR_EQUAL:
      return indexTypes.contains(IndexType.ORDERING);
      return isIndexed(IndexType.ORDERING);
    case APPROXIMATE:
      return indexTypes.contains(IndexType.APPROXIMATE);
      return isIndexed(IndexType.APPROXIMATE);
    default:
      return false;
    }
  }
  boolean isIndexed(IndexType indexType)
  {
    return config.getIndexType().contains(indexType);
  }
  /**
   * Update the attribute index for a new entry.
   *