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.intgetLimit()@NonNull SearchQuerygetQuery()EnumSet<SearchIndex>getSearchIndexes()Specifies which indexes should be targeted for this particular search.longgetSearchToken()StringgetSearchType()Returns type of search e.g.SearchSortgetSort()intgetStartOffset()booleanisExplain()
-
-
-
Constructor Detail
-
DefaultSearchWithToken
public DefaultSearchWithToken(ISearch delegate, long searchToken)
-
-
Method Detail
-
getSearchToken
public long getSearchToken()
- Specified by:
getSearchTokenin 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:
getStartOffsetin interfaceISearch- Returns:
- the start offset (0 based).
-
getLimit
public int getLimit()
-
getSearchType
public String getSearchType()
Description copied from interface:ISearchReturns 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:
getSearchTypein interfaceISearch- Returns:
- type of search
-
getHighlight
public Optional<HightlightParams> getHighlight()
Description copied from interface:ISearchProvides 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:
getHighlightin interfaceISearch
-
getSearchIndexes
public EnumSet<SearchIndex> getSearchIndexes()
Description copied from interface:ISearchSpecifies which indexes should be targeted for this particular search.- Specified by:
getSearchIndexesin interfaceISearch
-
-