Class DefaultSearchWithToken
- java.lang.Object
-
- com.atlassian.confluence.search.v2.DefaultSearchWithToken
-
- All Implemented Interfaces:
ISearch,SearchWithToken
@Deprecated(since="8.7.0", forRemoval=true) public class DefaultSearchWithToken extends Object implements SearchWithToken
Deprecated, for removal: This API element is subject to removal in a future version.since 8.7.0Usage of this class is discouraged since we are replacing Lucene with OpenSearch
-
-
Constructor Summary
Constructors Constructor Description DefaultSearchWithToken(ISearch delegate, long searchToken)Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Optional<HightlightParams>getHighlight()Deprecated, for removal: This API element is subject to removal in a future version.Provides indication as well as pre/post tag whether query terms should be highlighted in title and body of a search result.List<Index>getIndices()Deprecated, for removal: This API element is subject to removal in a future version.intgetLimit()Deprecated, for removal: This API element is subject to removal in a future version.@NonNull SearchQuerygetQuery()Deprecated, for removal: This API element is subject to removal in a future version.List<String>getSearchAfter()Deprecated, for removal: This API element is subject to removal in a future version.This method is only relevant to OpenSearch.EnumSet<SearchIndex>getSearchIndexes()Deprecated, for removal: This API element is subject to removal in a future version.IMPORTANT: Use the new getIndices method instead.longgetSearchToken()Deprecated, for removal: This API element is subject to removal in a future version.StringgetSearchType()Deprecated, for removal: This API element is subject to removal in a future version.Returns type of search e.g.SearchSortgetSort()Deprecated, for removal: This API element is subject to removal in a future version.intgetStartOffset()Deprecated, for removal: This API element is subject to removal in a future version.booleanisExplain()Deprecated, for removal: This API element is subject to removal in a future version.ISearchwithIndices(List<Index> indices)Deprecated, for removal: This API element is subject to removal in a future version.This method is only applicable forCustomSearchandDefaultSearchA class must implement this method.ISearchwithQuery(SearchQuery query)Deprecated, for removal: This API element is subject to removal in a future version.A class must implement this method.ISearchwithSearchAfter(List<String> searchAfter)Deprecated, for removal: This API element is subject to removal in a future version.This method is only relevant to OpenSearch.
-
-
-
Constructor Detail
-
DefaultSearchWithToken
public DefaultSearchWithToken(ISearch delegate, long searchToken)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Detail
-
getSearchToken
public long getSearchToken()
Deprecated, for removal: This API element is subject to removal in a future version.- 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()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getSort
public SearchSort getSort()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getStartOffset
public int getStartOffset()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getStartOffsetin interfaceISearch- Returns:
- the start offset (0 based).
-
getLimit
public int getLimit()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getSearchType
public String getSearchType()
Deprecated, for removal: This API element is subject to removal in a future version.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()
Deprecated, for removal: This API element is subject to removal in a future version.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()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getSearchIndexes
public EnumSet<SearchIndex> getSearchIndexes()
Deprecated, for removal: This API element is subject to removal in a future version.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
public List<Index> getIndices()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getIndicesin interfaceISearch- Returns:
- a list of indexes should be targeted
-
getSearchAfter
public List<String> getSearchAfter()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ISearchThis method is only relevant to OpenSearch. It does not have any effect if querying against Lucene.- Specified by:
getSearchAfterin interfaceISearch- Returns:
- a list of sorted field values
-
withSearchAfter
public ISearch withSearchAfter(List<String> searchAfter)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ISearchThis method is only relevant to OpenSearch. A class must implement this method. Otherwise, it will have no effect on the search results.- Specified by:
withSearchAfterin interfaceISearch- Parameters:
searchAfter- the searchAfter parameter- Returns:
- a new
ISearchcontaining the searchAfter parameter
-
withIndices
public ISearch withIndices(List<Index> indices)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ISearchThis method is only applicable forCustomSearchandDefaultSearchA class must implement this method. Otherwise, it will have no effect on the search results.- Specified by:
withIndicesin interfaceISearch- Parameters:
indices- the indices to search from- Returns:
- a new
ISearchcontaining the new indices
-
withQuery
public ISearch withQuery(SearchQuery query)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ISearchA class must implement this method. Otherwise, UnsupportedOperationException will be thrown.
-
-