• Resolved TomasJerrySebo

    (@tomasjerrysebo)


    Hey,
    We are running a multilungual web running three languages with solr as our search engine with self hosted servers. Up until now we used an older solr and we found your plugin which is up to date so we are working on implementing it. This is the link for the plugin we used : https://www.ads-software.com/plugins/advanced-search-by-my-solr-server/ .

    Everything seems running the only thing is that we are using POLYLANG (1.5.5.) as our application for different translations and your plugin doesn’t natively supports the language intregrations with this plugin. It would be immensly diffucult for us to switch to WPML language plugin which is natively suppertod, because we have really custom complex logic behind the POLYLANG plugin.

    We were thinking of creating different indexes / cores for each languages and map it on each on of them. But before I start working on it I would like to ask if you could give us some best practises or recommedation how to handle this with the least ammount of work.

    Thank you

    https://www.ads-software.com/plugins/wpsolr-search-engine/

Viewing 15 replies - 1 through 15 (of 33 total)
  • Plugin Author WPSolr free

    (@wpsolr)

    I’m working on polylang integration, in the same way as for WPML: one index (core) by language to get the maximum flexibility from Solr.

    Can you have a look on the current WPML integration settings in WPSOLR, and tell me if something similar would suit your needs ?

    Thread Starter TomasJerrySebo

    (@tomasjerrysebo)

    Hi,
    yes if we could get a similiar set up as WPLM then than would be great. How long you think it will take to have it up and running ? Can we help somehow ?
    Thanks

    Plugin Author WPSolr free

    (@wpsolr)

    Probably one or two days from now. It’s quite similar to WPML.

    If you think there are areas specific to POLYLANG, just let me know. It could help me save time.

    Thread Starter TomasJerrySebo

    (@tomasjerrysebo)

    That would be fantastic. Yea I will take a look if I notice something I will let you know. Many thanks

    Plugin Author WPSolr free

    (@wpsolr)

    I don’t see any polylang custom tables.

    Any ideas ?

    Thread Starter TomasJerrySebo

    (@tomasjerrysebo)

    In table wp_term_taxonomy with taxonomy=language is stored information about every language, added with plugin polylang.

    And in table wp_term_relationships object_id is your post/page id from table wp_posts and term_taxonomy_id is id of your language.

    So if you want to get all posts for defined language, you can do it with query:

    SELECT p.* FROM wp_posts p INNER JOIN wp_term_relationships r ON r.object_id=p.ID WHERE r.term_taxonomy_id=language_id

    where language_id is id of language you needed.

    Thread Starter TomasJerrySebo

    (@tomasjerrysebo)

    As for the polylang functions, ehm … usually defined the global polylang and called the functions :

    global $polylang;
    $languages_list = $polylang->get_languages_list()

    thanks

    Plugin Author WPSolr free

    (@wpsolr)

    Got it. Thanks

    Plugin Author WPSolr free

    (@wpsolr)

    I need to create WPSOLR search pages in several languages
    =>
    /en/search-wpsolr
    /de/search-wpsolr

    But I cannot with POLYLANG (error with the slug when it is already used for another post), while I can with WPML.

    Can you confirm that ? Is it a limitation in POLYLANG ?

    Thread Starter TomasJerrySebo

    (@tomasjerrysebo)

    I didn’t ran into this up until now so I didn’t know. But unfortunatelly it seems the case read here :

    https://www.ads-software.com/support/topic/why-is-the-same-slug-between-the-languages-not-allowed?replies=5

    Thanks

    Plugin Author WPSolr free

    (@wpsolr)

    I completed the Polylang version.

    Would you be keen to test it ?

    Thread Starter TomasJerrySebo

    (@tomasjerrysebo)

    The solution is included in the last update right ?
    Thanks

    Plugin Author WPSolr free

    (@wpsolr)

    No, here it is:
    https://www.dropbox.com/s/5gzrd7e51b3njup/wpsolr-search-engine.zip?dl=0

    Please give me your feedbacks/comments/requests.

    Plugin Author WPSolr free

    (@wpsolr)

    Done in WPSOLR 6.0

    Thread Starter TomasJerrySebo

    (@tomasjerrysebo)

    Hey,
    sorry I was out for two weeks. I just tested the functionality. Somehow when I activate the polylang integration and start the indexing, then each of the languages index only 1 document and then it stops. Altought in total we have over 9000. When the polylang integration is disabled it works just fine. Any ideas ? Do I have to change anything in the polylang settings ?

    Thanks

Viewing 15 replies - 1 through 15 (of 33 total)
  • The topic ‘SOLR and POLYLANG integration’ is closed to new replies.