129#ifdef COUCHBASE_ENTERPRISE
190 const float vector[
C4NULLABLE],
size_t dimension,
#define NODISCARD
Definition CompilerSupport.h:63
#define CBL_CORE_API
Definition c4Compat.h:131
#define C4NULLABLE
Definition c4Compat.h:38
#define C4API
Definition c4Compat.h:106
#define C4_ASSUME_NONNULL_BEGIN
Definition c4Compat.h:36
#define C4API_END_DECLS
Definition c4Compat.h:108
#define C4API_BEGIN_DECLS
Definition c4Compat.h:107
#define C4_ASSUME_NONNULL_END
Definition c4Compat.h:37
C4Slice C4String
Definition c4Base.h:51
struct C4Index C4Index
Represents an existing index.
Definition c4Base.h:147
FLSliceResult C4SliceResult
Definition c4Base.h:50
struct C4IndexUpdater C4IndexUpdater
Describes a set of index values that need to be computed by the application.
Definition c4Base.h:150
FLSlice C4Slice
Definition c4Base.h:48
struct C4Collection C4Collection
Opaque handle to a namespace of documents in an opened database.
Definition c4Base.h:125
CBL_CORE_API bool c4index_getOptions(C4Index *index, C4IndexOptions *outOpts)
Gets the index's FTS/vector options, if any.
CBL_CORE_API C4SliceResult c4coll_getIndexesInfo(C4Collection *collection, C4Error *outError)
Returns information about all indexes in the collection.
NODISCARD CBL_CORE_API bool c4coll_createIndex(C4Collection *collection, C4String name, C4String indexSpec, C4QueryLanguage queryLanguage, C4IndexType indexType, const C4IndexOptions *indexOptions, C4Error *outError)
Creates a collection index, of the values of specific expressions across all documents.
CBL_CORE_API C4Index * c4coll_getIndex(C4Collection *collection, C4String name, C4Error *outError)
Returns an object representing an existing index.
NODISCARD CBL_CORE_API bool c4coll_deleteIndex(C4Collection *collection, C4String name, C4Error *outError)
Deletes an index that was created by c4coll_createIndex.
CBL_CORE_API C4String c4index_getExpression(C4Index *)
Returns the indexed expression.
CBL_CORE_API C4IndexType c4index_getType(C4Index *)
Returns the index's type.
CBL_CORE_API C4Slice c4index_getName(C4Index *index)
Returns the name of this index.
CBL_CORE_API C4QueryLanguage c4index_getQueryLanguage(C4Index *)
Returns the index's query language (JSON or N1QL).
C4IndexType
Definition c4IndexTypes.h:25
CBL_CORE_API bool c4coll_isIndexTrained(C4Collection *collection, C4String name, C4Error *outError)
Returns whether a vector index has been trained yet or not.
CBL_CORE_API C4Collection * c4index_getCollection(C4Index *index)
Returns the collection this index belongs to.
C4QueryLanguage
Definition c4QueryTypes.h:26
const struct _FLValue * FLValue
A reference to a value of any type.
Definition FLBase.h:35
An error value.
Definition c4Error.h:133
Options for indexes; these each apply to specific types of indexes.
Definition c4IndexTypes.h:89