getMapping #
Returns the collection mapping.
public CompletableFuture<ConcurrentHashMap<String, Object>> getMapping(
final String index,
final String collection) throws NotConnectedException, InternalException
Arguments | Type | Description |
---|---|---|
index | String | Index name |
collection | String | Collection name |
Returns #
Returns a ConcurrentHashMap<String, Object>
representing the collection mapping.
Usage #
ConcurrentHashMap<String, Object> result = kuzzle
.getCollectionController()
.getMapping("nyc-open-data", "yellow-taxi")
.get();
/*
{
_meta={
schema={},
allowForm=false
},
dynamic=true,
properties={
key={
type=text,
fields={
keyword={
ignore_above=256,
type=keyword
}
}
}
}
}
*/
Edit this page on Github(opens new window)