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 SearchIndex
fromJson(String input)
Takes a encoded index definition and turns it into aSearchIndex
which can be used.String
name()
Map<String,Object>
params()
SearchIndex
params(Map<String,Object> params)
Map<String,Object>
planParams()
SearchIndex
planParams(Map<String,Object> planParams)
String
sourceName()
Map<String,Object>
sourceParams()
SearchIndex
sourceParams(Map<String,Object> sourceParams)
String
sourceType()
SearchIndex
sourceType(String sourceType)
String
sourceUuid()
SearchIndex
sourceUuid(String sourceUuid)
String
toJson()
String
toString()
String
type()
SearchIndex
unsetUuid()
Allows to unset the UUID from an index definition.String
uuid()
SearchIndex
uuid(String 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
-