public class LuceneSearchResults extends Object implements SearchResults
Modifier and Type | Field and Description |
---|---|
static LuceneSearchResults |
EMPTY_RESULTS |
Constructor and Description |
---|
LuceneSearchResults(List<? extends SearchResult> luceneResult,
int unfilteredResultsCount) |
LuceneSearchResults(List<? extends SearchResult> luceneResult,
int unfilteredResultsCount,
SearchWithToken nextPageSearch,
List<String> searchWords) |
Modifier and Type | Method and Description |
---|---|
List<SearchResult> |
getAll()
Creates a new list containing all returned search results.
|
SearchWithToken |
getNextPageSearch() |
List<String> |
getSearchWords() |
int |
getUnfilteredResultsCount()
Get the number of search results before being passed through any filter.
|
boolean |
isLastPage() |
Iterator<SearchResult> |
iterator()
Gets an iterator to run through the returned search results.
|
void |
setSearchWords(List<String> searchWords) |
int |
size()
Get the number of search results included in this object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public static final LuceneSearchResults EMPTY_RESULTS
public LuceneSearchResults(List<? extends SearchResult> luceneResult, int unfilteredResultsCount)
public LuceneSearchResults(List<? extends SearchResult> luceneResult, int unfilteredResultsCount, SearchWithToken nextPageSearch, List<String> searchWords)
public int getUnfilteredResultsCount()
getUnfilteredResultsCount
in interface SearchResults
public int size()
SearchResults
size
in interface SearchResults
public Iterator<SearchResult> iterator()
SearchResults
iterator
in interface SearchResults
iterator
in interface Iterable<SearchResult>
public List<SearchResult> getAll()
SearchResults
getAll
in interface SearchResults
public List<String> getSearchWords()
getSearchWords
in interface SearchResults
public SearchWithToken getNextPageSearch()
getNextPageSearch
in interface SearchResults
public boolean isLastPage()
isLastPage
in interface SearchResults
Copyright © 2003–2015 Atlassian. All rights reserved.