com.atlassian.jira.issue.search.providers
Class LuceneSearchProvider

java.lang.Object
  extended bycom.atlassian.jira.issue.search.providers.LuceneSearchProvider
All Implemented Interfaces:
SearchProvider

public class LuceneSearchProvider
extends java.lang.Object
implements SearchProvider


Field Summary
protected  org.apache.log4j.Category log
           
 
Constructor Summary
LuceneSearchProvider()
           
 
Method Summary
 org.apache.lucene.search.Hits getHitsForCounts(SearchRequest request, com.opensymphony.user.User user)
           
 java.util.Collection search(SearchRequest request, com.opensymphony.user.User searchUser)
          Returns null if there are no Lucene parameters, otherwise returns a collection of Lucene Document objects.
 long searchCount(SearchRequest request, com.opensymphony.user.User user)
           
 TwoDimensionalStatsMap searchCountMap(SearchRequest request, com.opensymphony.user.User searcher, StatisticsMapper xAxisStatsMapper, StatisticsMapper yAxisStatsMapper)
           
 java.util.Map searchCountMap(SearchRequest request, com.opensymphony.user.User searcher, java.lang.String groupField)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.apache.log4j.Category log
Constructor Detail

LuceneSearchProvider

public LuceneSearchProvider()
Method Detail

search

public java.util.Collection search(SearchRequest request,
                                   com.opensymphony.user.User searchUser)
                            throws SearchException
Returns null if there are no Lucene parameters, otherwise returns a collection of Lucene Document objects.

The collection has 0 results if there are no matches.

Specified by:
search in interface SearchProvider
Throws:
SearchException

searchCount

public long searchCount(SearchRequest request,
                        com.opensymphony.user.User user)
                 throws SearchException
Specified by:
searchCount in interface SearchProvider
Throws:
SearchException

getHitsForCounts

public org.apache.lucene.search.Hits getHitsForCounts(SearchRequest request,
                                                      com.opensymphony.user.User user)
                                               throws SearchException
Specified by:
getHitsForCounts in interface SearchProvider
Throws:
SearchException

searchCountMap

public java.util.Map searchCountMap(SearchRequest request,
                                    com.opensymphony.user.User searcher,
                                    java.lang.String groupField)
                             throws SearchException
Specified by:
searchCountMap in interface SearchProvider
Throws:
SearchException

searchCountMap

public TwoDimensionalStatsMap searchCountMap(SearchRequest request,
                                             com.opensymphony.user.User searcher,
                                             StatisticsMapper xAxisStatsMapper,
                                             StatisticsMapper yAxisStatsMapper)
                                      throws SearchException
Specified by:
searchCountMap in interface SearchProvider
Throws:
SearchException


Copyright © 2002-2005 Atlassian. All Rights Reserved.