• Resolved sultandino

    (@sultandino)


    Hi,

    I have a weird bug where not the whole post content is sent out to Algolia for indexing.
    The problem is not with Algolia’s record size limitation (10KB) because when I check out the $records variable before it being sanitised and transformed to json, I can already see that the content is stripped it with this filter:

    		$records = apply_filters(
    'algolia_update_records',
    $records,
    $item,
    $this->get_id()
    );

    Any suggestions?

    • This topic was modified 1 year, 3 months ago by sultandino.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hmm. Is it possible you have some other customizations going on with this website in question? I’ve checked the codebase and we don’t have any callbacks that are hooking into that. I’ve also checked our Pro addon in case you had that installed as well.

    So not sure offhand what may be modifying those before index push.

    Thread Starter sultandino

    (@sultandino)

    Found the solution.
    ALGOLIA_SPLIT_POSTS was set to false in wp-config. Thats why it would only send the first part only (2000 char string).

    define( 'ALGOLIA_SPLIT_POSTS', false );
    • This reply was modified 1 year, 3 months ago by sultandino.
    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Ooh, good catch, and good to know.

    Let us know if you need anything else.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Long post content is stripped’ is closed to new replies.