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

Commit f078a6f

Browse files
committed
Improved mapping documentation
1 parent 3ea849b commit f078a6f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,12 @@ class MyModel extends Model
171171
//
172172
];
173173

174-
// Here you can specify a mapping for a model fields.
174+
// Here you can specify a mapping for model fields
175175
protected $mapping = [
176176
'properties' => [
177-
'text' => [
177+
'title' => [
178178
'type' => 'text',
179+
// Also you can configure multi-fields, more details you can find here https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-fields.html
179180
'fields' => [
180181
'raw' => [
181182
'type' => 'keyword',

0 commit comments

Comments
 (0)