Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-1702

Adding an index through annotation does not work

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M6
    • Fix Version/s: 2.0.0-M7
    • Component/s: None
    • Labels:
      None

      Description

      The added indexes though annotations, like with :

      @CreateDS(name = "ClientApiPerfTestDS", partitions =
      {
      @CreatePartition(
      name = "example",
      suffix = "dc=example,dc=com",
      contextEntry = @ContextEntry(
      entryLdif =
      "dn: dc=example,dc=com\n" +
      "dc: example\n" +
      "objectClass: top\n" +
      "objectClass: domain\n\n"),
      indexes =

      { @CreateIndex(attribute = "objectClass"), @CreateIndex(attribute = "dc"), @CreateIndex(attribute = "ou") }

      )
      })

      does not create any index.

      Injecting new index through the DirectoryServiceFactory does not work either :

      DirectoryServiceFactory dsFactory = DefaultDirectoryServiceFactory.class.newInstance();
      dsFactory.getPartitionFactory().addIndex( systemPartition, "gidNumber", 100 );

      does not add the index for the gidNumber AT.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              elecharny Emmanuel Lecharny
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: