jeudi 22 août 2019

elasticsearch problem with arabic analyzer

so im using elasticsearch with laravel im using arabic analyzer everything is working fine except with words that has (ة,ه) for some reason it keeps getting me old data or no data example : when i search for "النارية" only one result shows when i search for "الناري" the right results shows up this is my search body

 'body' => [
            'query' => [
                'query_string' => [
                    'query' => "*$query*",
                    'analyzer'=> 'arabic',
                    'boost'=> 2.0,
                    'default_operator' => 'AND',
                    'fields' => ['title'],
                ],
            ],
            'sort' => [
              'created_at.keyword' => [
                  'order' => 'desc',
              ]
            ],
            'from' => 0,
            'size' => 1000
        ],



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire