To get full access to the Kademi Hub existing customers can login here, or new customers can register here.
Properties
Name | Returns | Notes | Example |
---|---|---|---|
title | String | ||
children | List | ||
numRecords | long | ||
template | String | ||
website | String | Return the website name this database is associated with, or null if it isnt. The database can only be accessed from a website it is configured for, unless it has the allow any flag set | |
indexName | String | Returns current jsondb ES index name |
Methods
Name | Returns | Notes | Example |
---|---|---|---|
findByType ( type ) | ResourceList | Find documents by type | |
updateTypeMappings ( type, mapping ) | void | Add or update a single type mapping. The index will be deleted, and prior existing type mappings restored, and then json docs will be re-indexed This process is because elastic generally doesnt allow type mappings to be changed | |
updateTypeMappings ( mappings ) | void | Add or update type mappings. Each item in the supplied map must have as its key the type mapping, and its type mapping properties as the value | |
updateTypeMappings ( mappings, callback ) | void | Add or update type mappings. Each item in the supplied map must have as its key the type mapping, and its type mapping properties as the value | |
reindex ( ) | void | ||
reindex ( callback ) | void |