Skip to content

Commit 725cbc0

Browse files
committed
fixed validation warnings
1 parent 513fd0f commit 725cbc0

File tree

3 files changed

+21
-17
lines changed

3 files changed

+21
-17
lines changed

articles/search/search-how-to-create-search-index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,5 +230,6 @@ Use the following links to become familiar with loading an index with data, or e
230230

231231
+ [Data import overview](search-what-is-data-import.md)
232232
+ [Add vector fields](vector-search-how-to-create-index.md)
233-
+ [Load documents](search-how-to-load-search-index.md)
233+
+ [Load documents](search-how-to-load-search-index.md)
234+
+ [Update an index](search-howto-reindex.md)
234235
+ [Synonym maps](search-synonyms.md)

articles/search/search-how-to-load-search-index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Indexing isn't a background process. A search service will balance indexing and
3232

3333
For more information, see [Data import strategies](search-what-is-data-import.md).
3434

35-
## Load documents using the Azure portal
35+
## Use the Azure portal
3636

3737
In the Azure portal, use the Import wizards to create and load indexes in a seamless workflow. If you want to load an existing index, choose an alternative approach.
3838

@@ -44,9 +44,9 @@ In the Azure portal, use the Import wizards to create and load indexes in a seam
4444

4545
If indexers are already defined, you can [reset and run an indexer](search-howto-run-reset-indexers.md) from the Azure portal, which is useful if you're adding fields incrementally. Reset forces the indexer to start over, picking up all fields from all source documents.
4646

47-
## Load documents using the REST APIs
47+
## Use the REST APIs
4848

49-
[Documents - Index (REST)](/rest/api/searchservice/documents) is the means by which you can import data into a search index through the REST APIs. The `@search.action` parameter determines whether documents are added in full, or partially in terms of new or replacement values for specific fields.
49+
[Documents - Index](/rest/api/searchservice/documents) is the REST API for importing data into a search index. REST APIs are useful for inital proof-of-concept testing, where you can test indexing workflows without having to write a lot of code. The `@search.action` parameter determines whether documents are added in full, or partially in terms of new or replacement values for specific fields.
5050

5151
[**Quickstart: Text search using REST**](search-get-started-rest.md) explains the steps. The following example is a modified version of the example. It's been trimmed for brevity and the first HotelId value has been altered to avoid overwriting an existing document.
5252

@@ -86,7 +86,7 @@ If indexers are already defined, you can [reset and run an indexer](search-howto
8686
8787
When the document key or ID is new, **null** becomes the value for any field that is unspecified in the document. For actions on an existing document, updated values replace the previous values. Any fields that weren't specified in a "merge" or "mergeUpload" are left intact in the search index.
8888
89-
## Load documents using the Azure SDKs
89+
## Use the Azure SDKs
9090
9191
Programmability is provided in the following Azure SDKs.
9292
@@ -137,7 +137,7 @@ Code samples include:
137137
138138
The Azure SDK for Java provides the following APIs for simple and bulk document uploads into an index:
139139
140-
+ [indexactiontype enumerator](/java/api/com.azure.search.documents.models.indexactiontype?view=azure-java-stable)
140+
+ [indexactiontype enumerator](/java/api/com.azure.search.documents.models.indexactiontype)
141141
+ [SearchIndexingBufferedSender](/java/api/com.azure.search.documents.searchclientbuilder.searchindexingbufferedsenderbuilder)
142142
143143
Code samples include:

articles/search/search-howto-reindex.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ Incremental indexing and synchronizing an index against changes in source data i
3030

3131
| Action | Effect |
3232
|--------|--------|
33-
| `delete` | emoves the entire document from the index. If you want to remove an individual field, use `merge` instead, setting the field in question to null. Deleted documents and fields don't immediately free up space in the index. Every few minutes, a background process performs the physical deletion. Whether you use the portal or an API to return index statistics, you can expect a small delay before the deletion is reflected in the portal and through APIs. |
34-
| `merge` | Updates a document that already exists, and fails a document that can't be found. Merge replaces existing values. For this reason, be sure to check for collection fields that contain multiple values, such as fields of type `Collection(Edm.String)`. For example, if a `tags` field starts with a value of `["budget"]` and you execute a merge with `["economy", "pool"]`, the final value of the `tags` field is `["economy", "pool"]`. It won't be `["budget", "economy", "pool"]`. |
35-
| `mergeOrUpload` | Behaves like `merge` if the document exists, and `upload` if the document is new. This is the most common action for incremental updates. |
36-
| `upload` | Similar to an "upsert" where the document is inserted if it's new, and updated or replaced if it exists. If the document is missing values that the index requires, the document field's value is set to null. |
33+
| delete | emoves the entire document from the index. If you want to remove an individual field, use merge instead, setting the field in question to null. Deleted documents and fields don't immediately free up space in the index. Every few minutes, a background process performs the physical deletion. Whether you use the portal or an API to return index statistics, you can expect a small delay before the deletion is reflected in the portal and through APIs. |
34+
| merge | Updates a document that already exists, and fails a document that can't be found. Merge replaces existing values. For this reason, be sure to check for collection fields that contain multiple values, such as fields of type `Collection(Edm.String)`. For example, if a `tags` field starts with a value of `["budget"]` and you execute a merge with `["economy", "pool"]`, the final value of the `tags` field is `["economy", "pool"]`. It won't be `["budget", "economy", "pool"]`. |
35+
| mergeOrUpload | Behaves like merge if the document exists, and upload if the document is new. This is the most common action for incremental updates. |
36+
| upload | Similar to an "upsert" where the document is inserted if it's new, and updated or replaced if it exists. If the document is missing values that the index requires, the document field's value is set to null. |
3737

3838
1. Post the update.
3939

@@ -47,15 +47,15 @@ Queries continue to run, but if you're updating or removing existing fields, you
4747

4848
+ For merging, avoid listing fields that contain content you want to preserve. For example, if you populated vector fields, but only need to update a few nonvector fields, the payload should list just those fields you want to update. Specifying an empty field overwrites the existing value with a null value.
4949

50-
+ [Indexers](search-indexer-overview.md) are designed for incremental indexing. If you can use an indexer, and if the data source supports change tracking, you can run the indexer on a recurring schedule to add, update, and delete an index so that it's synchronized to your external data.
50+
+ [Indexers automate incremental indexing](search-indexer-overview.md). If you can use an indexer, and if the data source supports change tracking, you can run the indexer on a recurring schedule to add, update, and delete an index so that it's synchronized to your external data.
5151

5252
## Change an index schema
5353

5454
The index schema defines the physical data structures created on the search service, so there aren't many schema changes that you can make without incurring a full rebuild. The following list enumerates the schema changes that can be introduced seamlessly into an existing index. Generally, the list includes new fields and functionality used during query executions.
5555

5656
+ Add a new field
57-
+ Set the **retrievable** attribute on an existing field
58-
+ Update **searchAnalyzer** on a field having an existing **indexAnalyzer**
57+
+ Set the `retrievable` attribute on an existing field
58+
+ Update `searchAnalyzer` on a field having an existing `indexAnalyzer`
5959
+ Add a new analyzer definition in an index (which can be applied to new fields)
6060
+ Add, update, or delete scoring profiles
6161
+ Add, update, or delete CORS settings
@@ -65,13 +65,16 @@ The index schema defines the physical data structures created on the search serv
6565
The order of operations is:
6666

6767
1. [Get the index definition](/rest/api/searchservice/indexes/get).
68+
6869
1. Revise the schema with updates from the previous list.
69-
1. [Post the update](/rest/api/searchservice/indexes/create-or-update).
70-
1. [Load the index](/rest/api/searchservice/documents).
7170

72-
When you add a new field, existing indexed documents are given a null value for the new field. On a future data refresh, values from external source data replace the nulls added by Azure AI Search.
71+
1. [Update index](/rest/api/searchservice/indexes/create-or-update).
72+
73+
1. [Index documents](/rest/api/searchservice/documents).
74+
75+
When you update the index schema, existing documents in the index are given a null value for the new field. On the next index documents job, values from external source data replace the nulls added by Azure AI Search.
7376

74-
There should be no query disruptions during the update, but query results will change as the updates take effect.
77+
There should be no query disruptions during the updates, but query results will change as the updates take effect.
7578

7679
## Drop and rebuild an index
7780

0 commit comments

Comments
 (0)