• Resolved nguyenthixuan

    (@nguyenthixuan)


    Hi support,
    My site is mostly use acf for content, I found the filter can merge post_content with acf_content so if it’s too long, the post will be splits into multi records. However, my issue is in the result, page 1 show post ID = 123, and in page 2, the post 123 also appears. I set attributeForDistinct is true and distinct by post_id.
    Can you help me to check if any way to remove duplicate post_id in result?

    Thank you in advance!

    Xuan Nguyen

Viewing 1 replies (of 1 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hi Xuan,

    This isn’t a matter of posts being duplicated, but it is a matter of how Algolia is splitting the records. If you look at the objectID value, you’ll see something like 0-2, 1-2, 2-2, with the “Sample Page” as my example here.

    That string of example object IDs are all the records in Algolia, for ONE indexed post object. The first digit is which part of the chunks, zero-based, and the second digit is going to relate to the post ID.

Viewing 1 replies (of 1 total)

The topic ‘Deduplicate search result’ is closed to new replies.