@Component public class SearchService extends Object
Constructor and Description |
---|
SearchService(SearchManager searchManager,
SpaceService spaceService,
com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager) |
Modifier and Type | Method and Description |
---|---|
SearchResults |
spaces(String titleOrSpaceKey,
boolean spacesWithRetentionPoliciesOnly)
Method performs full-text search of the Spaces based on provided space titleOrSpaceKey using lucene index.
|
@Autowired public SearchService(SearchManager searchManager, SpaceService spaceService, @Qualifier(value="darkFeatureManager") com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager)
public SearchResults spaces(String titleOrSpaceKey, boolean spacesWithRetentionPoliciesOnly) throws InvalidSearchException
titleOrSpaceKey
- - title or space key of the space. Wildcard search is performed against the title AND space keyspacesWithRetentionPoliciesOnly
- - true
if search needs to be performed only among spaces with
overridden retention rulesSearchResults
with all the spaces with retention rules, which satisfy titleOrSpaceKey
criteriaInvalidSearchException
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences