import{s as X,n as Z,o as ee}from"../chunks/scheduler.d6170356.js";import{S as te,i as ae,g as i,s as n,r as A,A as se,h as c,f as a,c as l,j as N,u as I,x,k as y,y as ne,a as s,v as R,d as U,t as z,w as D}from"../chunks/index.fcd4cc08.js";import{H as Q,E as le}from"../chunks/index.9f2da87a.js";function ie(V){let r,_,$,T,f,k,m,G="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.",H,g,B='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:',L,o,O='<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"/>',M,h,W='<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"/>',q,p,C,d,Y="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.",P,u,J='<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"/>',S,v,K='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>',F,b,E,w,j;return f=new Q({props:{title:"Search",local:"search",headingTag:"h1"}}),p=new Q({props:{title:"Filter with ease",local:"filter-with-ease",headingTag:"h2"}}),b=new le({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/search.md"}}),{c(){r=i("meta"),_=n(),$=i("p"),T=n(),A(f.$$.fragment),k=n(),m=i("p"),m.innerHTML=G,H=n(),g=i("p"),g.innerHTML=B,L=n(),o=i("div"),o.innerHTML=O,M=n(),h=i("div"),h.innerHTML=W,q=n(),A(p.$$.fragment),C=n(),d=i("p"),d.textContent=Y,P=n(),u=i("div"),u.innerHTML=J,S=n(),v=i("p"),v.innerHTML=K,F=n(),A(b.$$.fragment),E=n(),w=i("p"),this.h()},l(e){const t=se("svelte-u9bgzb",document.head);r=c(t,"META",{name:!0,content:!0}),t.forEach(a),_=l(e),$=c(e,"P",{}),N($).forEach(a),T=l(e),I(f.$$.fragment,e),k=l(e),m=c(e,"P",{"data-svelte-h":!0}),x(m)!=="svelte-l0zm8b"&&(m.innerHTML=G),H=l(e),g=c(e,"P",{"data-svelte-h":!0}),x(g)!=="svelte-1dwf1q3"&&(g.innerHTML=B),L=l(e),o=c(e,"DIV",{class:!0,"data-svelte-h":!0}),x(o)!=="svelte-1tp185v"&&(o.innerHTML=O),M=l(e),h=c(e,"DIV",{class:!0,"data-svelte-h":!0}),x(h)!=="svelte-k53eqx"&&(h.innerHTML=W),q=l(e),I(p.$$.fragment,e),C=l(e),d=c(e,"P",{"data-svelte-h":!0}),x(d)!=="svelte-1uxh98"&&(d.textContent=Y),P=l(e),u=c(e,"DIV",{class:!0,"data-svelte-h":!0}),x(u)!=="svelte-1q7kzlf"&&(u.innerHTML=J),S=l(e),v=c(e,"P",{"data-svelte-h":!0}),x(v)!=="svelte-19oqe4h"&&(v.innerHTML=K),F=l(e),I(b.$$.fragment,e),E=l(e),w=c(e,"P",{}),N(w).forEach(a),this.h()},h(){y(r,"name","hf:doc:metadata"),y(r,"content",ce),y(o,"class","flex justify-center"),y(h,"class","flex justify-center"),y(u,"class","flex justify-center")},m(e,t){ne(document.head,r),s(e,_,t),s(e,$,t),s(e,T,t),R(f,e,t),s(e,k,t),s(e,m,t),s(e,H,t),s(e,g,t),s(e,L,t),s(e,o,t),s(e,M,t),s(e,h,t),s(e,q,t),R(p,e,t),s(e,C,t),s(e,d,t),s(e,P,t),s(e,u,t),s(e,S,t),s(e,v,t),s(e,F,t),R(b,e,t),s(e,E,t),s(e,w,t),j=!0},p:Z,i(e){j||(U(f.$$.fragment,e),U(p.$$.fragment,e),U(b.$$.fragment,e),j=!0)},o(e){z(f.$$.fragment,e),z(p.$$.fragment,e),z(b.$$.fragment,e),j=!1},d(e){e&&(a(_),a($),a(T),a(k),a(m),a(H),a(g),a(L),a(o),a(M),a(h),a(q),a(C),a(d),a(P),a(u),a(S),a(v),a(F),a(E),a(w)),a(r),D(f,e),D(p,e),D(b,e)}}}const ce='{"title":"Search","local":"search","sections":[{"title":"Filter with ease","local":"filter-with-ease","sections":[],"depth":2}],"depth":1}';function re(V){return ee(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class fe extends te{constructor(r){super(),ae(this,r,re,ie,X,{})}}export{fe as component};
