Interface LuceneDirectoryUtils

All Known Implementing Classes:
LuceneDirectoryUtilsImpl

@Internal @InjectableComponent public interface LuceneDirectoryUtils
Since:
v5.0 Platform-specific interface intended for the Lucene search platform only. Jira Search exposes a common API backed by multiple search engines. This interface bypasses that abstraction and couples callers to Lucene internals. Internal use only.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.lucene.index.IndexDeletionPolicy
    getDeletionPolicy(org.apache.lucene.store.Directory directory)
    Returns the IndexDeletionPolicy for directory
    org.apache.lucene.store.Directory
    Creates an index directory for the given path on the filesystem.
  • Method Details

    • getDirectory

      org.apache.lucene.store.Directory getDirectory(File path)
      Creates an index directory for the given path on the filesystem.
      Parameters:
      path - to the index directory.
      Returns:
      an implementation of Directory
      Throws:
      IOException - if there is a problem when creating the index directory for the given path.
    • getDeletionPolicy

      org.apache.lucene.index.IndexDeletionPolicy getDeletionPolicy(org.apache.lucene.store.Directory directory)
      Returns the IndexDeletionPolicy for directory