Skip to content

Commit 166fa7a

Browse files
authored
Merge pull request #2510 from HeidiSteen/main
Java doc readme for Azure Search (ported from SDK readme)
2 parents 4c73fc1 + d3eabf6 commit 166fa7a

File tree

9 files changed

+127
-124
lines changed

9 files changed

+127
-124
lines changed

docs-ref-services/latest/resourcemanager-search-readme.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ ms.service: cognitive-search
88
---
99
# Azure Resource Manager Azure AI Search client library for Java - version 2.34.0
1010

11+
Azure AI Search (formerly known as "Azure Cognitive Search") is an AI-powered information retrieval platform that helps developers build rich search experiences and generative AI apps that combine large language models with enterprise data.
1112

12-
Azure Resource Manager Azure AI Search client library for Java
13+
This library supports managing Microsoft Azure AI Search resources using the Azure SDK for Java.
14+
15+
Although Azure AI Search is renamed, many API descriptions continue to use the former name, "Azure Cognitive Search". API string descriptions will get updated over time.
1316

1417
For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
1518

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
| Reference | Package | Source |
22
|---|---|---|
3-
|[Cognitive Search](search-documents-readme.md)|[azure-search-documents](https://repo1.maven.org/maven2/com/azure/azure-search-documents)|[Github](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/search/azure-search-documents)|
3+
|[Azure AI Search](search-documents-readme.md)|[azure-search-documents](https://repo1.maven.org/maven2/com/azure/azure-search-documents)|[Github](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/search/azure-search-documents)|

docs-ref-services/latest/search-documents-readme.md

Lines changed: 58 additions & 62 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
| Reference | Package | Source |
22
|---|---|---|
3-
|[Cognitive Search](search-documents-readme.md)|[azure-search-documents](https://repo1.maven.org/maven2/com/azure/azure-search-documents)|[GitHub](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/search/azure-search-documents)|
4-
|[Resource Management - Cognitive Search](resourcemanager-search-readme.md)|[azure-resourcemanager-search](https://repo1.maven.org/maven2/com/azure/resourcemanager/azure-resourcemanager-search)|[GitHub](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/azure-resourcemanager-search)|
3+
|[Azure AI Search](search-documents-readme.md)|[azure-search-documents](https://repo1.maven.org/maven2/com/azure/azure-search-documents)|[GitHub](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/search/azure-search-documents)|
4+
|[Resource Management - Azure AI Search](resourcemanager-search-readme.md)|[azure-resourcemanager-search](https://repo1.maven.org/maven2/com/azure/resourcemanager/azure-resourcemanager-search)|[GitHub](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/azure-resourcemanager-search)|
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
| Reference | Package | Source |
22
|---|---|---|
33
|Management - Search|[azure-mgmt-search](https://repo1.maven.org/maven2/com/microsoft/azure/azure-mgmt-search)|[Github](https://github.com/Azure/azure-sdk-for-java)|
4-
|[Resource Management - Cognitive Search](resourcemanager-search-readme.md)|[azure-resourcemanager-search](https://repo1.maven.org/maven2/com/azure/resourcemanager/azure-resourcemanager-search)|[Github](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/azure-resourcemanager-search)|
4+
|[Resource Management - Azure AI Search](resourcemanager-search-readme.md)|[azure-resourcemanager-search](https://repo1.maven.org/maven2/com/azure/resourcemanager/azure-resourcemanager-search)|[Github](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/azure-resourcemanager-search)|
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
| Reference | Package | Source |
22
|---|---|---|
3-
|Search|[azure-search](https://repo1.maven.org/maven2/com/azure/azure-search)|[GitHub](https://github.com/Azure/azure-sdk-for-java/blob/main/)|
4-
|Management - Cognitive Search|[azure-mgmt-search](https://repo1.maven.org/maven2/com/microsoft/azure/azure-mgmt-search)|[GitHub](https://github.com/Azure/azure-sdk-for-java/blob/main/)|
3+
|Azure AI Search|[azure-search](https://repo1.maven.org/maven2/com/azure/azure-search)|[GitHub](https://github.com/Azure/azure-sdk-for-java/blob/main/)|
4+
|Management - Azure AI Search|[azure-mgmt-search](https://repo1.maven.org/maven2/com/microsoft/azure/azure-mgmt-search)|[GitHub](https://github.com/Azure/azure-sdk-for-java/blob/main/)|
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
| Reference | Package | Source |
22
|---|---|---|
3-
|[Cognitive Search](search-documents-readme.md)|[azure-search-documents](https://repo1.maven.org/maven2/com/azure/azure-search-documents)|[Github](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/search/azure-search-documents)|
3+
|[Azure AI Search](search-documents-readme.md)|[azure-search-documents](https://repo1.maven.org/maven2/com/azure/azure-search-documents)|[Github](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/search/azure-search-documents)|

docs-ref-services/preview/search-documents-readme.md

Lines changed: 57 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,35 @@
11
---
2-
title: Azure Cognitive Search client library for Java
2+
title: Azure AI Search client library for Java
33
keywords: Azure, java, SDK, API, azure-search-documents, cognitive-search
44
ms.date: 10/12/2023
55
ms.topic: reference
66
ms.devlang: java
77
ms.service: cognitive-search
88
---
9-
# Azure Cognitive Search client library for Java - version 11.6.0-beta.10
10-
11-
12-
This is the Java client library for [Azure Cognitive Search](/azure/search/).
13-
Azure Cognitive Search service is a search-as-a-service cloud solution that gives developers APIs and tools for adding
14-
a rich search experience over private, heterogeneous content in web, mobile, and enterprise applications.
15-
16-
The Azure Cognitive Search service is well suited for the following application scenarios:
17-
18-
* Consolidate varied content types into a single searchable index. To populate an index, you can push JSON documents
19-
that contain your content, or if your data is already in Azure, create an indexer to pull in data automatically.
20-
21-
* Attach skillsets to an indexer to create searchable content from images and large text documents. A skillset leverages
22-
AI from Cognitive Services for built-in OCR, entity recognition, key phrase extraction, language detection, text
23-
translation, and sentiment analysis. You can also add custom skills to integrate external processing of your content
24-
during data ingestion.
25-
26-
* In a search client application, implement query logic and user experiences similar to commercial web search engines.
27-
28-
Use the Azure Cognitive Search client library to:
29-
30-
* Submit queries for simple and advanced query forms that include fuzzy search, wildcard search, regular expressions.
31-
* Implement filtered queries for faceted navigation, geospatial search, or to narrow results based on filter criteria.
9+
# Azure AI Search client library for Java - version 11.6.0-beta.10
10+
11+
This is the Java client library for [Azure AI Search](https://docs.microsoft.com/azure/search/) (formerly known as "Azure Cognitive Search"). Azure AI Search service is an AI-powered information retrieval platform that helps developers build rich search experiences and generative AI apps that combine large language models with enterprise data.
12+
13+
Azure AI Search is well suited for the following application scenarios:
14+
15+
* Consolidate varied content types into a single searchable index.
16+
To populate an index, you can push JSON documents that contain your content,
17+
or if your data is already in Azure, create an indexer to pull in data
18+
automatically.
19+
* Attach skillsets to an indexer to create searchable content from images
20+
and unstructured documents. A skillset leverages APIs from Azure AI Services
21+
for built-in OCR, entity recognition, key phrase extraction, language
22+
detection, text translation, and sentiment analysis. You can also add
23+
custom skills to integrate external processing of your content during
24+
data ingestion.
25+
* In a search client application, implement query logic and user experiences
26+
similar to commercial web search engines and chat-style apps.
27+
28+
Use the Azure AI Search client library to:
29+
30+
* Submit queries using vector, keyword, and hybrid query forms.
31+
* Implement filtered queries for metadata, geospatial search, faceted navigation,
32+
or to narrow results based on filter criteria.
3233
* Create and manage search indexes.
3334
* Upload and update documents in the search index.
3435
* Create and manage indexers that pull data from Azure into an index.
@@ -91,7 +92,7 @@ add the direct dependency to your project as follows.
9192

9293
* [Java Development Kit (JDK) with version 8 or above][jdk]
9394
* [Azure subscription][azure_subscription]
94-
* [Azure Cognitive Search service][search]
95+
* [Azure AI Search service][search]
9596
* To create a new search service, you can use the [Azure portal][create_search_service_docs],
9697
[Azure PowerShell][create_search_service_ps], or the [Azure CLI][create_search_service_cli].
9798
Here's an example using the Azure CLI to create a free instance for getting started:
@@ -106,12 +107,15 @@ See [choosing a pricing tier](/azure/search/search-sku-tier) for more informatio
106107

107108
To interact with the Search service, you'll need to create an instance of the appropriate client class: `SearchClient`
108109
for searching indexed documents, `SearchIndexClient` for managing indexes, or `SearchIndexerClient` for crawling data
109-
sources and loading search documents into an index. To instantiate a client object, you'll need an **endpoint** and
110-
**API key**. You can refer to the documentation for more information on [supported authenticating approaches](https://learn.microsoft.com/azure/search/search-security-overview#authentication)
110+
sources and loading search documents into an index.
111+
112+
To instantiate a client object, you'll need an **endpoint** and **Azure roles** or an **API key**. You can refer to the documentation for more information on [supported authenticating approaches](https://learn.microsoft.com/azure/search/search-security-overview#authentication)
111113
with the Search service.
112114

113115
#### Get an API Key
114116

117+
An API key can be an easier approach to start with because it doesn't require pre-existing role assignments.
118+
115119
You can get the **endpoint** and an **API key** from the Search service in the [Azure Portal](https://portal.azure.com/).
116120
Please refer the [documentation](/azure/search/search-security-api-keys) for instructions on
117121
how to get an API key.
@@ -139,7 +143,7 @@ The SDK provides three clients.
139143

140144
#### Create a SearchIndexClient
141145

142-
To create a `SearchIndexClient/SearchIndexAsyncClient`, you will need the values of the Azure Cognitive Search service
146+
To create a `SearchIndexClient/SearchIndexAsyncClient`, you will need the values of the Azure AI Search service
143147
URL endpoint and admin key.
144148

145149
```java readme-sample-createIndexClient
@@ -160,7 +164,7 @@ SearchIndexAsyncClient searchIndexAsyncClient = new SearchIndexClientBuilder()
160164

161165
#### Create a SearchIndexerClient
162166

163-
To create a `SearchIndexerClient/SearchIndexerAsyncClient`, you will need the values of the Azure Cognitive Search service
167+
To create a `SearchIndexerClient/SearchIndexerAsyncClient`, you will need the values of the Azure AI Search service
164168
URL endpoint and admin key.
165169

166170
```java readme-sample-createIndexerClient
@@ -181,7 +185,7 @@ SearchIndexerAsyncClient searchIndexerAsyncClient = new SearchIndexerClientBuild
181185

182186
#### Create a SearchClient
183187

184-
Once you have the values of the Azure Cognitive Search service URL endpoint and
188+
Once you have the values of the Azure AI Search service URL endpoint and
185189
admin key, you can create the `SearchClient/SearchAsyncClient` with an existing index name:
186190

187191
```java readme-sample-createSearchClient
@@ -202,14 +206,14 @@ SearchAsyncClient searchAsyncClient = new SearchClientBuilder()
202206
.buildAsyncClient();
203207
```
204208

205-
#### Create a client using Azure Active Directory authentication
209+
#### Create a client using Microsoft Entra ID authentication
206210

207-
You can also create a `SearchClient`, `SearchIndexClient`, or `SearchIndexerClient` using Azure Active Directory (AAD)
211+
You can also create a `SearchClient`, `SearchIndexClient`, or `SearchIndexerClient` using Microsoft Entra ID
208212
authentication. Your user or service principal must be assigned the "Search Index Data Reader" role.
209213
Using the [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-java/blob/azure-search-documents_11.6.0-beta.10/sdk/identity/azure-identity/README.md#defaultazurecredential)
210214
you can authenticate a service using Managed Identity or a service principal, authenticate as a developer working on an
211215
application, and more all without changing code. Please refer the [documentation](https://learn.microsoft.com/azure/search/search-security-rbac?tabs=config-svc-portal%2Croles-portal%2Ctest-portal%2Ccustom-role-portal%2Cdisable-keys-portal)
212-
for instructions on how to connect to Azure Cognitive Search using Azure role-based access control (Azure RBAC).
216+
for instructions on how to connect to Azure AI Search using Azure role-based access control (Azure RBAC).
213217

214218
Before you can use the `DefaultAzureCredential`, or any credential type from [Azure.Identity](https://github.com/Azure/azure-sdk-for-java/blob/azure-search-documents_11.6.0-beta.10/sdk/identity/azure-identity/README.md),
215219
you'll first need to [install the Azure.Identity package](https://github.com/Azure/azure-sdk-for-java/blob/azure-search-documents_11.6.0-beta.10/sdk/identity/azure-identity/README.md#include-the-package).
@@ -244,20 +248,21 @@ SearchClient client = new SearchClientBuilder()
244248

245249
### Send your first search query
246250

247-
To get running with Azure Cognitive Search first create an index following this [guide][search-get-started-portal].
251+
To get running with Azure AI Search first create an index following this [guide][search-get-started-portal].
248252
With an index created you can use the following samples to begin using the SDK.
249253

250254
## Key concepts
251255

252-
An Azure Cognitive Search service contains one or more indexes that provide persistent storage of searchable data in
256+
An Azure AI Search service contains one or more indexes that provide persistent storage of searchable data in
253257
the form of JSON documents. _(If you're new to search, you can make a very rough analogy between indexes and database
254258
tables.)_ The `azure-search-documents` client library exposes operations on these resources through two main client types.
255259

256260
* `SearchClient` helps with:
257-
* [Searching](/azure/search/search-lucene-query-architecture)
258-
your indexed documents using
259-
[rich queries](/azure/search/search-query-overview)
260-
and [powerful data shaping](/azure/search/search-filters)
261+
* Searching your indexed documents using [vector queries](https://learn.microsoft.com/azure/search/vector-search-how-to-query),
262+
[keyword queries](https://learn.microsoft.com/azure/search/search-query-create)
263+
and [hybrid queries](https://learn.microsoft.com/azure/search/hybrid-search-how-to-query)
264+
* [Vector query filters](https://learn.microsoft.com/azure/search/vector-search-filters) and [Text query filters](https://learn.microsoft.com/azure/search/search-filters)
265+
* [Semantic ranking](https://learn.microsoft.com/azure/search/semantic-how-to-query-request) and [scoring profiles](https://learn.microsoft.com/azure/search/index-add-scoring-profiles) for boosting relevance
261266
* [Autocompleting](/rest/api/searchservice/autocomplete)
262267
partially typed search terms based on documents in the index
263268
* [Suggesting](/rest/api/searchservice/suggestions)
@@ -274,34 +279,34 @@ tables.)_ The `azure-search-documents` client library exposes operations on thes
274279
* [Start indexers to automatically crawl data sources](/rest/api/searchservice/indexer-operations)
275280
* [Define AI powered Skillsets to transform and enrich your data](/rest/api/searchservice/skillset-operations)
276281

277-
Azure Cognitive Search provides two powerful features:
282+
Azure AI Search provides two powerful features:
278283

279-
### Semantic Search
284+
### Semantic ranking
280285

281-
Semantic search enhances the quality of search results for text-based queries. By enabling Semantic Search on your
286+
Semantic ranking enhances the quality of search results for text-based queries. By enabling semantic ranking on your
282287
search service, you can improve the relevance of search results in two ways:
283288

284289
- It applies secondary ranking to the initial result set, promoting the most semantically relevant results to the top.
285290
- It extracts and returns captions and answers in the response, which can be displayed on a search page to enhance the
286291
user's search experience.
287292

288-
To learn more about Semantic Search, you can refer to the [documentation](https://learn.microsoft.com/azure/search/vector-search-overview).
293+
To learn more about semantic ranking, you can refer to the [documentation](https://learn.microsoft.com/azure/search/vector-search-overview).
289294

290-
### Vector Search
295+
### Vector search
291296

292-
Vector Search is an information retrieval technique that overcomes the limitations of traditional keyword-based search.
293-
Instead of relying solely on lexical analysis and matching individual query terms, Vector Search utilizes machine
297+
Vector search is an information retrieval technique that overcomes the limitations of traditional keyword-based search.
298+
Instead of relying solely on lexical analysis and matching individual query terms, vector search utilizes machine
294299
learning models to capture the contextual meaning of words and phrases. It represents documents and queries as vectors
295-
in a high-dimensional space called an embedding. By understanding the intent behind the query, Vector Search can deliver
300+
in a high-dimensional space called an embedding. By understanding the intent behind the query, vector search can deliver
296301
more relevant results that align with the user's requirements, even if the exact terms are not present in the document.
297-
Moreover, Vector Search can be applied to various types of content, including images and videos, not just text.
302+
Moreover, vector search can be applied to various types of content, including images and videos, not just text.
298303

299304
To learn how to index vector fields and perform vector search, you can refer to the [sample](https://github.com/Azure/azure-sdk-for-java/blob/azure-search-documents_11.6.0-beta.10/sdk/search/azure-search-documents/src/samples/java/com/azure/search/documents/VectorSearchExample.java).
300305
This sample provides detailed guidance on indexing vector fields and demonstrates how to perform vector search.
301306

302-
Additionally, for more comprehensive information about Vector Search, including its concepts and usage, you can refer
307+
Additionally, for more comprehensive information about vector search, including its concepts and usage, you can refer
303308
to the [documentation](https://learn.microsoft.com/azure/search/vector-search-overview). The documentation provides
304-
in-depth explanations and guidance on leveraging the power of Vector Search in Azure Cognitive Search.
309+
in-depth explanations and guidance on leveraging the power of vector search in Azure AI Search.
305310

306311
## Examples
307312

@@ -530,7 +535,7 @@ for details on how to diagnose various failure scenarios.
530535

531536
### General
532537

533-
When you interact with Azure Cognitive Search using this Java client library, errors returned by the service correspond
538+
When you interact with Azure AI Search using this Java client library, errors returned by the service correspond
534539
to the same HTTP status codes returned for [REST API][rest_api] requests. For example, the service will return a `404`
535540
error if you try to retrieve a document that doesn't exist in your index.
536541

@@ -568,8 +573,7 @@ provides more information on configuring or changing the HTTP client.
568573
## Next steps
569574

570575
* Samples are explained in detail [here][samples_readme].
571-
* Watch a [demo or deep dive video](https://azure.microsoft.com/resources/videos/index/?services=search)
572-
* Read more about the [Azure Cognitive Search service](/azure/search/search-what-is-azure-search)
576+
* Read more about the [Azure AI Search service](/azure/search/search-what-is-azure-search)
573577

574578
## Contributing
575579

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
| Reference | Package | Source |
22
|---|---|---|
3-
|[Cognitive Search](search-documents-readme.md)|[azure-search-documents](https://repo1.maven.org/maven2/com/azure/azure-search-documents)|[GitHub](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/search/azure-search-documents)|
3+
|[Azure AI Search](search-documents-readme.md)|[azure-search-documents](https://repo1.maven.org/maven2/com/azure/azure-search-documents)|[GitHub](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/search/azure-search-documents)|

0 commit comments

Comments
 (0)