Class Indexes

java.lang.Object
com.atlassian.jira.index.Indexes

@Deprecated(since="10.4", forRemoval=true) @Internal public class Indexes extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
since 10.4 for removal. No replacement for this class. It will remain in Jira 11 for internal usage by Jira while Lucene is a supported search platform. Not intended for use by 3rd party plugins.
Static factory class for creating Index and Index.Manager instances.
Since:
v4.0
  • Method Details

    • createQueuedIndexManager

      @Nonnull public static Index.Manager createQueuedIndexManager(@Nonnull String name, @Nonnull Configuration config, int maxQueueSize)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates an index where the index operations are placed on a queue and the actual work is done on a background thread. Any Index.Result may be waited on to make sure that subsequent searchers will see the result of that update, but you can timeout on that without losing the update.
      Parameters:
      name - used to name the background thread.
      config - that holds the Directory and Analyzer used for indexing and searching.
      maxQueueSize -
      Returns:
      a Index.Manager that has an index configured for queued operations.
    • createSimpleIndexManager

      @Nonnull public static Index.Manager createSimpleIndexManager(String name, @Nonnull Configuration config)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates an index where the index operation work is done in the calling thread. Any Index.Result may be waited on but it will always be a non-blocking operation as it will be complete already. There is no way to timeout these operations.

      The Index write policy is that flushes will only occur when the IndexWriter decides to according to its internal buffering policy, or when the index is closed.

      Parameters:
      config - that holds the Directory and Analyzer used for indexing and searching.
      Returns:
      a Index.Manager that has an index configured for direct operations.
    • createSimpleIndexManager

      @Deprecated @Nonnull public static Index.Manager createSimpleIndexManager(@Nonnull Configuration config)
      Deprecated.
      remove it as part of DBR-107