Liking cljdoc? Tell your friends :D

semantic-router-clj.route


add-routeclj

(add-route layer-ns {:keys [threshold] :as route})

Adds a new route in the given layer-ns

Note: Ensure that the layer-ns is defined before using this function. THIS FUNCTION WILL OVERWRITE ANY EXISTING ROUTE WITH THE SAME NS & NAME

Adds a new route in the given layer-ns

Note: Ensure that the layer-ns is defined before using this function.
THIS FUNCTION WILL OVERWRITE ANY EXISTING ROUTE WITH THE SAME NS & NAME
sourceraw docstring

delete-layerclj

(delete-layer layer-ns)

Removes the layer associated with the specified layer-ns from the index. Also clears all the routes

Removes the layer associated with the specified layer-ns from the index.
Also clears all the routes
sourceraw docstring

delete-routeclj

(delete-route layer-ns route-name)

Removes route from layer

Removes route from layer
sourceraw docstring

get-routeclj

(get-route layer-ns route-name)

Gets route from layer

Gets route from layer
sourceraw docstring

get-routesclj

(get-routes layer-ns)

Gets route from layer

Gets route from layer
sourceraw docstring

get-top-routeclj

(get-top-route {:keys [layer-ns threshold aggregation-method]} query-vector)

For the given layer returns the route with highest semantic score based on the given aggregation method

For the given layer returns the route with highest semantic score
based on the given aggregation method
sourceraw docstring

route-indexclj

source

update-routeclj

(update-route layer-ns route-name route)

Updates route with the given name in the given layer-ns

Note: Ensure that the route is defined before using this function. THIS FUNCTION WILL ADD DATA TO EXISTING ROUTE

Updates route with the given name in the given layer-ns

Note: Ensure that the route is defined before using this function.
THIS FUNCTION WILL ADD DATA TO EXISTING ROUTE
sourceraw docstring

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

× close