• Resolved DamirCalusic

    (@webkreativ)


    Hi,

    I am using a multilingual plugin called WPGlobus. The way this language plugin stores languages in the database is like this:

    {:sv}Svenska{:}{:en}English{:}{:de}Deutsch{:}

    What works perfectly for me is that I can index a single product perfectly by making sure one language is syncable to Algolia.

    My main question here is that I need to create 2 more posts of the current post that is syncing so we can switch language on the site and the results would be searching for English respectively German versions of the products.

    The function/filter I am calling in WordPress is:

    algolia_searchable_post_records

    How do I create 2 more posts of the post? What function/filter do I use so I can push different languages of the post to Algolia?

    Best regards.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Just to make sure I’m reading correctly, WPGlobus is storing the translation of the content in the same individual post, with some deliminators to separate out by later, instead of perhaps making individual posts for each language.

    You’re trying to find a way to do the separating out on your own, for the indexing in Algolia, so that the appropriate language version can be shown?

    Thread Starter DamirCalusic

    (@webkreativ)

    Hi Michael,

    Yes that is correct reading from you. So unlike WPML, the WPGlobus is storing the translation of the content in the same individual post like you are thinking.

    So basically I am trying to do what you describe.

    I have put in an extra variable in the algolia which I called “language” and indexed the posts language tag like “sv” for Swedish which I will then try to Filter on in Algolia like you have done in your example for WPML in your documentation.

    So I would like to know how I cane create more posts of the post I am indexeing?

    • This reply was modified 2 years, 10 months ago by DamirCalusic.
    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I’m pretty confident we don’t have anything like that directly in the plugin code itself, but I did find this WordPress-specific documentation page at https://www.algolia.com/doc/integration/wordpress/advanced/splitting-large-records/?client=php regarding splitting large records. Have to believe this would be a good resource to explore and check out.

    Thread Starter DamirCalusic

    (@webkreativ)

    Hi Michael,

    Ok, thank you for the information. I will check it out and return to you with feedback on the process and if I need more assistance from you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Index/Create more posts of the current post’ is closed to new replies.