|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A SearchProvider in JIRA allows users to run plain-text and arbitrary queries against data as opposed to database (SQL) based queries.
Method Summary | |
List |
search(SearchRequest request,
User searcher)
Deprecated. - please use search(SearchRequest, com.opensymphony.user.User, com.atlassian.jira.web.bean.PagerFilter) instead. |
void |
search(SearchRequest request,
User user,
org.apache.lucene.search.HitCollector hitCollector)
Create a search, and for each match, call hitCollector.collect(). |
SearchResults |
search(SearchRequest request,
User searcher,
PagerFilter pager)
Search the index, and only return issues that are in the pager's range. |
void |
searchAndSort(SearchRequest request,
User user,
DocumentHitCollector hitCollector,
PagerFilter pagerFilter)
For HitCollectors that need the search results to be sorted, use this method. |
long |
searchCount(SearchRequest request,
User searcher)
Return the number of issues matching a search request. |
Method Detail |
public List search(SearchRequest request, User searcher) throws SearchException
search(SearchRequest, com.opensymphony.user.User, com.atlassian.jira.web.bean.PagerFilter)
instead.
GenericValue
issue objects.
SearchException
public SearchResults search(SearchRequest request, User searcher, PagerFilter pager) throws SearchException
Issue
objects, and should not be
used where you need the issue for update. Also note that if you are only after the number of search
results use searchCount(SearchRequest, com.opensymphony.user.User)
as it provides better performance.
pager
- Pager filter (use PagerFilter.getUnlimitedFilter()
to get all issues).
SearchResults
object which basically stores a list or resulting issues.
SearchException
public long searchCount(SearchRequest request, User searcher) throws SearchException
search(SearchRequest, com.opensymphony.user.User, com.atlassian.jira.web.bean.PagerFilter)
SearchException
public void search(SearchRequest request, User user, org.apache.lucene.search.HitCollector hitCollector) throws IOException, SearchException
IOException
SearchException
public void searchAndSort(SearchRequest request, User user, DocumentHitCollector hitCollector, PagerFilter pagerFilter) throws IOException, SearchException
search(SearchRequest, com.opensymphony.user.User, org.apache.lucene.search.HitCollector)
.
You may limit the number of results being collected by the HitCollector using the PagerFilter parameter.
This method is useful if you need to execute a query in constant-memory (i.e. you do not want to load
the results of your complete search into memory).
IOException
SearchException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |