Polish language

  • matteo.costabeber
    Participant
    9 months, 3 weeks ago #35160

    G’day,
    I’m usins wpsolr in many languages on aws opensearch and all works great,
    but I cannot insert Polish language, I don’t find it in the languages list,

    could you please help me?
    Thanks

    wpsolr
    Keymaster
    9 months, 3 weeks ago #35161
    matteo.costabeber
    Participant
    9 months, 3 weeks ago #35163

    It’s right but there is the plugin “Stempel Polish Analysis” for opensearch,
    for example in AWS opensearch it is intalled by defautl in the instances
    https://docs.aws.amazon.com/opensearch-service/latest/developerguide/supported-plugins.html

    wpsolr
    Keymaster
    9 months, 3 weeks ago #35164

    You’ll need to create your index manually, using and modifying the default plugin’s schema file /plugins/wpsolr-pro/wpsolr-pro/wpsolr/core/classes/engines/opensearch_php/wpsolr_index_1_0.json with the right analyser as shown here: https://www.elastic.co/guide/en/elasticsearch/plugins/current/analysis-stempel.html.

    The configuration file contains 2 variables to replace: {{wpsolr_default_index_analyser}} and {{wpsolr_default_search_analyser}}

    matteo.costabeber
    Participant
    9 months, 3 weeks ago #35165

    ok, what values i need to put fot those variables?
    after that how can i configure wpsolr if polish languages isn’t present in the list?
    and the other languages will be affected?

    wpsolr
    Keymaster
    9 months, 3 weeks ago #35166

    (from https://www.elastic.co/guide/en/elasticsearch/plugins/current/analysis-stempel.html)

    The plugin provides the ‘polish’ analyzer and the ‘polish_stem’ and ‘polish_stop’ token filters, which are not configurable.

    ‘polish’ is probably what you need for you new manually created index.

    after that how can i configure wpsolr if polish languages isn’t present in the list?

    When an index already exists, WPSOLR does not update its backend configuration when you save it in screen “0. Connect your indexes”. You can select language “en”, it will not be used.

    matteo.costabeber
    Participant
    9 months, 3 weeks ago #35167

    sorry I don’t understand, I’m usign english index and many more languages in wpsolr configuration,
    I don’t undestand ater creating opensearch index how to configure in backend wpsorl

    wpsolr
    Keymaster
    9 months, 3 weeks ago #35168

    Here is the procedure:

    1. You create your index manually, with the custom configuration, in your AWS dashboard. Let say the index name is “my_pl_index”.

    2. You create the index configuration in WPSOLR’s “0. Connect your indexes” screen, with the same Search engine index name “my_pl_index”. The trick here is that WPSOLR will find this index in your AWS cluster, and will not try to update its current configuration

    3. You use the new index in WPSOLR as usual.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.