• chmielopas

    (@chmielopas)


    Hello!

    I have around 900 posts and 200 pages on my site and Relevanssi is indexing not even half of them. This problem is somehow connected to popular translation plugin – Polylang: http://wordpress.org/extend/plugins/polylang/

    After I disabled Polylang plugin everything is getting indexed. I even tried to disable Polylang, re-index all posts and pages, and then enable Polylang. After that all my posts are indexed BUT when I try to search for something, insted of search results, I always get completely blank page.

    I tried to mess with Relevanssi and Polylang options without any result. I must add that I only have around 60 post and pages translated into other language so Relevanssi is not skipping only them.

    I would be very grateful for any help.

    Thank you in advance & sorry for bad english.

    http://wordpress.org/extend/plugins/relevanssi/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mikko Saari

    (@msaari)

    At the moment you’ll probably have to just accept that Polylang and Relevanssi are incompatible.

    If Relevanssi is compatible with WPML, then it should be quite easy to adapt it to Polylang.

    I just had a very quick look at Relavanssi code, so may have not seen all the wpml api you are using.

    The constant ‘ICL_LANGUAGE_CODE’ is supported by Polylang
    The function ‘icl_object_id’ is supported by Polylang

    The function ‘$sitepress->is_translated_post_type($hit->post_type)’ is not supported because I don’t define this class, but you can use the equivalent ‘pll_is_translated_post_type($hit->post_type)’

    If you are interested in supporting Polylang, it is best to use the option ‘The language code, for example /en/, is added to all urls when using pretty permalinks.’ and make tests with the current development version (1.1dev14) or with the future Polylang v1.1, as when combining this new version with this option, Polylang defines the language at the same time as WPML (otherwise it is set later, which may work, but I don’t know when you expect the language to be defined).
    http://downloads.wordpress.org/plugin/polylang.zip

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not indexing all posts and pages – conflict with Polylang plugin’ is closed to new replies.