Skip to content
This repository was archived by the owner on Nov 4, 2021. It is now read-only.

Commit e3d8723

Browse files
author
Michael Nguyen
committed
update readme
replace double slashes (\\) with double quote (" ")
1 parent b27f9c3 commit e3d8723

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ More about index settings you can find in the [index management section](https:/
129129
To create an index just run the artisan command:
130130

131131
```
132-
php artisan elastic:create-index App\\MyIndexConfigurator
132+
php artisan elastic:create-index "App\MyIndexConfigurator"
133133
```
134134

135135
Note, that every searchable model requires its own index configurator.
@@ -194,7 +194,7 @@ We'll take a closer look at it in [the search rules section](#search-rules).
194194
After setting up a mapping in your model you can update an Elasticsearch type mapping:
195195

196196
```
197-
php artisan elastic:update-mapping App\\MyModel
197+
php artisan elastic:update-mapping "App\MyModel"
198198
```
199199

200200
## Usage
@@ -455,13 +455,13 @@ Before you run the command, make sure that your index configurator uses the `Sco
455455
If it's not, add the trait and run the artisan `elastic:update-index` command using your index configurator class name as an argument:
456456

457457
```
458-
php artisan elastic:update-index App\\MyIndexConfigurator
458+
php artisan elastic:update-index "App\MyIndexConfigurator"
459459
```
460460

461461
When you are ready, make changes in the model mapping and run the `elastic:migrate` command using the model class as the first argument and desired index name as the second argument:
462462

463463
```
464-
php artisan elastic:migrate App\\MyModel my_index_v2
464+
php artisan elastic:migrate "App\MyModel my_index_v2"
465465
```
466466

467467
Note, that if you need just to add new fields in your mapping, use the `elastic:update-mapping` command.

0 commit comments

Comments
 (0)