Skip to content

Commit

Permalink
KCBC-158 Promote [Scope]SearchIndexManager to committed API
Browse files Browse the repository at this point in the history
Change-Id: I33cc18f3e9191b86ed2d0f390283d492a5832c22
Reviewed-on: https://review.couchbase.org/c/couchbase-jvm-clients/+/206825
Tested-by: Build Bot <build@couchbase.com>
Tested-by: David Nault <david.nault@couchbase.com>
Reviewed-by: David Nault <david.nault@couchbase.com>
  • Loading branch information
dnault committed Mar 6, 2024
1 parent 3f63644 commit c1795ed
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 9 deletions.
Expand Up @@ -213,7 +213,6 @@ public class Cluster internal constructor(
* managing search indexes and searching at the scope level instead
* of the cluster level. See [Scope.searchIndexes].
*/
@UncommittedCouchbaseApi
public val searchIndexes: SearchIndexManager = SearchIndexManager(couchbaseOps.clusterSearchIndexManager())

/**
Expand Down
Expand Up @@ -41,7 +41,6 @@ import com.couchbase.client.kotlin.analytics.AnalyticsParameters
import com.couchbase.client.kotlin.analytics.AnalyticsPriority
import com.couchbase.client.kotlin.analytics.AnalyticsScanConsistency
import com.couchbase.client.kotlin.analytics.internal.AnalyticsExecutor
import com.couchbase.client.kotlin.annotations.UncommittedCouchbaseApi
import com.couchbase.client.kotlin.annotations.VolatileCouchbaseApi
import com.couchbase.client.kotlin.codec.JsonSerializer
import com.couchbase.client.kotlin.internal.requireUnique
Expand Down Expand Up @@ -97,7 +96,6 @@ public class Scope(
/**
* A manager for administering scope-level Full-Text Search indexes.
*/
@UncommittedCouchbaseApi
@SinceCouchbase("7.6")
public val searchIndexes: ScopeSearchIndexManager = ScopeSearchIndexManager(
couchbaseOps.scopeSearchIndexManager(CoreBucketAndScope(bucket.name, name))
Expand Down
Expand Up @@ -23,11 +23,9 @@ import com.couchbase.client.core.error.IndexExistsException
import com.couchbase.client.core.error.IndexNotFoundException
import com.couchbase.client.core.json.Mapper
import com.couchbase.client.kotlin.CommonOptions
import com.couchbase.client.kotlin.annotations.UncommittedCouchbaseApi
import com.couchbase.client.kotlin.annotations.VolatileCouchbaseApi
import kotlinx.coroutines.future.await

@UncommittedCouchbaseApi
public class ScopeSearchIndexManager internal constructor(
private val core: CoreSearchIndexManager
) {
Expand Down
Expand Up @@ -17,13 +17,11 @@
package com.couchbase.client.kotlin.manager.search

import com.couchbase.client.core.api.manager.search.CoreSearchIndex
import com.couchbase.client.kotlin.annotations.VolatileCouchbaseApi


/**
* A Full-Text Search index definition.
*/
@VolatileCouchbaseApi
public class SearchIndex(
public val name: String,
public val sourceName: String,
Expand Down
Expand Up @@ -24,11 +24,9 @@ import com.couchbase.client.core.error.IndexExistsException
import com.couchbase.client.core.error.IndexNotFoundException
import com.couchbase.client.core.json.Mapper
import com.couchbase.client.kotlin.CommonOptions
import com.couchbase.client.kotlin.annotations.UncommittedCouchbaseApi
import com.couchbase.client.kotlin.annotations.VolatileCouchbaseApi
import kotlinx.coroutines.future.await

@UncommittedCouchbaseApi
public class SearchIndexManager internal constructor(
private val core: CoreSearchIndexManager
) {
Expand Down

0 comments on commit c1795ed

Please sign in to comment.