Class SearchIndex
java.lang.Object
com.couchbase.client.java.manager.search.SearchIndex
A full text search index definition.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SearchIndex
Takes a encoded index definition and turns it into aSearchIndex
which can be used.name()
params()
planParams
(Map<String, Object> planParams) sourceParams
(Map<String, Object> sourceParams) sourceType
(String sourceType) sourceUuid
(String sourceUuid) toJson()
toString()
type()
Allows to unset the UUID from an index definition.uuid()
-
Constructor Details
-
SearchIndex
-
SearchIndex
-
-
Method Details
-
fromJson
Takes a encoded index definition and turns it into aSearchIndex
which can be used.- Parameters:
input
- the encoded JSON index definition.- Returns:
- the instantiated index.
-
name
-
uuid
-
uuid
-
unsetUuid
Allows to unset the UUID from an index definition. This method is especially useful if you are creating an index definition from a index JSON blob and you want to create the index rather than modify it. If the index is not created and you leave the UUID in, the request will fail with anIndexNotFoundException
. -
sourceName
-
type
-
params
-
params
-
sourceUuid
-
sourceUuid
-
sourceParams
-
sourceParams
-
sourceType
-
sourceType
-
planParams
-
planParams
-
toJson
-
toString
-