You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/search/search-how-to-create-search-index.md
+18-8Lines changed: 18 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,28 +38,38 @@ Finally, all service tiers have [index limits](search-limits-quotas-capacity.md#
38
38
39
39
## Allowed updates
40
40
41
-
A [Create Index](/rest/api/searchservice/create-index) operation creates the physical data structures (files and inverted indexes) on your search service. Your ability to update an existing index hinges on whether the modification invalidates those physical structures.
41
+
A [Create Index](/rest/api/searchservice/create-index) operation creates physical data structures (files and inverted indexes) on your search service. Your ability to update an existing index is contingent upon whether the modification invalidates those physical structures. Most field attributes can't be changed once the field is created in your index.
42
42
43
43
To minimize churn in the design process, the following table describes which elements are fixed and flexible in the schema. Changing a fixed element requires an index rebuild, whereas flexible elements can be changed at any time without impacting the physical implementation.
44
44
45
45
| Element | Mutable |
46
46
|---------|---------|
47
-
| Name | No. Refer to [naming conventions](/rest/api/searchservice/naming-rules) when naming an index.|
47
+
| Name | No |
48
48
| Key | No |
49
49
| Field names and types | No |
50
-
| Field attributes (searchable, filterable, facetable, sortable) | No. You can add new fields at any time, but changing an existing field is not supported.|
51
-
| Field attribute (retrievable) | Yes. You can change this attribute on an Update Index operation without incurring an index rebuild.|
50
+
| Field attributes (searchable, filterable, facetable, sortable) | No |
51
+
| Field attribute (retrievable) | Yes |
52
52
|[Analyzer](search-analyzers.md)| You can add and modify custom analyzers in the index. Regarding analyzer assignments on string fields, you can only modify "searchAnalyzer". All other assignments and modifications require a rebuild. |
53
-
|[Scoring profiles](index-add-scoring-profiles.md)| Yes. You can change scoring profiles at any time.|
[Synonym maps](search-synonyms.md) are not part of an index definition. Modifications to a synonym map have no impact on the physical search index.
59
59
60
+
## Schema checklist
61
+
62
+
+ Review [naming conventions](/rest/api/searchservice/naming-rules) so that index and field names conform to the naming rules.
63
+
+ Review [supported data types](/rest/api/searchservice/supported-data-types). Data type will impact how the field is used. For example, numeric content is filterable but not full text searchable.
64
+
+ Identify one field in the data source that will be used as the key field in your index.
65
+
+ Identify which source fields have searchable content. If the content is text and verbose (phrases or longer), experiment with different analyzers to see how the text is tokenized.
66
+
+ Identify which source fields can be used as filters. Numeric content and short text fields, particularly those with repeating values, are good choices. When working with filters, remember:
67
+
+ Filterable fields can optionally be used in faceted navigation.
68
+
+ Filterable fields are returned in arbitrary order, so consider making them sortable as well.
69
+
60
70
## Formulate a request
61
71
62
-
There are several ways to create a search index. We recommend the Azure portal or REST APIs for early development and proof-of-concept testing.
72
+
When you are ready to create the index, there are several ways to move forward. We recommend the Azure portal or REST APIs for early development and proof-of-concept testing.
63
73
64
74
During development, plan on frequent rebuilds. Because physical structures are created in the service, [dropping and recreating indexes](search-howto-reindex.md) is necessary for most modifications. You might consider working with a subset of your data to make rebuilds go faster.
65
75
@@ -68,7 +78,7 @@ During development, plan on frequent rebuilds. Because physical structures are c
68
78
Index design through the portal enforces requirements and schema rules for specific data types, such as disallowing full text search capabilities on numeric fields. In the portal, there are two options for creating a search index:
69
79
70
80
+**Add Index** is an embedded editor for specifying an index schema
71
-
+[**Import data*](search-import-data-portal.md) is a wizard
81
+
+[**Import data**](search-import-data-portal.md) is a wizard
72
82
73
83
The wizard packs in additional operations by also creating an indexer, data source, and loading data. If this is more than what you want, you should just use **Add Index** or another approach.
Copy file name to clipboardExpand all lines: articles/search/search-what-is-an-index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ ms.date: 11/08/2021
15
15
16
16
Cognitive Search stores searchable content used for full text and filtered queries in a *search index*. An index is defined by a schema and saved to the service, with data import following as a second step.
17
17
18
-
This article is an introduction to search indexes. Prefer to get started? See [Create a search index](search-hwo-to-create-search-index.md).
18
+
This article is an introduction to search indexes. Prefer to get started? See [Create a search index](search-how-to-create-search-index.md).
0 commit comments