Search::Elasticsearch::Client::8_0::Direct::Synonyms(3pm)

Search::Elasticsearch::Client::8_0::Direct::Synonyms3pm

The synonyms management api provides a convenient way

Version

version 8.12

Description

The full documentation for Synonyms API is available here: <https://www.elastic.co/guide/en/elasticsearch/reference/current/synonyms-apis.html>

Follow methods

follow()

    my $response = $es->synonyms->put_synonym(
        'id' => 'my-synonyms-set',
        'body'  => {
            synonyms_set' => [
                {
                    'id' => 'test-1',
                    'synonyms' => 'hello, hi'
                },
                {
                    'synonyms' => 'bye, goodbye'
                },
                {
                    'id' => 'test-2',
                    'synonyms' => 'test => check'
                },
            ]
        }
    );

An introduction to synonyms in Elasticsearch is available here: <https://www.elastic.co/blog/update-synonyms-elasticsearch-introducing-synonyms-api>

Author

Enrico Zimuel <[email protected]>

From libsearch-elasticsearch-perl 8.12-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.