1(()=>{var t,n,s,o,i,a,r,c,l,d,u,m,f,g,v,j,y,_,x,C,E,k,A,S,M,z=class{constructor(){this.lastScrollTop=0,this.scrollDownCallbacks=[],this.scrollUpCallbacks=[],window.addEventListener("scroll",()=>{const e=window.pageYOffset||document.documentElement.scrollTop;e>this.lastScrollTop?this.scrollDownCallbacks.forEach(t=>t(e)):this.scrollUpCallbacks.forEach(t=>t(e)),this.lastScrollTop=e<=0?0:e},!1)}onScrollDown(e){this.scrollDownCallbacks.push(e)}onScrollUp(e){this.scrollUpCallbacks.push(e)}},I=new z,O=I;function P(){document.addEventListener("click",e=>{if(!e.isTrusted)return;const t=e.target.closest("[data-tab-sync] [data-tab]");if(!t)return;const n=t.closest("[data-tab-sync]"),s=n?.getAttribute("data-tab-sync"),o=t.getAttribute("data-tab");if(!s||!o)return;const i=[...document.querySelectorAll(`[data-tab-sync="${s}"]`)],a=i.some(e=>e.getAttribute("data-tab-sync-direction")==="down-only"),r=e=>{if(e===n)return!1;if(a){const t=!!(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING);if(!t)return!1}return!0};i.forEach(e=>{if(!r(e))return;const t=e.querySelector(`[data-tab="${o}"]`);t&&t.click()})},!0)}r=1400,c=100,n="utm_params";function w(e,t){t=t||0;const n=document.getElementById(e).getBoundingClientRect().top-document.body.getBoundingClientRect().top-t;window.scrollTo({top:n,behavior:"smooth"})}function F(e){const t=document.querySelector(e||".go-to-top");if(!t)return;window.addEventListener("scroll",()=>{const e=window.scrollY>window.innerHeight/3;t.classList.toggle("d-block",e),t.classList.toggle("d-none",!e)}),t.addEventListener("click",()=>{window.scrollTo({top:0,behavior:"smooth"})})}function e(e){const n=decodeURIComponent(document.cookie),t=n.split(";");e=e+"=";for(let s=0;s<t.length;s++){let n=t[s];for(;n.charAt(0)===" ";)n=n.substring(1);if(n.indexOf(e)===0)return n.substring(e.length,n.length)}}E="qdrant_tech_ajs_anonymous_id";function W(){const e="https://cloud.qdrant.io/",t=analytics.user().anonymousId();function n(e,t,n){const s=new URL(e,window.location.origin);return s.searchParams.set(t,n),s.toString()}const s=document.querySelectorAll(`a[href^="${e}"]`);s.forEach(e=>{e.href=n(e.href,E,t)})}function h(t){const n=e("ga_measurement_id")?.replace("G-","");t.ga_session_id=e("_ga_"+n)?.replace("GS1.1.","").split(".")[0],t.ga_client_id=e("_ga")?.replace("GA1.1.","")}function T(){if(!window.location.search)return;const e=p();if(!Object.keys(e).some(t=>e[t]))return;let t="",s=!1;for(const n in e)e[n]&&(s=t.length>0,t+=`${s?"&":""}${n}=${e[n]}`);t&&sessionStorage.setItem(n,t)}function R(){return sessionStorage.getItem(n)}function p(){const t=window.location.search;if(!t)return{};const e=new URLSearchParams(t);return{gclid:e.get("gclid"),gbraid:e.get("gbraid"),wbraid:e.get("wbraid"),utm_source:e.get("utm_source"),utm_medium:e.get("utm_medium"),utm_campaign:e.get("utm_campaign"),utm_content:e.get("utm_content"),utm_term:e.get("utm_term")}}function $(){const e=R();if(e){const t=document.querySelectorAll('a[href*="cloud.qdrant.io"]');t.forEach(t=>{const s=t.href,o=s.indexOf("?")===-1?"?":"&";s.includes(n)||(t.href=`${s}${o}${e}&qdrant_ref=qdrant_tech`)})}}s="qdrant_tech_ot_consent";function b(){const e=window.OnetrustActiveGroups??"";return window.analytics.register({name:"OneTrust Integration Cookie",version:"0.1.0",type:"enrichment",isLoaded:()=>!0,load:()=>Promise.resolve(),page:t=>(t.event.context&&t.updateEvent("context.consent",{onetrust:e}),t),track:t=>(t.event.context&&t.updateEvent("context.consent",{onetrust:e}),t),identify:t=>(t.event.context&&t.updateEvent("context.consent",{onetrust:e}),t)}).catch(()=>!1),!0}function N(){const e=window.analytics,n=window.OnetrustActiveGroups;if(!e||!n)return;const t=e.user?.()?.anonymousId?.();if(!t)return;window.OneTrust.setDataSubjectId(t,!0,"AnonymousID")}function D(){const e=window.OnetrustActiveGroups;if(!e||typeof e!="string")return;const t=document.querySelectorAll('a[href*="cloud.qdrant.io"]');t.forEach(t=>{let n=new URL(t.href);n.searchParams.has(s)&&n.searchParams.delete(s),n.searchParams.set(s,e),t.href=n.toString()})}_="segmentPages",t="segmentInteractions",a={url:window.location.href,title:document.title},x=()=>{const e=new Date;return{...a,storedEvent:!0,storedTimestamp:e.toISOString()}},C=e=>e.includes("/blog/")?"Blog":"Marketing Site",d=120,k=e=>{const t=e.closest("section, header, footer");if(!t)return"page";const n=[...t.classList].find(e=>e&&!/^(col|row|g|container)([-_]|$)/.test(e));return(n||t.tagName.toLowerCase()).replace(/^qdrant-cloud-/,"cloud-").replace(/[^a-z0-9]+/gi,"_").toLowerCase()},A=e=>e.getAttribute("data-metric-label")||e.getAttribute("aria-label")||e.innerText||e.querySelector("img[alt]")?.getAttribute("alt")||e.getAttribute("title")||e.getAttribute("href")||"",S=t=>{e("cookie-consent")?o(t):L(t)},M=e=>{const n=A(e),s=n?n.replace(/\s+/g," ").trim().slice(0,d):"",t=e.getAttribute("href")??"";S({...a,location:e.getAttribute("data-metric-loc")??k(e),label:s,action:"clicked",href:t,outbound:/^https?:\/\//.test(t)&&!t.includes(window.location.host)})},i=t=>{const n=t.currentTarget;M(n),e("cookie-consent")&&!n.hasAttribute("data-metric-keep")&&n.removeEventListener("click",i)};function H(){const e=document.querySelectorAll("a[data-metric-loc], button[data-metric-loc]");
1e&&e.forEach(e=>{e.addEventListener("click",i,!1)})}l=()=>JSON.parse(sessionStorage.getItem(t)||"[]"),y=()=>{sessionStorage.removeItem(_)},j=()=>{sessionStorage.removeItem(t)};function L(e){const n={...e,...x()},s=JSON.parse(sessionStorage.getItem(t)||"[]"),o=[...s,n];sessionStorage.setItem(t,JSON.stringify(o))}v=()=>{const n="Qdrant.tech",s=C(window.location.href),o=localStorage.getItem("isFirstPageView"),t={isFirstPageView:o,hubspotutk:e("hubspotutk")};h(t),window.analytics.page(n,s,t),y()},g=()=>{l().forEach(e=>{o(e)}),j()},f=(e,t={})=>{const n=t.storedEvent?t.storedTimestamp:null;delete t.storedTimestamp,h(t),window.analytics&&window.analytics.track({event:e,properties:t},n?{timestamp:n}:null)},o=(e={})=>{f("interaction",e)};function B(e){const t={};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let s=n.replace(/id$/,"");s=s.replace(/^utm_/,""),t[s]=e[n]}return t}function V(){analytics.ready(()=>{N();const t=p(),n=B(t),s=localStorage.getItem("isFirstPageView");s==="true"&&analytics.identify({firstVisitAttribution:{referrer:document.referrer,...n},hubspotutk:e("hubspotutk")}),b(),W(),H(),v(),g()})}m=class{constructor(e,t){this.tocLinks=Array.from(document.querySelectorAll(`${e} a`)),this.headings=Array.from(document.querySelectorAll(`${t} h1[id], ${t} h2[id], ${t} h3[id]`)),this.currentActiveIndex=-1,this.currentActive=null,this.debounceTimeout=null,this.currentlyVisibleHeaderIds=new Set,this.headerOffset=c+10,this.init()}init(){this.setupObserver()}clearActiveClasses(){this.tocLinks.forEach(e=>e.classList.remove("active"))}setActiveLink(e){e!==this.currentActiveIndex&&(this.clearActiveClasses(),this.tocLinks[e]&&(this.tocLinks[e].classList.add("active"),this.currentActiveIndex=e,this.currentActive=this.headings[e]))}setupObserver(){const e=e=>{if(e.forEach(e=>{const t=this.headings.indexOf(e.target),n=e.isIntersecting;n?this.currentlyVisibleHeaderIds.add(t):this.currentlyVisibleHeaderIds.delete(t)}),this.currentlyVisibleHeaderIds.size!==0){let e=Math.min(...Array.from(this.currentlyVisibleHeaderIds));this.setActiveLink(e)}else this.currentActive&&this.currentActive.getBoundingClientRect().top>this.headerOffset&&this.setActiveLink(this.currentActiveIndex-1)},t={root:null,rootMargin:`-${this.headerOffset}px 0px -25% 0px`,threshold:0},n=new IntersectionObserver(e,t);
1this.headings.forEach(e=>n.observe(e))}},u=m,T(),document.addEventListener("DOMContentLoaded",function(){$();const m=()=>{window.OneTrust.OnConsentChanged(async()=>{D(),b(),await window.analytics.track("onetrust_consent_preference_updated",{onetrust_active_groups:window.OnetrustActiveGroups??""})}),V(),document.removeEventListener("onetrust_loaded",m)};document.addEventListener("onetrust_loaded",m);const e=document.querySelector(".top-banner");if(e){const t=parseInt(e.getAttribute("data-start")),n=parseInt(e.getAttribute("data-end")),s=Math.floor(Date.now()/1e3);t&&s>t&&(!n||s<n)&&(e.style.display="flex")}const t=document.querySelector("body"),n=document.querySelector(".site-header"),i=e?.offsetHeight??0,E=document.querySelector(".main-menu")?.offsetHeight??0,l=24;let s=window.innerWidth>=1400?l:0;function d(){if(!n)return;n.style.minHeight=`${n.offsetHeight}px`,t.classList.add("scrolled")}function _(){if(!n)return;n.style.minHeight="",t.classList.remove("scrolled")}window.addEventListener("resize",function(){s=window.innerWidth>=r?l:0}),window.scrollY>i+s&&d(),O.onScrollDown(e=>{e>i+s&&d()}),O.onScrollUp(e=>{e<=i+s&&_()});const j=document.querySelector(".menu-mobile__close"),v=document.querySelector(".main-menu__trigger"),o=document.querySelector(".menu-mobile");v.addEventListener("click",()=>{o.classList.add("menu-mobile--visible"),t.classList.add("no-scroll")}),j.addEventListener("click",()=>{o.classList.remove("menu-mobile--visible"),t.classList.remove("no-scroll")});
1function g(e){const t=document.querySelector(`[data-path=${e}]`);t&&t.classList.toggle("menu-mobile__item--active")}document.querySelectorAll(".menu-mobile__item").forEach(e=>{e.addEventListener("click",n=>{const s=n.target.closest("a");if(s){const e=n.target.closest(".vsd-header")?.querySelector(".menu-mobile");e&&e.classList.contains("menu-mobile--visible")&&(e.classList.remove("menu-mobile--visible"),t.classList.remove("no-scroll"));return}g(e.dataset.path)})}),window.addEventListener("resize",()=>{window.innerWidth>=r&&o.classList.remove("menu-mobile--visible")}),F("#scrollToTopBtn"),P(),document.getElementById("TableOfContents")&&document.querySelector(".qdrant-post__body")&&new u("#TableOfContents",".qdrant-post__body"),document.querySelectorAll(".card__content-link").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation();const n=e.dataset.href;window.history.pushState({},"",n),window.location.href=n})});function f(){this.parentElement.classList.toggle("active");const e=this.nextElementSibling;e.style.maxHeight?e.style.maxHeight=null:e.style.maxHeight=e.scrollHeight+"px"}const p=Array.from(document.getElementsByClassName("accordion__item-header"));p.forEach(e=>{e.addEventListener("click",f)});const y=Array.from(document.getElementsByClassName("accordion-dark__item-header"));y.forEach(e=>{e.addEventListener("click",f)});const h=document.querySelectorAll(".qdrant-pricing-doors-b__tab"),x=document.querySelectorAll("[data-doors-tab]");h.forEach(e=>{e.addEventListener("click",()=>{h.forEach(e=>e.classList.remove("qdrant-pricing-doors-b__tab--active")),e.classList.add("qdrant-pricing-doors-b__tab--active");const t=e.dataset.tab;x.forEach(e=>{e.classList.toggle("qdrant-pricing-doors-b__doors--hidden",e.dataset.doorsTab!==t)})})});let a=c;window.location.hash&&w(window.location.hash.replace("#",""),a);let C=document.querySelectorAll('a[href^="#"]');C.forEach(e=>{const t=e.getAttribute("href");e.addEventListener("click",function(e){e.preventDefault(),history.pushState(null,null,t),w(t.replace("#",""),a)})})})})()
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.