Package com.liferay.portal.kernel.search
Class SearchContext
Object
com.liferay.portal.kernel.search.SearchContext
- All Implemented Interfaces:
Serializable
- Author:
- Brian Wing Shun Chan, Julio Camarero
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddFullQueryEntryClassName(String entryClassName) voidvoidlong[]String[]long[]getAttribute(String name) long[]long[]longintgetEnd()String[]long[]String[]long[]long[]longString[]floatSort[]getSorts()intgetStart()getStats()longbooleanbooleanstatic booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisLike()booleanstatic com.liferay.petra.lang.SafeCloseablestatic com.liferay.petra.lang.SafeCloseableopenBatchMode(boolean commit) voidoverrideKeywords(String keywords) static voidregisterBatchModeSyncCallable(Callable<Void> callable) static voidregisterBatchModeSyncFuture(Future<?> future) voidsetAndSearch(boolean andSearch) voidsetAssetCategoryIds(long[] assetCategoryIds) voidsetAssetTagNames(String[] assetTagNames) voidsetAssetVocabularyIds(long[] assetVocabularyIds) voidsetAttribute(String name, Serializable value) voidsetAttributes(Map<String, Serializable> attributes) voidsetBooleanClauses(BooleanClause<Query>[] booleanClauses) voidsetCategoryIds(long[] categoryIds) voidsetClassTypeIds(long[] classTypeIds) voidsetCommitImmediately(boolean commitImmediately) voidsetCompanyId(long companyId) voidsetEnd(int end) voidsetEntryClassNames(String[] entryClassNames) voidvoidsetFolderIds(long[] folderIds) voidsetFolderIds(List<Long> folderIds) voidsetGroupBy(GroupBy groupBy) voidsetGroupIds(long[] groupIds) voidsetIncludeAttachments(boolean includeAttachments) voidsetIncludeDiscussions(boolean includeDiscussions) voidsetIncludeFolders(boolean includeFolders) voidsetIncludeInternalAssetCategories(boolean includeInternalAssetCategories) voidsetIncludeLiveGroups(boolean includeLiveGroups) voidsetIncludeStagingGroups(boolean includeStagingGroups) voidsetKeywords(String keywords) voidvoidsetLike(boolean like) voidvoidsetNodeIds(long[] nodeIds) voidsetOwnerUserId(long ownerUserId) voidsetPortletIds(String[] portletIds) voidsetScopeStrict(boolean scopeStrict) voidsetScoresThreshold(float scoresThreshold) voidvoidsetStart(int start) voidsetTimeZone(TimeZone timeZone) voidsetUserId(long userId) static voidunregisterBatchModeSyncFuture(Future<?> future)
-
Constructor Details
-
SearchContext
public SearchContext()
-
-
Method Details
-
isBatchMode
public static boolean isBatchMode() -
openBatchMode
public static com.liferay.petra.lang.SafeCloseable openBatchMode() -
openBatchMode
public static com.liferay.petra.lang.SafeCloseable openBatchMode(boolean commit) -
registerBatchModeSyncCallable
-
registerBatchModeSyncFuture
-
unregisterBatchModeSyncFuture
-
addFacet
-
addFullQueryEntryClassName
-
addStats
-
clearFullQueryEntryClassNames
public void clearFullQueryEntryClassNames() -
getAssetCategoryIds
public long[] getAssetCategoryIds() -
getAssetTagNames
-
getAssetVocabularyIds
public long[] getAssetVocabularyIds() -
getAttribute
-
getAttributes
-
getBooleanClauses
-
getCategoryIds
public long[] getCategoryIds() -
getClassTypeIds
public long[] getClassTypeIds() -
getCompanyId
public long getCompanyId() -
getEnd
public int getEnd() -
getEntryClassNames
-
getFacet
-
getFacets
-
getFolderIds
public long[] getFolderIds() -
getFullQueryEntryClassNames
-
getGroupBy
-
getGroupIds
public long[] getGroupIds() -
getKeywords
-
getLanguageId
-
getLayout
-
getLocale
-
getNodeIds
public long[] getNodeIds() -
getOwnerUserId
public long getOwnerUserId() -
getPortletIds
-
getQueryConfig
-
getScoresThreshold
public float getScoresThreshold() -
getSorts
-
getStart
public int getStart() -
getStats
-
getStats
-
getTimeZone
-
getUserId
public long getUserId() -
hasOverridenKeywords
public boolean hasOverridenKeywords() -
isAndSearch
public boolean isAndSearch() -
isCommitImmediately
public boolean isCommitImmediately() -
isIncludeAttachments
public boolean isIncludeAttachments() -
isIncludeDiscussions
public boolean isIncludeDiscussions() -
isIncludeFolders
public boolean isIncludeFolders() -
isIncludeInternalAssetCategories
public boolean isIncludeInternalAssetCategories() -
isIncludeLiveGroups
public boolean isIncludeLiveGroups() -
isIncludeStagingGroups
public boolean isIncludeStagingGroups() -
isLike
public boolean isLike() -
isScopeStrict
public boolean isScopeStrict() -
overrideKeywords
-
setAndSearch
public void setAndSearch(boolean andSearch) -
setAssetCategoryIds
public void setAssetCategoryIds(long[] assetCategoryIds) -
setAssetTagNames
-
setAssetVocabularyIds
public void setAssetVocabularyIds(long[] assetVocabularyIds) -
setAttribute
-
setAttributes
-
setBooleanClauses
-
setCategoryIds
public void setCategoryIds(long[] categoryIds) -
setClassTypeIds
public void setClassTypeIds(long[] classTypeIds) -
setCommitImmediately
public void setCommitImmediately(boolean commitImmediately) -
setCompanyId
public void setCompanyId(long companyId) -
setEnd
public void setEnd(int end) -
setEntryClassNames
-
setFacets
-
setFolderIds
-
setFolderIds
public void setFolderIds(long[] folderIds) -
setGroupBy
-
setGroupIds
public void setGroupIds(long[] groupIds) -
setIncludeAttachments
public void setIncludeAttachments(boolean includeAttachments) -
setIncludeDiscussions
public void setIncludeDiscussions(boolean includeDiscussions) -
setIncludeFolders
public void setIncludeFolders(boolean includeFolders) -
setIncludeInternalAssetCategories
public void setIncludeInternalAssetCategories(boolean includeInternalAssetCategories) -
setIncludeLiveGroups
public void setIncludeLiveGroups(boolean includeLiveGroups) -
setIncludeStagingGroups
public void setIncludeStagingGroups(boolean includeStagingGroups) -
setKeywords
-
setLayout
-
setLike
public void setLike(boolean like) -
setLocale
-
setNodeIds
public void setNodeIds(long[] nodeIds) -
setOwnerUserId
public void setOwnerUserId(long ownerUserId) -
setPortletIds
-
setScopeStrict
public void setScopeStrict(boolean scopeStrict) -
setScoresThreshold
public void setScoresThreshold(float scoresThreshold) -
setSorts
-
setStart
public void setStart(int start) -
setTimeZone
-
setUserId
public void setUserId(long userId)
-