Class DefaultSearchWithToken
- java.lang.Object
-
- com.atlassian.confluence.search.v2.DefaultSearchWithToken
-
- All Implemented Interfaces:
ISearch
,SearchWithToken
public class DefaultSearchWithToken extends Object implements SearchWithToken
-
-
Constructor Summary
Constructors Constructor Description DefaultSearchWithToken(ISearch delegate, long searchToken)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
@NonNull SearchQuery
getQuery()
EnumSet<SearchIndex>
getSearchIndexes()
Specifies which indexes should be targeted for this particular search.long
getSearchToken()
String
getSearchType()
Returns type of search e.g.SearchSort
getSort()
int
getStartOffset()
boolean
isExplain()
-
-
-
Constructor Detail
-
DefaultSearchWithToken
public DefaultSearchWithToken(ISearch delegate, long searchToken)
-
-
Method Detail
-
getSearchToken
public long getSearchToken()
- Specified by:
getSearchToken
in interfaceSearchWithToken
- Returns:
- a search token that allows additional searching to be performed against a specific version of the index (perhaps older version).
-
getQuery
public @NonNull SearchQuery getQuery()
-
getSort
public SearchSort getSort()
-
getStartOffset
public int getStartOffset()
- Specified by:
getStartOffset
in interfaceISearch
- Returns:
- the start offset (0 based).
-
getLimit
public int getLimit()
-
getSearchType
public String getSearchType()
Description copied from interface:ISearch
Returns type of search e.g. SiteSearch, RecentUpdate, NetworkFeed, BlogUpdate, which can be used by search manager to switch between different implementations to support incremental roll out.- Specified by:
getSearchType
in interfaceISearch
- Returns:
- type of search
-
getHighlight
public Optional<HightlightParams> getHighlight()
Description copied from interface:ISearch
Provides indication as well as pre/post tag whether query terms should be highlighted in title and body of a search result. SeeSearchResult.getDisplayTitleWithHighlights()
andSearchResult.getResultExcerptWithHighlights()
.- Specified by:
getHighlight
in interfaceISearch
-
getSearchIndexes
public EnumSet<SearchIndex> getSearchIndexes()
Description copied from interface:ISearch
Specifies which indexes should be targeted for this particular search.- Specified by:
getSearchIndexes
in interfaceISearch
-
-