Class PredictiveIndex

java.lang.Object
com.couchbase.lite.Index
com.couchbase.lite.PredictiveIndex

public final class PredictiveIndex extends Index
ENTERPRISE EDITION API

The predictive index used for querying with prediction function. The predictive index is different from the normal index in that the predictive index will cache the prediction result along with creating the value index of the prediction output properties.

The PredictiveIndex can be created by using IndexBuilder's predictiveIndex() function. If the prediction output properties are not specified, the predictive index will only cache the predictive result so that the predictive model will not be called again after indexing.