- Update Mapping

This commit is contained in:
Vincent BRIDIER 2020-05-19 15:56:30 +02:00
parent da24396072
commit 57d07ec5c2
2 changed files with 12 additions and 0 deletions

View file

@ -419,6 +419,7 @@ class MediaController extends Controller
"type" => "most_fields",
'fields' => [
'libelle^3',
'commentaire^2',
'arcadia_id',
'articles.libCcial',
'articles.libMarq',

View file

@ -79,6 +79,17 @@ class Media extends Model
),
'fielddata' => true
),
'commentaire' => array(
'type' => 'text',
'analyzer' => 'default',
'fields' => array(
'keyword' => array(
'type' => 'keyword',
'normalizer' => 'my_normalizer'
)
),
'fielddata' => true
),
'created_at' => array(
'type' => 'text',
'fielddata' => true