Class DecoratedSearchManager.DecoratedSearch
java.lang.Object
com.atlassian.confluence.internal.search.DecoratedSearchManager.DecoratedSearch
- All Implemented Interfaces:
ISearch
- Enclosing class:
- DecoratedSearchManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.confluence.search.v2.ISearch
ISearch.Builder<SEARCH extends ISearch>
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Specifies whether the resultingSearchResults.getNextPageSearch()
will be generated with a token.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()
IMPORTANT: Use the new getIndices method instead.Returns type of search e.g.getSort()
int
boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.confluence.search.v2.ISearch
withIndices, withLimit, withQuery
-
Method Details
-
getQuery
-
getSort
-
getStartOffset
public int getStartOffset()- Specified by:
getStartOffset
in interfaceISearch
- Returns:
- the start offset (0 based).
-
getLimit
public int getLimit() -
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
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
-
isExplain
public boolean isExplain() -
generatesToken
public boolean generatesToken()Description copied from interface:ISearch
Specifies whether the resultingSearchResults.getNextPageSearch()
will be generated with a token. A search token allows additional searching to be performed against a specific version of the index.Note: for backward compatibility reason, this value only applies to OpenSearch where it's especially costly to generate a token for every search request. On Lucene, this value is currently ignored, i.e. it will continue to generate a token for every search request. This may change in the future, so if you require a token, you should make this return true.
- Specified by:
generatesToken
in interfaceISearch
- Returns:
- true if
SearchResults.getNextPageSearch()
should be generated with a token
-
getSearchIndexes
Description copied from interface:ISearch
IMPORTANT: Use the new getIndices method instead. Specifies which indexes should be targeted for this particular search.- Specified by:
getSearchIndexes
in interfaceISearch
-
getIndices
- Specified by:
getIndices
in interfaceISearch
- Returns:
- a list of indexes should be targeted
-
toBuilder
-