public class DefaultSearchWithToken extends Object implements SearchWithToken
Constructor and Description |
---|
DefaultSearchWithToken(ISearch delegate,
long searchToken) |
Modifier and Type | Method and Description |
---|---|
Optional<HightlightParams> |
getHighlight()
Provides indication as well as pre/post tag whether query terms should be highlighted in title and body of a
search result.
|
int |
getLimit() |
SearchQuery |
getQuery() |
ResultFilter |
getResultFilter()
Returns the result filter component of the search.
|
SearchFilter |
getSearchFilter() |
long |
getSearchToken() |
String |
getSearchType()
Returns type of search e.g.
|
SearchSort |
getSort() |
int |
getStartOffset() |
boolean |
isExplain() |
public DefaultSearchWithToken(ISearch delegate, long searchToken)
public long getSearchToken()
getSearchToken
in interface SearchWithToken
public SearchQuery getQuery()
public SearchSort getSort()
public SearchFilter getSearchFilter()
getSearchFilter
in interface ISearch
public ResultFilter getResultFilter()
ISearch
Note: if a non-null ResultFilter is returned here, it will override ISearch.getStartOffset()
and ISearch.getLimit()
getResultFilter
in interface ISearch
public int getStartOffset()
getStartOffset
in interface ISearch
public int getLimit()
public String getSearchType()
ISearch
getSearchType
in interface ISearch
public Optional<HightlightParams> getHighlight()
ISearch
SearchResult.getDisplayTitleWithHighlights()
and SearchResult.getResultExcerptWithHighlights()
.getHighlight
in interface ISearch
Copyright © 2003–2021 Atlassian. All rights reserved.