Interface TemporaryIndexProvider

All Known Implementing Classes:
DefaultTemporaryIndexProvider

@ExperimentalApi @Internal @Deprecated(since="10.4") public interface TemporaryIndexProvider
Deprecated.
since 10.4, it only supports Lucene index which is deprecated. No replacement to support other search platforms e.g. OpenSearch.
Provides a personal, temporary lucene index that you can query against. Each call creates a new temporary index that is stored on disk. It's is automatically removed when the call ends.
Since:
v6.4
  • Method Details

    • indexIssuesAndSearch

      @Nullable <T> T indexIssuesAndSearch(@Nonnull Collection<? extends Issue> issues, @Nonnull TemporaryIndexProvider.IndexSearcher<T> indexSearcher) throws SearchException
      Deprecated.
      Create a temporary index, run the callback and return the computed value
      Parameters:
      issues - issues that will be indexed into the lucene index
      indexSearcher - callback for querying the index
      Returns:
      result of the callback
      Throws:
      SearchException - if unable to compute a result of the search