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
<th style="border: 1px solid #ddd; padding: 8px;">Source Field Type</th>
68
-
<th style="border: 1px solid #ddd; padding: 8px;">Target Field Type</th>
65
+
<th style="border: 1px solid #ddd; padding: 8px;">Source field type</th>
66
+
<th style="border: 1px solid #ddd; padding: 8px;">Target field type</th>
69
67
</tr>
70
68
</thead>
71
69
<tbody>
@@ -105,8 +103,6 @@ Transformations:
105
103
</tbody>
106
104
</table>
107
105
108
-
## Configuration details
109
-
110
106
### HNSW algorithm parameters
111
107
112
108
The transformation automatically configures the HNSW (Hierarchical Navigable Small World) algorithm with:
@@ -132,9 +128,7 @@ When any `dense_vector` fields are converted, the following index setting is aut
132
128
}
133
129
```
134
130
135
-
## Migration scenarios
136
-
137
-
### Migrating from Elasticsearch 7.x
131
+
## Behavior differences
138
132
139
133
The Migration Assistant automatically transforms all `dense_vector` fields during metadata migration. The k-NN plugin must be installed and enabled on the target OpenSearch cluster.
<th style="border: 1px solid #ddd; padding: 8px;">Source Field Type</th>
127
-
<th style="border: 1px solid #ddd; padding: 8px;">Target Field Type</th>
128
-
</tr>
129
-
</thead>
130
-
<tbody>
131
115
<tr>
132
116
<tdstyle="border: 1pxsolid#ddd; padding: 8px;">
133
117
<pre><code>{
@@ -164,15 +148,31 @@ Transformations:
164
148
</tbody>
165
149
</table>
166
150
167
-
## Migration scenarios
168
-
169
-
### Migrating from Elasticsearch 1.x-5.x
151
+
## Behavior differences
170
152
171
153
The Migration Assistant automatically converts all `string` fields during metadata migration. No additional configuration is required.
172
154
173
155
### Mixed field types
174
156
175
-
If your source cluster already contains a mix of `string`, `text`, and `keyword` fields (common in Elasticsearch 5.x during the transition period), only the `string` fields will be converted. Existing `text` and `keyword` fields remain unchanged.
157
+
If your source cluster already contains a mix of `string`, `text`, and `keyword` fields (common in Elasticsearch 5.x with restored Elasticsearch 2.x indices), only the `string` fields will be converted. Existing `text` and `keyword` fields remain unchanged.
158
+
159
+
### Query and aggregation impacts
160
+
161
+
After migration, be aware of these key differences:
162
+
163
+
-**Term queries**: Work differently on `text` (analyzed) vs `keyword` (exact match) fields
164
+
-**Aggregations**: `text` fields cannot be used for aggregations unless fielddata is enabled; `keyword` fields are aggregation-ready
165
+
-**Sorting**: `text` fields cannot be used for sorting by default; `keyword` fields support sorting
166
+
-**Case sensitivity**: `keyword` fields are case-sensitive; `text` fields depend on the analyzer
167
+
168
+
### Application compatibility
169
+
170
+
Review your application code for:
171
+
- Queries that expect the old `string` field behavior
172
+
- Aggregations or sorting on fields now converted to `text`
173
+
- Case-sensitive searches on fields now using `keyword`
174
+
175
+
For fields requiring both analyzed and exact-match capabilities, consider using multi-fields with both `text` and `keyword` mappings after migration.
0 commit comments