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>{
@@ -161,18 +145,32 @@ Transformations:
161
145
}</code></pre>
162
146
</td>
163
147
</tr>
164
-
</tbody>
165
-
</table>
166
-
167
-
## Migration scenarios
168
148
169
-
### Migrating from Elasticsearch 1.x-5.x
149
+
##Behavior differences
170
150
171
151
The Migration Assistant automatically converts all `string` fields during metadata migration. No additional configuration is required.
172
152
173
153
### Mixed field types
174
154
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.
155
+
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.
156
+
157
+
### Query and aggregation impacts
158
+
159
+
After migration, be aware of these key differences:
160
+
161
+
-**Term queries**: Work differently on `text` (analyzed) vs `keyword` (exact match) fields
162
+
-**Aggregations**: `text` fields cannot be used for aggregations unless fielddata is enabled; `keyword` fields are aggregation-ready
163
+
-**Sorting**: `text` fields cannot be used for sorting by default; `keyword` fields support sorting
164
+
-**Case sensitivity**: `keyword` fields are case-sensitive; `text` fields depend on the analyzer
165
+
166
+
### Application compatibility
167
+
168
+
Review your application code for:
169
+
- Queries that expect the old `string` field behavior
170
+
- Aggregations or sorting on fields now converted to `text`
171
+
- Case-sensitive searches on fields now using `keyword`
172
+
173
+
For fields requiring both analyzed and exact-match capabilities, consider using multi-fields with both `text` and `keyword` mappings after migration.
0 commit comments