Class IssueIdJoinQueryFactory

java.lang.Object
com.atlassian.jira.jql.query.IssueIdJoinQueryFactory

public class IssueIdJoinQueryFactory extends Object
Creates a Lucene query that will restrict result to issues which satisfy query executed on other index.
Since:
v6.4
  • Constructor Details

  • Method Details

    • createIssueIdJoinQuery

      public org.apache.lucene.search.Query createIssueIdJoinQuery(org.apache.lucene.search.Query indexQuery, String indexName)
      Creates a Lucene query that will restrict result to issues which satisfy query executed on other index.
      Parameters:
      indexQuery - the Lucene query that will be executed on the passed index
      indexName - the name of the index used in searching. The index name should be provided by SearchProviderFactory. Documents on this index should have the DocumentConstants.ISSUE_ID field.
      Returns:
      a ScoreMode.Avg Lucene query which will filter by issue ids, or a MatchNoDocsQuery when exception is caught.