Class AbstractSearch.AbstractBuilder<SELF extends AbstractSearch.AbstractBuilder<SELF>>
java.lang.Object
com.atlassian.confluence.search.v2.AbstractSearch.AbstractBuilder<SELF>
- All Implemented Interfaces:
ISearch.Builder<ISearch>
- Direct Known Subclasses:
ChangesSearch.Builder
,ContentSearch.Builder
,DefaultSearch.Builder
- Enclosing class:
- AbstractSearch
protected abstract static class AbstractSearch.AbstractBuilder<SELF extends AbstractSearch.AbstractBuilder<SELF>>
extends Object
implements ISearch.Builder<ISearch>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected int
protected SearchQuery
protected SearchSort
protected int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongeneratesToken
(boolean generatesToken) Specifies whether the resultingSearchResults.getNextPageSearch()
will be generated with a token.Specifies the targeted indexesSpecifies the targeted indexeslimit
(int limit) Specifies the maximum page size (positive).query
(SearchQuery query) sort
(SearchSort sort) Specifies the sort component of the searchstartOffset
(int startOffset) Specifies the start offset (0 based).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.Builder
build
-
Field Details
-
indices
-
query
-
sort
-
startOffset
protected int startOffset -
limit
protected int limit -
generatesToken
protected boolean generatesToken
-
-
Constructor Details
-
AbstractBuilder
protected AbstractBuilder()
-
-
Method Details
-
copyFrom
-
indices
Description copied from interface:ISearch.Builder
Specifies the targeted indexes- Specified by:
indices
in interfaceISearch.Builder<SELF extends AbstractSearch.AbstractBuilder<SELF>>
- Returns:
- the current builder
-
indices
Description copied from interface:ISearch.Builder
Specifies the targeted indexes- Specified by:
indices
in interfaceISearch.Builder<SELF extends AbstractSearch.AbstractBuilder<SELF>>
- Returns:
- the current builder
-
query
- Specified by:
query
in interfaceISearch.Builder<SELF extends AbstractSearch.AbstractBuilder<SELF>>
-
sort
Description copied from interface:ISearch.Builder
Specifies the sort component of the search- Specified by:
sort
in interfaceISearch.Builder<SELF extends AbstractSearch.AbstractBuilder<SELF>>
- Returns:
- the current builder
-
startOffset
Description copied from interface:ISearch.Builder
Specifies the start offset (0 based).- Specified by:
startOffset
in interfaceISearch.Builder<SELF extends AbstractSearch.AbstractBuilder<SELF>>
- Returns:
- the current builder
-
limit
Description copied from interface:ISearch.Builder
Specifies the maximum page size (positive).- Specified by:
limit
in interfaceISearch.Builder<SELF extends AbstractSearch.AbstractBuilder<SELF>>
- Returns:
- the current builder
-
generatesToken
Description copied from interface:ISearch.Builder
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, since it's costly to always 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, make sure to set this to true.
- Specified by:
generatesToken
in interfaceISearch.Builder<SELF extends AbstractSearch.AbstractBuilder<SELF>>
- Returns:
- the current builder
- See Also:
-