Package com.atlassian.jira.util
Interface LuceneDirectoryUtils
- All Known Implementing Classes:
LuceneDirectoryUtilsImpl
- 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 TypeMethodDescriptionorg.apache.lucene.index.IndexDeletionPolicygetDeletionPolicy(org.apache.lucene.store.Directory directory) Returns theIndexDeletionPolicyfordirectoryorg.apache.lucene.store.DirectorygetDirectory(File path) Creates an index directory for the given path on the filesystem.
-
Method Details
-
getDirectory
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 theIndexDeletionPolicyfordirectory
-