{
    "version" : "https://jsonfeed.org/version/1",
    "content" : "resources",
    "type" : "single",
    "title" : "An introduction to search |Digital.gov",
    "description": "An introduction to search",
    "home_page_url" : "/preview/gsa/digitalgov.gov/bc-archive-content-3/","feed_url" : "/preview/gsa/digitalgov.gov/bc-archive-content-3/resources/an-introduction-to-search/index.json","item" : [
    {"title" :"An introduction to search","deck" : "Understand how and why your content must be easy to search","summary" : "Learn why search functionality is an important component of federal websites, and discover how to add a search function to your website.","date" : "2023-10-04T12:01:00-05:00","date_modified" : "2025-01-27T19:42:55-05:00","topics" : {
        
            "digital-service-delivery" : "Digital service delivery",
            "search-engine-optimization" : "Search engine optimization"
            },"branch" : "bc-archive-content-3",
      "filename" :"an-introduction-to-search.md",
      
      "filepath" :"resources/an-introduction-to-search.md",
      "filepathURL" :"https://github.com/GSA/digitalgov.gov/blob/bc-archive-content-3/content/resources/an-introduction-to-search.md",
      "editpathURL" :"https://github.com/GSA/digitalgov.gov/edit/bc-archive-content-3/content/resources/an-introduction-to-search.md","slug" : "an-introduction-to-search","url" : "/preview/gsa/digitalgov.gov/bc-archive-content-3/resources/an-introduction-to-search/","weight" : "1","content" :"\u003ch2 id=\"what-is-search-functionality\"\u003eWhat is search functionality?\u003c/h2\u003e\n\u003cp\u003eSearch functionality enables people to find information. Whether they use a commercial search engine, or search within a single website via its search function, searching is a commonplace activity for users.\u003c/p\u003e\n\u003cp\u003eCommercial search engines scour the internet and deliver results based on the terms someone searches for.\u003c/p\u003e\n\u003cp\u003eSite-specific search functionality is typically provided via a search box. Some websites display an actual box, whereas others only display an icon (such as a magnifying glass) that expands to allow users to type their query once they’ve selected the icon. The U.S. Web Design System’s \u003ca href=\"https://designsystem.digital.gov/components/search/\"\u003eSearch component\u003c/a\u003e usability guidance recommends using a full search box. Specifically, the search function should appear on a site’s home page as a search box instead of a link so users can locate it easily.\u003c/p\u003e\n\u003cp\u003eIf using the Design System’s \u003ca href=\"https://designsystem.digital.gov/components/header/\"\u003eHeader component\u003c/a\u003e, you’ll place the search box in the top right corner.\u003c/p\u003e\n\u003ch2 id=\"why-is-search-important-for-your-website\"\u003eWhy is search important for your website?\u003c/h2\u003e\n\u003cp\u003eMost people begin a search for information on a commercial search engine. Once they arrive at a specific website, they’re likely to first \u003ca href=\"https://www.nngroup.com/videos/search-box-vs-navigation/\"\u003ereview the site navigation\u003c/a\u003e. However, if they don’t easily find what they’re looking for, they’ll attempt to search for it using the site’s internal search feature.\u003c/p\u003e\n\u003cp\u003eYou can configure search results to promote popular or top-task content so it’s easier for users to find. Offering clear navigation, as well as easy-to-use search functionality, will accommodate both methods of finding information.\u003c/p\u003e\n\u003cp\u003eIncluding a search function on your website offers you a view into how site visitors search for your information. By analyzing search data, you can find common search terms, and rewrite content (particularly headings) to include words that customers typically search for.\u003c/p\u003e\n\u003cp\u003eFinally, the \u003ca href=\"https://digital.gov/resources/21st-century-integrated-digital-experience-act/\"\u003e21st Century Integrated Digital Experience Act\u003c/a\u003e requires that all federal websites and digital services have “Information and services that are discoverable and optimized for search.”\u003c/p\u003e\n\u003cp\u003eSection III.A.4 of OMB’s policy guidance, \u003ca href=\"https://www.whitehouse.gov/omb/management/ofcio/delivering-a-digital-first-public-experience/\"\u003eM-23-22, Delivering a Digital-First Public Experience\u003c/a\u003e, clarifies this requirement, “Agencies’ public-facing websites must contain a search function that allows users to easily search content intended for public use.”\u003c/p\u003e\n\u003cdiv class=\"usa-accordion accordion\"\u003e\u003ch3 class=\"usa-accordion__heading\"\u003e\n    \u003cbutton\n      class=\"usa-accordion__button\"\n      title=\"View \"\n      aria-expanded=\"false\"\n      aria-controls=\"accordion-1\"\n    \u003e\n      \u003cspan class=\"icon\"\u003e\n          \u003csvg\n            class=\"usa-icon dg-icon dg-icon--standard margin-bottom-05\"\n            aria-hidden=\"true\"\n            focusable=\"false\"\n          \u003e\n            \n            \u003cuse xlink:href=\"/preview/gsa/digitalgov.gov/bc-archive-content-3/uswds/img/sprite.svg#content_copy\"\u003e\u003c/use\u003e\n          \u003c/svg\u003e\n        \u003c/span\u003e\u003cspan class=\"src\"\u003e\n        \u003cstrong class=\"kicker\"\u003eMemo M-23-22\u003c/strong\u003e\u003cstrong\u003eDelivering a Digital-First Public Experience, Section III.A.4\u003c/strong\u003e: Requirements for Websites and Digital Services\n        \u003c/span\n      \u003e\n    \u003c/button\u003e\n  \u003c/h3\u003e\u003cdiv\n      id=\"accordion-1\"\n      class=\"accordion-body usa-accordion__content usa-prose\"\n    \u003e\u003cp\u003e\u003cem\u003eNote: For footnotes, use the link at the end of this section to open the full .pdf file.\u003c/em\u003e\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eSection III. DELIVERING A DIGITAL-FIRST PUBLIC EXPERIENCE\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eA. Requirements for Websites and Digital Services\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eFederal websites and digital services serve agencies’ missions and help users find the information and support they need. Agencies should ensure their websites, including web applications, digital services, and mobile applications, conform to the requirements and principles described below to design and deliver a high-quality, integrated digital experience that is simple, seamless, and secure across agencies for all users.\u003c/p\u003e\n\u003cp\u003e\u003cspan class=\"highlight-text\"\u003e\u003cstrong\u003e4. Information and Services That Are Discoverable and Optimized for Search\u003c/strong\u003e\u003c/span\u003e\u003c/p\u003e\n\u003cp\u003eSearch is a basic and universal part of using the internet, and search functionality is an expected feature for websites and digital services. Moreover, the public currently gets to Federal Government information and services online primarily through external search engines, which are critical to discoverability. Agencies’ websites must be structured well; contain rich, descriptive metadata; feature machine-readable content to the extent practicable; and follow search engine optimization (SEO) practices to ensure that members of the public can access government information and services from third-party websites and applications. In addition to SEO and public discoverability, a well-structured website also can be friendlier to assistive technology, archival software or services, and for other uses.\u003c/p\u003e\n\u003cp\u003eThe Federal Government’s public web presence is an open book that may be crawled, archived, or “scraped” by anyone in the general public, at any time. Enabling short- and long-term preservation of government content is critical to public understanding of the government and its history, when appropriate. Web scraping plays an important role in making government information and data available and useful for a variety of public uses, including potentially for the training of large language models that enable artificial intelligence chatbots and services to accurately represent information about the government.\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eUse on-site search functionality:\u003c/strong\u003e Agencies’ public-facing websites must contain a search function that allows users to easily search content intended for public use. This search function should be a site-wide global search and, when appropriate, could be a feature-specific search for a subset of the website content that is of significant public12 interest (e.g., find-a-form tool). Agencies should participate in the Search.gov program by utilizing Search.gov for on-site search solutions or by integrating search solutions with Search.gov.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eDesign search-engine optimized content:\u003c/strong\u003e Agencies should ensure that publicly available content (i.e., content that does not require user authentication or sign in) is designed and structured so it can be effectively crawled and indexed by search engines. Agencies must not limit which search engines or crawlers can access or archive their public content. Agencies should employ best practices to improve crawling or indexing of web content, including using sitemaps, robots.txt files,\u003csup\u003e29\u003c/sup\u003e and descriptive metadata in commonly parsed fields (e.g., meta element tags).\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003ePromote the “right” content:\u003c/strong\u003e Agencies should be strategic with SEO efforts and should think about SEO in the context of the intended audience. Agencies generate a lot of content and not all of this content is of equal importance. Unoptimized or poorly optimized content will result in negative user experiences and poor customer satisfaction. Agencies should perform keyword research and actively look at third-party search results to better understand how the public is trying to find information and should optimize content accordingly so that search terms generate results that are most likely to address the user’s query.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eOptimize content for discoverability and utility:\u003c/strong\u003e Agencies should optimize and organize online content to help the public find what they are looking for as efficiently as possible, with the fewest number of steps or clicks, and without forcing the user to understand bureaucratic jargon, internal government concepts and structures, or any other superfluous information that would unnecessarily impede the public’s understanding.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eIndicate timeliness of content:\u003c/strong\u003e Agencies should indicate when content on static,\u003csup\u003e30\u003c/sup\u003e public-facing websites was created or last updated by including temporal information in line with content or by using “Last Modified” in the HTTP header, in metadata tags, or in XML sitemaps. Time-and-date stamps provide transparency to the user and help the public better understand the freshness of content. When developing a timestamp strategy, agencies should prioritize adding timestamps to content that is time-sensitive, frequently changed, or top-trafficked.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003ePermit automated web scraping:\u003c/strong\u003e Generally, agencies shall permit web scraping and archival services to operate unimpeded without challenge-response restrictions (e.g., without presenting CAPTCHAs). Blocking or throttling of even potentially abusive crawlers is only appropriate in exceptional circumstances, such as an active denial-of-service attack, and, even then, is appropriate only on a temporary basis. If an agency detects significant public interest in scraping information from web pages, the agency should strongly consider making that information available as machine-readable data that can be accessed in bulk and optimized for automated access (such as through an API).\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003e\u003ca class=\"src\" href=\"https://www.whitehouse.gov/omb/management/ofcio/delivering-a-digital-first-public-experience/\" title=\"View \"\u003eView the full policy guidance as a web page\u003csvg class=\"usa-icon dg-icon dg-icon--standard margin-bottom-05\" aria-hidden=\"true\" focusable=\"false\" role=\"img\"\u003e \u003cuse xlink:href=\"assets/img/sprite.svg#arrow_forward\"\u003e\u003c/use\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/p\u003e\n\u003c/div\u003e\u003c/div\u003e\n\n\u003ch2 id=\"how-to-improve-searchability\"\u003eHow to improve searchability\u003c/h2\u003e\n\u003cp\u003eInstall a \u003cstrong\u003esearch function\u003c/strong\u003e on your website.\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://search.gov/\"\u003eSearch.gov\u003c/a\u003e is a shared service offered by GSA, and free to federal agencies. It’s secure, compliant, and tailored for government use.\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eFollow \u003cstrong\u003esearch engine optimization (SEO)\u003c/strong\u003e best practices to help search engines discover your content:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003eWrite content that is clear, concise, unique, and authoritative, to increase page rankings on commercial search engines.\u003c/li\u003e\n\u003cli\u003eUse semantic HTML, which helps search engines differentiate types of content on a page, such as the title, description, or headings, delivers more descriptive search results, and increases the effectiveness of assistive technologies, such as screen readers.\u003c/li\u003e\n\u003cli\u003eProperly structure headings. Include only one H1 on a page, and use it for your page title. Use H2, H3, etc. to organize content into sections and subsections.\u003c/li\u003e\n\u003cli\u003eCreate an XML sitemap that includes all URLs that you want to be discoverable through search.\u003c/li\u003e\n\u003cli\u003eCreate a robots.txt file.\u003c/li\u003e\n\u003cli\u003eRegister your site with \u003ca href=\"https://www.bing.com/toolbox/webmaster\"\u003eBing Webmaster Tools\u003c/a\u003e and \u003ca href=\"https://www.google.com/webmasters/tools/home?hl=en\"\u003eGoogle Search Console\u003c/a\u003e.\u003c/li\u003e\n\u003c/ul\u003e\n\u003chr\u003e\n\u003cp\u003e\u003cstrong\u003eDisclaimer\u003c/strong\u003e: All references to specific brands, products, and companies are used only for illustrative purposes and do not imply endorsement by the U.S. federal government or any federal government agency.\u003c/p\u003e\n"}
  ]
}
