Reindex a Soup

Use reindexing if you previously altered a soup without reindexing the data, but later you want to make sure all elements in the soup are properly indexed. Both alterSoup() and reindexSoup() perform better for conversion to, or creation of, JSON1 index specs than for other index spec types.

In hybrid apps, call:

In addition to the success and error callback functions, this function takes a single argument, soupName, which is the name of the soup. For example function takes additional arguments:

Parameter NameArgument Description
soupNameString. Pass in the name of the soup.
listOfPathsArray. List of index paths on which you want to re-index.

The success callback supports a single parameter that contains the soup name. For example:

In Android apps, call:

Objective-C:

In Swift, use the Objective-C method.