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> -
Field Summary
Fields inherited from interface com.atlassian.confluence.search.v2.ISearch
ENABLE_LUCENE_QUERY_EXPLAIN -
Method Summary
Modifier and TypeMethodDescriptionbooleanSpecifies 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.intgetLimit()@NonNull SearchQuerygetQuery()IMPORTANT: Use the new getIndices method instead.Returns type of search e.g.getSort()intbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.search.v2.ISearch
withIndices, withLimit, withQuery
-
Method Details
-
getQuery
-
getSort
-
getStartOffset
public int getStartOffset()- Specified by:
getStartOffsetin interfaceISearch- Returns:
- the start offset (0 based).
-
getLimit
public int getLimit() -
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
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
-
isExplain
public boolean isExplain() -
generatesToken
public boolean generatesToken()Description copied from interface:ISearchSpecifies 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:
generatesTokenin interfaceISearch- Returns:
- true if
SearchResults.getNextPageSearch()should be generated with a token
-
getSearchIndexes
Description copied from interface:ISearchIMPORTANT: Use the new getIndices method instead. Specifies which indexes should be targeted for this particular search.- Specified by:
getSearchIndexesin interfaceISearch
-
getIndices
- Specified by:
getIndicesin interfaceISearch- Returns:
- a list of indexes should be targeted
-
toBuilder
-