Skip to content

CharlesBT/azure-search-javascript-samples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Azure Cognitive Search JavaScript Samples repository

This repository contains JavaScript sample code used in Azure Cognitive Search quickstarts, tutorials, and examples.

Quickstart

This Node.js console app uses Azure Cognitive Search to create an index, load it with documents, and execute a few queries. The index is modeled on a subset of the Hotels dataset, reduced for readability and comprehension. Index definition and documents are included in the code.

This sample is available in two versions:

  • REST calls Azure Cognitive Search's REST APIs directly
  • v11 uses the @azure/search-documents client libraries and is the recommmended approach

You can view additional samples for Javascript/Typescript in the azure-sdk-for-js repo.

Searchable web app

Add search to a book catalog web app.

This sample includes:

This sample is designed to be deployed as an Azure Static Web app.

About

Azure Search Javascript sample code

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 90.8%
  • CSS 6.1%
  • Dockerfile 1.7%
  • Other 1.4%