import{s as O,n as Q,o as X}from"../chunks/scheduler.d6170356.js";import{S as Z,i as ee,g as i,s as n,r as V,A as te,h as c,f as a,c as l,j as B,u as G,x,k as _,y as ae,a as s,v as W,d as Y,t as J,w as K}from"../chunks/index.fcd4cc08.js";import{H as N}from"../chunks/Heading.8660bd0e.js";function se(j){let r,b,w,T,u,$,m,A="You can now easily search anything on the Hub with <strong>Full-text search</strong>. We index model cards, dataset cards, and Spaces app.py files.",k,g,E='Go directly to <a href="https://huggingface.co/search" rel="nofollow">https://huggingface.co/search</a> or, using the search bar at the top of <a href="https://huggingface.co" rel="nofollow">https://huggingface.co</a>, you can select “Try Full-text search” to help find what you seek on the Hub across models, datasets, and Spaces:',H,o,I='<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/fulltextsearch1.png"/> <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/fulltextsearch2.png"/>',L,h,R='<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/AlbertFTS1.png"/> <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/AlbertFTS2.png"/>',M,p,q,d,U="By default, models, datasets, & spaces are being searched when a user enters a query. If one prefers, one can filter to search only models, datasets, or spaces.",C,f,z='<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/Filter%20search%201.png"/> <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/Filter%20search%202.png"/>',P,v,D='Moreover, one can copy &amp; share the URL from one’s browser’s address bar, which should contain the filter information as URL query. For example, when one searches for a query <code>llama</code> with a filter to show <code>Spaces</code> only, one gets URL <a href="https://huggingface.co/search/full-text?q=llama&amp;type=space" rel="nofollow">https://huggingface.co/search/full-text?q=llama&amp;type=space</a>',S,y,F;return u=new N({props:{title:"Search",local:"search",headingTag:"h1"}}),p=new N({props:{title:"Filter with ease",local:"filter-with-ease",headingTag:"h2"}}),{c(){r=i("meta"),b=n(),w=i("p"),T=n(),V(u.$$.fragment),$=n(),m=i("p"),m.innerHTML=A,k=n(),g=i("p"),g.innerHTML=E,H=n(),o=i("div"),o.innerHTML=I,L=n(),h=i("div"),h.innerHTML=R,M=n(),V(p.$$.fragment),q=n(),d=i("p"),d.textContent=U,C=n(),f=i("div"),f.innerHTML=z,P=n(),v=i("p"),v.innerHTML=D,S=n(),y=i("p"),this.h()},l(e){const t=te("svelte-u9bgzb",document.head);r=c(t,"META",{name:!0,content:!0}),t.forEach(a),b=l(e),w=c(e,"P",{}),B(w).forEach(a),T=l(e),G(u.$$.fragment,e),$=l(e),m=c(e,"P",{"data-svelte-h":!0}),x(m)!=="svelte-l0zm8b"&&(m.innerHTML=A),k=l(e),g=c(e,"P",{"data-svelte-h":!0}),x(g)!=="svelte-1dwf1q3"&&(g.innerHTML=E),H=l(e),o=c(e,"DIV",{class:!0,"data-svelte-h":!0}),x(o)!=="svelte-1tp185v"&&(o.innerHTML=I),L=l(e),h=c(e,"DIV",{class:!0,"data-svelte-h":!0}),x(h)!=="svelte-k53eqx"&&(h.innerHTML=R),M=l(e),G(p.$$.fragment,e),q=l(e),d=c(e,"P",{"data-svelte-h":!0}),x(d)!=="svelte-1uxh98"&&(d.textContent=U),C=l(e),f=c(e,"DIV",{class:!0,"data-svelte-h":!0}),x(f)!=="svelte-1q7kzlf"&&(f.innerHTML=z),P=l(e),v=c(e,"P",{"data-svelte-h":!0}),x(v)!=="svelte-19oqe4h"&&(v.innerHTML=D),S=l(e),y=c(e,"P",{}),B(y).forEach(a),this.h()},h(){_(r,"name","hf:doc:metadata"),_(r,"content",ne),_(o,"class","flex justify-center"),_(h,"class","flex justify-center"),_(f,"class","flex justify-center")},m(e,t){ae(document.head,r),s(e,b,t),s(e,w,t),s(e,T,t),W(u,e,t),s(e,$,t),s(e,m,t),s(e,k,t),s(e,g,t),s(e,H,t),s(e,o,t),s(e,L,t),s(e,h,t),s(e,M,t),W(p,e,t),s(e,q,t),s(e,d,t),s(e,C,t),s(e,f,t),s(e,P,t),s(e,v,t),s(e,S,t),s(e,y,t),F=!0},p:Q,i(e){F||(Y(u.$$.fragment,e),Y(p.$$.fragment,e),F=!0)},o(e){J(u.$$.fragment,e),J(p.$$.fragment,e),F=!1},d(e){e&&(a(b),a(w),a(T),a($),a(m),a(k),a(g),a(H),a(o),a(L),a(h),a(M),a(q),a(d),a(C),a(f),a(P),a(v),a(S),a(y)),a(r),K(u,e),K(p,e)}}}const ne='{"title":"Search","local":"search","sections":[{"title":"Filter with ease","local":"filter-with-ease","sections":[],"depth":2}],"depth":1}';function le(j){return X(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class oe extends Z{constructor(r){super(),ee(this,r,le,se,O,{})}}export{oe as component};
