com.atlassian.jira.jql.query
Interface LuceneQueryBuilder

All Known Implementing Classes:
DefaultLuceneQueryBuilder

@InjectableComponent
public interface LuceneQueryBuilder

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

Since:
v4.0

Method Summary
 org.apache.lucene.search.Query createLuceneQuery(QueryCreationContext queryCreationContext, Clause clause)
          Converts a JQL Clause into an lucene Query for searching JIRA lucene index.
 

Method Detail

createLuceneQuery

org.apache.lucene.search.Query createLuceneQuery(QueryCreationContext queryCreationContext,
                                                 Clause clause)
                                                 throws SearchException
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


Copyright © 2002-2012 Atlassian. All Rights Reserved.