From d2d4200e22851538568f7d94be0f248a9e27b34f Mon Sep 17 00:00:00 2001 From: Andrey Vasnetsov Date: Wed, 30 Jun 2021 00:52:03 +0200 Subject: [PATCH] docs: add table of content --- .../content/documentation/payload.md | 97 ++++++++++++++++++- .../qdrant/layouts/partials/docs_sidebar.html | 5 + .../qdrant/layouts/partials/header.html | 5 + .../themes/qdrant/static/js/script.js | 4 +- 4 files changed, 106 insertions(+), 5 deletions(-) diff --git a/qdrant-landing/content/documentation/payload.md b/qdrant-landing/content/documentation/payload.md index 75e42550c..3f15dda7b 100644 --- a/qdrant-landing/content/documentation/payload.md +++ b/qdrant-landing/content/documentation/payload.md @@ -72,7 +72,30 @@ The filtering process is discussed in detail in the section [Filtering](../filte With REST API -```bash +``` +POST /collections/{collection_name} + +{ + "upsert_points": { + "points": [ + { + "id": 1, + "vector": [0.05, 0.61, 0.76, 0.74], + "payload": {"city": "Berlin", price: 1.99} + }, + { + "id": 2, + "vector": [0.19, 0.81, 0.75, 0.11], + "payload": {"city": ["Berlin", "London"], price: 1.99} + }, + { + "id": 3, + "vector": [0.36, 0.55, 0.47, 0.94], + "payload": {"city": ["Berlin", "Moscow"], price: [1.99, 2.99]} + } + ] + } +} ``` + +### Delete payload + +This method removes specified payload keys from specified points + + +REST API ([Schema](https://qdrant.github.io/qdrant/redoc/index.html#operation/update_points)): + +``` +POST /collections/{collection_name} + +{ + "delete_payload": { + "keys": ["color", "price"], + "points": [0, 3, 100] + } +} +``` + + + +### Clear payload + +This method removes all payload keys from specified points + +REST API ([Schema](https://qdrant.github.io/qdrant/redoc/index.html#operation/update_points)): + +``` +POST /collections/{collection_name} + +{ + "clear_payload": { + "points": [0, 3, 100] + } +} ``` + + {{ if (eq $.Section "documentation") }}
+ {{ else }} +
+ {{ end }}
diff --git a/qdrant-landing/themes/qdrant/static/js/script.js b/qdrant-landing/themes/qdrant/static/js/script.js index b979bbfa8..9ccb20a82 100644 --- a/qdrant-landing/themes/qdrant/static/js/script.js +++ b/qdrant-landing/themes/qdrant/static/js/script.js @@ -31,9 +31,9 @@ function headerStyle() { if($('.main-header').length){ var windowpos = $(window).scrollTop(); - var siteHeader = $('.main-header'); + var siteHeader = $('.main-sticky-header'); var scrollLink = $('.scroll-to-top'); - var sticky_header = $('.main-header .sticky-header'); + var sticky_header = $('.main-sticky-header .sticky-header'); if (windowpos > 100) { siteHeader.addClass('fixed-header'); sticky_header.addClass("animated slideInDown");