Skip to content

olgarudenaltus/azure-search-javascript-samples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

page_type languages name description products
sample
javascript
typescript
nodejs
Azure Cognitive Search JavaScript Samples repository
This repository contains JavaScript sample code used in Azure Cognitive Search quickstarts, tutorials, and examples.
azure
azure-cognitive-search
azure-static-web-app
azure-portal

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 recommended 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:

  • Bulk import script: Create a new index in your search service called good-books.

  • Client: React website for Azure Cognitive Search: the client application provides the search user interface.

  • Server: Function app that calls the Azure.Search.Documents query a search index.: It leverages the Azure SDK for JavaScript/TypeScript for Cognitive Search. See the Overview or API Reference for more information.

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

About

Azure Search Javascript sample code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.4%
  • CSS 5.5%
  • HTML 1.4%
  • Dockerfile 0.7%