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

Adding an index through annotation does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0.0-M6
    • 2.0.0-M7
    • None
    • 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

            Unassigned Unassigned
            elecharny Emmanuel Lécharny
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: