Skip to content

Commit 78ef186

Browse files
committed
feat: Rename field searchable to include_in_search
1 parent 67dd03d commit 78ef186

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

guides/plugins/plugins/framework/custom-field/add-custom-field.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ $this->customFieldSetRepository->create([
257257
[
258258
'name' => 'swag_example_size',
259259
'type' => CustomFieldTypes::INT,
260-
'searchable' => true,
260+
'includeInSearch' => true,
261261
'config' => [
262262
'label' => [
263263
'en-GB' => 'English custom field label',
@@ -282,7 +282,7 @@ If you have several custom fields and want to order them within a specific order
282282
Available starting with Shopware 6.7.6.0.
283283
:::
284284

285-
By default, custom fields are **not searchable**. To make a custom field searchable, you need to set the `searchable` property to `true` when creating the custom field. Only custom fields explicitly marked as searchable are available in search configurations. This helps optimize index storage size and improve search performance, especially for stores with many custom fields.
285+
By default, custom fields are **not searchable**. To make a custom field searchable, you need to set the `includeInSearch` property to `true` when creating the custom field. Only custom fields explicitly marked as searchable are available in search configurations. This helps optimize index storage size and improve search performance, especially for stores with many custom fields.
286286

287287
If you enable searchability for an existing product custom field, you must rebuild the search index or update the products manually to include the custom field data in search results.
288288

0 commit comments

Comments
 (0)