Quantcast
Viewing latest article 2
Browse Latest Browse All 279

Confluence 8.0 plugin, searchFilter deprecated / removed

With Confluence Version 8.0 the:

import com.atlassian.confluence.search.v2.searchfilter.SiteSearchPermissionsSearchFilter;

has been removed and the docs say:

com.atlassian.confluence.search.v2.searchfilter (use the equivalent class that extends SearchQuery in 8.0)

Which is now the right way to create a searchQuery / searchFilter?

Current (Deprecated) Code:

import com.atlassian.confluence.search.v2.query.BooleanQuery;import com.atlassian.confluence.search.v2.searchfilter.SiteSearchPermissionsSearchFilter;....ContentSearch search = new ContentSearch(BooleanQuery.composeAndQuery(allQueries), RELEVANCE_SORT, SiteSearchPermissionsSearchFilter.getInstance(), 0, 1);

How can this be done with the Confluence 8.0 API?


Viewing latest article 2
Browse Latest Browse All 279

Trending Articles