@InjectableComponent public class DefaultLuceneQueryBuilder extends Object implements LuceneQueryBuilder
Constructor and Description |
---|
DefaultLuceneQueryBuilder(QueryVisitor queryVisitor,
LuceneQueryModifier luceneQueryModifier) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.Query |
createLuceneQuery(QueryCreationContext queryCreationContext,
Clause clause)
Converts a JQL
Clause into an lucene Query for searching JIRA lucene index. |
public DefaultLuceneQueryBuilder(QueryVisitor queryVisitor, LuceneQueryModifier luceneQueryModifier)
public org.apache.lucene.search.Query createLuceneQuery(QueryCreationContext queryCreationContext, Clause clause) throws SearchException
LuceneQueryBuilder
Clause
into an lucene Query
for searching JIRA lucene index.createLuceneQuery
in interface LuceneQueryBuilder
queryCreationContext
- the secutiry context under which the lucene query should be generatedclause
- the JQL clause to convert into a lucene queryClause
, Never null.SearchException
- in case of query generation errorCopyright © 2002-2021 Atlassian. All Rights Reserved.