138#ifdef COUCHBASE_ENTERPRISE
199 const float vector[
C4NULLABLE],
size_t dimension,
233#ifndef C4_STRICT_COLLECTION_API
#define NODISCARD
Definition CompilerSupport.h:59
#define CBL_CORE_API
Definition c4Compat.h:134
#define C4NULLABLE
Definition c4Compat.h:38
#define C4API
Definition c4Compat.h:114
#define C4_ASSUME_NONNULL_BEGIN
Definition c4Compat.h:36
#define C4API_END_DECLS
Definition c4Compat.h:116
#define C4API_BEGIN_DECLS
Definition c4Compat.h:115
#define C4_ASSUME_NONNULL_END
Definition c4Compat.h:37
struct C4Index C4Index
Represents an existing index.
Definition c4Base.h:148
struct C4IndexUpdater C4IndexUpdater
Describes a set of index values that need to be computed by the application.
Definition c4Base.h:151
struct C4Collection C4Collection
Opaque handle to a namespace of documents in an opened database.
Definition c4Base.h:126
struct C4Database C4Database
Opaque handle to an opened database.
Definition c4Base.h:136
NODISCARD CBL_CORE_API bool c4db_deleteIndex(C4Database *database, C4String name, C4Error *outError)
NODISCARD CBL_CORE_API bool c4db_createIndex2(C4Database *database, C4String name, C4String indexSpec, C4QueryLanguage queryLanguage, C4IndexType indexType, const C4IndexOptions *indexOptions, C4Error *outError)
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.
CBL_CORE_API C4SliceResult c4db_getIndexesInfo(C4Database *database, C4Error *outError)
Returns information about all indexes in the database.
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.
NODISCARD CBL_CORE_API bool c4db_createIndex(C4Database *database, C4String name, C4String indexSpecJSON, C4IndexType indexType, const C4IndexOptions *indexOptions, C4Error *outError)
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
A simple reference to a block of memory.
Definition FLSlice.h:45
A heap-allocated block of memory returned from an API call.
Definition FLSlice.h:63