Class CustomSearch
- java.lang.Object
-
- com.atlassian.confluence.search.v2.AbstractSearch
-
- com.atlassian.confluence.search.v2.CustomSearch
-
- All Implemented Interfaces:
ISearch
@Deprecated(since="8.7.0", forRemoval=true) public class CustomSearch extends AbstractSearch
Deprecated, for removal: This API element is subject to removal in a future version.since 8.7.0Represents a search against custom index. Please should useDefaultSearch
instead- Since:
- 7.17
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.search.v2.AbstractSearch
indices, limit, query, searchAfter, sort, startOffset
-
-
Constructor Summary
Constructors Constructor Description CustomSearch(@NonNull SearchQuery query, SearchSort sort)
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a search against custom indexes.CustomSearch(@NonNull SearchQuery query, SearchSort sort, int startOffset, int limit)
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a search against custom indexes.CustomSearch(List<Index> indices, @NonNull SearchQuery query, SearchSort sort, int startOffset, int limit)
Deprecated, for removal: This API element is subject to removal in a future version.CustomSearch(List<Index> indices, @NonNull SearchQuery query, SearchSort sort, int startOffset, int limit, List<String> searchAfter)
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 ISearch
withIndices(List<Index> indices)
Deprecated, for removal: This API element is subject to removal in a future version.This method is only applicable forCustomSearch
andDefaultSearch
A class must implement this method.ISearch
withQuery(SearchQuery query)
Deprecated, for removal: This API element is subject to removal in a future version.A class must implement this method.ISearch
withSearchAfter(List<String> searchAfter)
Deprecated, for removal: This API element is subject to removal in a future version.This method is only relevant to OpenSearch.-
Methods inherited from class com.atlassian.confluence.search.v2.AbstractSearch
equals, getIndices, getLimit, getQuery, getSearchAfter, getSearchIndexes, getSort, getStartOffset, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.search.v2.ISearch
getHighlight, getSearchType, isExplain
-
-
-
-
Constructor Detail
-
CustomSearch
public CustomSearch(@NonNull SearchQuery query, SearchSort sort)
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a search against custom indexes. The maximum number of results returned will be a system provided default.- Parameters:
query
- the non-null query to perform against custom indexsort
- how to order the results of thequery
- Since:
- 7.20
-
CustomSearch
public CustomSearch(@NonNull SearchQuery query, SearchSort sort, int startOffset, int limit)
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a search against custom indexes.- Parameters:
query
- the non-null query to perform against custom indexsort
- how to order the results of thequery
startOffset
- the zero-based offset of the first content result to returnlimit
- the maximum number content results to return- Since:
- 7.20
-
CustomSearch
public CustomSearch(List<Index> indices, @NonNull SearchQuery query, SearchSort sort, int startOffset, int limit)
Deprecated, for removal: This API element is subject to removal in a future version.- Since:
- 8.7.0
-
CustomSearch
public CustomSearch(List<Index> indices, @NonNull SearchQuery query, SearchSort sort, int startOffset, int limit, List<String> searchAfter)
Deprecated, for removal: This API element is subject to removal in a future version.- Since:
- 8.7.0
-
-
Method Detail
-
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:ISearch
This method is only relevant to OpenSearch. A class must implement this method. Otherwise, it will have no effect on the search results.- Parameters:
searchAfter
- the searchAfter parameter- Returns:
- a new
ISearch
containing the searchAfter parameter - Since:
- 8.7.0
-
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:ISearch
This method is only applicable forCustomSearch
andDefaultSearch
A class must implement this method. Otherwise, it will have no effect on the search results.- Parameters:
indices
- the indices to search from- Returns:
- a new
ISearch
containing the new indices - Since:
- 8.7.0
-
withQuery
public ISearch withQuery(SearchQuery query)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ISearch
A class must implement this method. Otherwise, UnsupportedOperationException will be thrown.- Parameters:
query
- the query to be added to the search object- Returns:
- a new
ISearch
containing the new query - Since:
- 8.7.0
-
-