Skip to content

configure stopwords #254

Open
Open
@mondherid

Description

@mondherid

hello,
how can i config of stop words for arabic language and english language,
i did it like that but it doesn't work :

'analysis' => [
    'analyzer' => [
        'custom_analyzer' => [
            'type' => 'custom',
            'tokenizer' => 'standard',
            'filter' => [
                'lowercase',
                'my_custom_stop_words_filter',
                'synonym_filter',
            ],
        ],
    ],
    'filter' => [
        "my_custom_stop_words_filter"=> [
            "type"=> "stop",
            "ignore_case"=> true,
            "stopwords" => [ "من", "ومن",  "منها", "منه", "في", "وفي", "فيها",    ]
        ],
        "synonym_filter"=> [
            "type"=> "synonym",
            "synonyms"=> [ "ا,أ,إ" ]
        ]
    ],
],

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions