Package com.atlassian.jira.jql.query
Class IssueIdJoinQueryFactory
java.lang.Object
com.atlassian.jira.jql.query.IssueIdJoinQueryFactory
Creates a Lucene query that will restrict result to issues which satisfy query executed on other index.
- Since:
- v6.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.QuerycreateIssueIdJoinQuery(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.
-
Constructor Details
-
IssueIdJoinQueryFactory
-
-
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 indexindexName- the name of the index used in searching. The index name should be provided bySearchProviderFactory. Documents on this index should have theDocumentConstants.ISSUE_IDfield.- Returns:
- a
ScoreMode.AvgLucene query which will filter by issue ids, or aMatchNoDocsQuerywhen exception is caught.
-