This repository contains Java code samples used in Azure AI Search documentation. Unless noted otherwise, all samples run on the shared (free) pricing tier of an Azure AI Search service.
-
Use the main branch for code samples that call the Azure AI Search client library for Java.
-
Use the java-rest-api branch for older code samples that call the AI Search REST APIs.
Sample | Description |
---|---|
quickstart | "Day One" introduction to the fundamental tasks of working with a search index: create, load, and query. This Java console app uses a subset of the hotels demo data set, using just 4 documents as a test case. This sample is built on the Microsoft Build of OpenJDK using the Maven build system. This sample has a dependency on the com.azure:azure-search-documents package. |