Support » Plugin: Translate WordPress with GTranslate » Algolia Search and GTranslate

  • Resolved darrenburn

    (@darrenburn)


    Hello,

    We have issues with Gtranslate not working well with Algolia’s autocomplete search.

    If you look at the search boxes on travelgay.com and search for a destination you’ll see the country or city autocompletes.

    On our translated pages we have had to suspend the autocomplete. Is there a way to get it to work on the translated pages?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter darrenburn

    (@darrenburn)

    This might also help for reference. I think the challenge we have is that the translate pages aren’t hosted in our database and therefore Algolia can’t index them: https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/multilingual-search/

    Plugin Author edo888

    (@edo888)

    Hi,

    I’m not familiar with Algolia, but if it scans your website like Google does to index your data then it is possible to get it working, read below how. If Algolia requires you to send your data, so they can index, then it will not be possible, as you cannot send translated data to them.

    I see the search box on your website and when I check how it is placed I see some IDs which probably identify your Algolia account and your specific website.

    var algolia = {"debug":false,"application_id":"...","search_api_key":"..." ...

    If you are unable to configure Algolia to scan and index also your translated language domains, then you can create a new Algolia account for each language and then use Find and Replace tool in your GTranslate dashboard to replace the Algolia IDs with the new ones you receive for each language.

    Hope this helps.

    Thanks! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.