com.atlassian.jira.jql.query
Class DefaultLuceneQueryBuilder

java.lang.Object
  extended by com.atlassian.jira.jql.query.DefaultLuceneQueryBuilder
All Implemented Interfaces:
LuceneQueryBuilder

@InjectableComponent
public class DefaultLuceneQueryBuilder
extends java.lang.Object
implements LuceneQueryBuilder

Creates a Lucene Query from a JQL clause.

Since:
v4.0

Constructor Summary
DefaultLuceneQueryBuilder(QueryRegistry queryRegistry, LuceneQueryModifier luceneQueryModifier)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLuceneQueryBuilder

public DefaultLuceneQueryBuilder(QueryRegistry queryRegistry,
                                 LuceneQueryModifier luceneQueryModifier)
Method Detail

createLuceneQuery

public org.apache.lucene.search.Query createLuceneQuery(QueryCreationContext queryCreationContext,
                                                        Clause clause)
                                                 throws SearchException
Description copied from interface: LuceneQueryBuilder
Converts a JQL Clause into an lucene Query for searching JIRA lucene index.

Specified by:
createLuceneQuery in interface LuceneQueryBuilder
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-2010 Atlassian. All Rights Reserved.