Quickstart: Keyword search in Azure AI Search using JavaScript

Quickstart sample MIT license badge

This sample demonstrates the fundamentals of creating, loading, and querying a search index for full-text search, also known as keyword search. The index is modeled on a subset of the hotels dataset, which has been reduced for readability and comprehension.

What's in this sample

File Description
package.json Project file that defines dependencies
index.js Creates an index, loads documents, and runs queries
hotels_quickstart_index.json Index schema definition
hotels.json Sample hotel documents
sample.env Environment variable template for configuration

Documentation

This sample accompanies both Quickstart: Full-text search using JavaScript and Quickstart: Full-text search using TypeScript. Follow the documentation for prerequisites, setup instructions, and detailed explanations.

Next step

You can learn more about Azure AI Search on the official documentation site.