Class SearchIndex
java.lang.Object
com.couchbase.client.java.manager.search.SearchIndex
public class SearchIndex extends Object
A full text search index definition.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description static SearchIndexfromJson(String input)Takes a encoded index definition and turns it into aSearchIndexwhich can be used.Stringname()Map<String,Object>params()SearchIndexparams(Map<String,Object> params)Map<String,Object>planParams()SearchIndexplanParams(Map<String,Object> planParams)StringsourceName()Map<String,Object>sourceParams()SearchIndexsourceParams(Map<String,Object> sourceParams)StringsourceType()SearchIndexsourceType(String sourceType)StringsourceUuid()SearchIndexsourceUuid(String sourceUuid)StringtoJson()StringtoString()Stringtype()SearchIndexunsetUuid()Allows to unset the UUID from an index definition.Stringuuid()SearchIndexuuid(String uuid)
-
Constructor Details
-
SearchIndex
-
SearchIndex
-
-
Method Details
-
fromJson
Takes a encoded index definition and turns it into aSearchIndexwhich 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
-