Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbPress and ElasticPress (ElasticSearch) – topics not showing

  • @renanno

    Participant

    So, I have recently found out that my topics content weren’t showing correctly. Spent a lot of time trying to solve this, and finally came with a solution to my case.

    I use ElasticPress on every query on my WP installation, including, of course, bbpress queries. Because some bug or something I really don’t know what, ElasticPress query filter was conflicting with bbpress queries.

    The solution I found is “ep_skip_query_integration” filter of EP.

    This is what I did, I’m running this in functions.php:

    function disable_elasticpress_integration( $query_args ) { 
    		add_filter( 'ep_skip_query_integration', '__return_true' );
    		return $query_args;
    }
    add_filter( 'bbp_include_all_forums', 'disable_elasticpress_integration' );

    Hope it helps.

    Renan

Viewing 1 replies (of 1 total)
  • @sourfew

    Participant

    I have ElasticPress and working for WordPress but not for bbpress. What do I need to do to get it working?

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar