@InjectableComponent public interface

LuceneQueryBuilder

com.atlassian.jira.jql.query.LuceneQueryBuilder
Known Indirect Subclasses

Class Overview

Converts a JQL query into an lucene query for searching JIRA lucene index. This should be used over using the QueryVisitor directly

Summary

Public Methods
Query createLuceneQuery(QueryCreationContext queryCreationContext, Clause clause)
Converts a JQL Clause into an lucene Query for searching JIRA lucene index.

Public Methods

public Query createLuceneQuery (QueryCreationContext queryCreationContext, Clause clause)

Converts a JQL Clause into an lucene Query for searching JIRA lucene index.

Parameters
queryCreationContext the secutiry context under which the lucene query should be generated
clause the JQL clause to convert into a lucene query
Returns
  • the lucene query generated from the Clause, Never null.
Throws
SearchException in case of query generation error