Liking cljdoc? Tell your friends :D

milvus-clj.core


clientclj

(client {:keys [host port database username password client-key-path
                client-pem-path ca-pem-path server-pem-path
                connection-timeout-ms keep-alive-timeout-ms
                keep-alive-without-calls? secure? idle-timeout-ms]})

This function creates a Milvus client instance.

This function creates a Milvus client instance.
sourceraw docstring

closeclj

(close client)
(close client max-wait-sec)

Disconnects from a Milvus server with configurable timeout value. Call this method before the application terminates. This method throws an InterruptedException exception if it is interrupted.

Disconnects from a Milvus server with configurable timeout value. Call this method before 
the application terminates. This method throws an InterruptedException exception if it is 
interrupted.
sourceraw docstring

create-collectionclj

(create-collection client
                   {:keys [collection-name shards-num description field-types
                           consistency-level partition-num]})

This function creates a collection with a specified schema.

This function creates a collection with a specified schema.
sourceraw docstring

create-databaseclj

(create-database client database-name)

This function creates a database.

This function creates a database.
sourceraw docstring

create-indexclj

(create-index client
              {:keys [collection-name field-name index-type index-name
                      metric-type extra-param sync-mode?
                      sync-load-waiting-interval sync-load-waiting-timeout]})

This function creates an index on a field in a specified collection.

This function creates an index on a field in a specified collection.
sourceraw docstring

data-typesclj

source

deleteclj

(delete client {:keys [collection-name partition-name expr]})

This function deletes an entity or entities from a collection by filtering the primary key field with boolean expression.

This function deletes an entity or entities from a collection by filtering the primary key field 
with boolean expression.
sourceraw docstring

drop-collectionclj

(drop-collection client collection-name)

This function drops a specified collection.

This function drops a specified collection.
sourceraw docstring

drop-databaseclj

(drop-database client database-name)

This function drops a database. Note that this method drops all data in the database.

 This function drops a database. Note that this method drops all data in the database.
sourceraw docstring

drop-indexclj

(drop-index client {:keys [collection-name index-name]})

This function drops an index and its corresponding index file in the collection.

This function drops an index and its corresponding index file in the collection.
sourceraw docstring

flush-collectionsclj

(flush-collections client
                   {:keys [collection-names sync-flush?
                           sync-flush-waiting-interval-ms
                           sync-flush-waiting-timeout-sec]})

This method triggers a flush action in which all growing segments in the specified collection are marked as sealed and then flushed to storage.

This method triggers a flush action in which all growing segments in the specified collection 
are marked as sealed and then flushed to storage.
sourceraw docstring

(hybrid-search client
               {:keys [collection-name consistency-level partition-names
                       out-fields top-k round-decimal search-requests ranker]})

This method conducts an approximate nearest neighbor (ANN) search on multiple vector fields and returns search results after reranking.

This method conducts an approximate nearest neighbor (ANN) search on multiple vector fields and 
returns search results after reranking.
sourceraw docstring

index-typesclj

source

insertclj

(insert client {:keys [collection-name partition-name fields rows]})

This function inserts entities into a specified collection.

This function inserts entities into a specified collection.
sourceraw docstring

list-databasesclj

(list-databases client)

This function lists all databases in the cluster.

This function lists all databases in the cluster.
sourceraw docstring

load-collectionclj

(load-collection client
                 {:keys [collection-name sync-load? sync-load-waiting-interval
                         sync-load-waiting-timeout replica-number refresh?]})

This function loads the specified collection and all the data within to memory for search or query.

This function loads the specified collection and all the data within to memory for search or 
query.
sourceraw docstring

map->gson-objectclj

(map->gson-object m)
source

metric-typesclj

source

queryclj

(query client
       {:keys [collection-name consistency-level partition-names
               travel-timestamp out-fields expr offset limit ignore-growing?]})

This function queries entity(s) based on scalar field(s) filtered by boolean expression.

This function queries entity(s) based on scalar field(s) filtered by boolean expression.
sourceraw docstring

release-collectionclj

(release-collection client {:keys [collection-name]})

This function releases the specified collection and all data within it from memory.

This function releases the specified collection and all data within it from memory.
sourceraw docstring

rrf-rankerclj

(rrf-ranker {:keys [k]})
source

(search client
        {:keys [collection-name consistency-level partition-names
                travel-timestamp out-fields expr metric-type vector-field-name
                top-k vectors round-decimal params ignore-growing?]})

This function conducts an approximate nearest neighbor (ANN) search on a vector field and pairs up with boolean expression to conduct filtering on scalar fields before searching.

This function conducts an approximate nearest neighbor (ANN) search on a vector field and pairs 
up with boolean expression to conduct filtering on scalar fields before searching.
sourceraw docstring

set-log-levelclj

(set-log-level client level)
source

timeoutclj

(timeout client timeout-ms)

The timeout setting for RPC call.

The timeout setting for RPC call.
sourceraw docstring

upsertclj

(upsert client {:keys [collection-name partition-name fields rows]})

This method inserts new entities into a specified collection, and replaces them if the entities already exist.

This method inserts new entities into a specified collection, and replaces them if the entities 
already exist.
sourceraw docstring

weighted-rankerclj

(weighted-ranker {:keys [weights]})
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close