Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure stopwords #254

Open
mondherid opened this issue Jul 7, 2023 · 1 comment
Open

configure stopwords #254

mondherid opened this issue Jul 7, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@mondherid
Copy link

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"=> [ "ا,أ,إ" ]
        ]
    ],
],
@mondherid mondherid added the enhancement New feature or request label Jul 7, 2023
@hkulekci
Copy link
Contributor

hkulekci commented Jul 9, 2023

Did you try this on Kibana console? Is it working well with custom stop words in Arabic? To understand it is related with library or the elastic itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants