com.atlassian.jira.issue.search.util
Class LuceneQueryCreator

java.lang.Object
  extended by com.atlassian.jira.issue.search.util.LuceneQueryCreator

public class LuceneQueryCreator
extends Object


Constructor Summary
LuceneQueryCreator(SearchProviderFactory searchProviderFactory, PermissionManager permissionManager)
           
 
Method Summary
 org.apache.lucene.search.Query getQueryFromSearchRequest(SearchRequest request, User searchUser)
          Converts the search request (i.e.
 org.apache.lucene.search.SortField[] getSearchSorts(SearchRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneQueryCreator

public LuceneQueryCreator(SearchProviderFactory searchProviderFactory,
                          PermissionManager permissionManager)
Method Detail

getQueryFromSearchRequest

public org.apache.lucene.search.Query getQueryFromSearchRequest(SearchRequest request,
                                                                User searchUser)
                                                         throws SearchException,
                                                                IOException
Converts the search request (i.e. its parameters) to a Lucene Query which can then be executed against the Lucene index to find issues.

Parameters:
request - search request
searchUser - user performing this search
Returns:
query
Throws:
SearchException - if search error occurs
IOException - if I/O error occurs

getSearchSorts

public org.apache.lucene.search.SortField[] getSearchSorts(SearchRequest request)


Copyright © 2002-2008 Atlassian. All Rights Reserved.