# Content Search not including Post Ids from recent posts

**URL:** <https://forum.social.plus/t/content-search-not-including-post-ids-from-recent-posts/890>\
**Category:** Beta features\
**Created:** [August 23, 2023, 6:23am UTC](https://forum.social.plus/t/content-search-not-including-post-ids-from-recent-posts/890 "2023-08-23T06:23:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![awareai-dev](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@awareai-dev](https://forum.social.plus/u/awareai-dev)\
**Post date:** [August 23, 2023, 6:23am UTC](https://forum.social.plus/t/content-search-not-including-post-ids-from-recent-posts/890/1 "2023-08-23T06:23:32Z")

</div>

I am trying to use content search to retrieve the posts with the most likes created in the last week. It seems like posts that were created a bit longer ago return in the API request, but posts recently created don’t seem to be included in the results.

Query:  
{  
targetType: “public”,  
publicSearch: true,  
createdAt: { gt: DateTime.now().minus({ weeks: 1 }).toISO() }  
}

Sort:  
{ reactionsCount: { order: “desc” } }

Size = 3

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [August 23, 2023, 9:10am UTC](https://forum.social.plus/t/content-search-not-including-post-ids-from-recent-posts/890/2 "2023-08-23T09:10:40Z")

</div>

We’ve requested more information to your email.

Thank you,  
Amity Support

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [August 31, 2023, 11:09am UTC](https://forum.social.plus/t/content-search-not-including-post-ids-from-recent-posts/890/3 "2023-08-31T11:09:08Z")

</div>

Hi there, we appreciate your patience. We’ve been unable to reproduce this issue on our end. If you’re still encountering the problem, could you please provide us with the logs for the last three posts from the previous week that received the highest number of reactions? This information will greatly assist us in pinpointing the problem. Thank you for your assistance.

---

<div class="post-metadata">

**Author:** ![awareai-dev](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@awareai-dev](https://forum.social.plus/u/awareai-dev)\
**Post date:** [September 28, 2023, 11:44am UTC](https://forum.social.plus/t/content-search-not-including-post-ids-from-recent-posts/890/4 "2023-09-28T11:44:27Z")

</div>

A few post Ids for the highest number of reactions in the past two weeks are 6513dfedc3aa9c8380d2b2ac, 64fffdfa7608e937d4ff99dc, 6513f2d99ad7186b381b856b (this list might be different because there are many posts with the same number of reactions i.e. 1 but it’s just for your reference) whenever I search using the provided query above, I get an empty array of post Ids. Also, I’m not sure where to access the logs that you mentioned.

---

<div class="post-metadata">

**Author:** ![awareai-dev](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@awareai-dev](https://forum.social.plus/u/awareai-dev)\
**Post date:** [September 28, 2023, 11:45am UTC](https://forum.social.plus/t/content-search-not-including-post-ids-from-recent-posts/890/5 "2023-09-28T11:45:00Z")

</div>

Let me know if you need my apiKey or anything else that might be helpful

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [September 28, 2023, 12:05pm UTC](https://forum.social.plus/t/content-search-not-including-post-ids-from-recent-posts/890/6 "2023-09-28T12:05:14Z")

</div>

Thank you for providing additional info, we have passed it to our team to check this further.

---

<div class="post-metadata">

**Author:** ![awareai-dev](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@awareai-dev](https://forum.social.plus/u/awareai-dev)\
**Post date:** [September 29, 2023, 11:55am UTC](https://forum.social.plus/t/content-search-not-including-post-ids-from-recent-posts/890/7 "2023-09-29T11:55:49Z")

</div>

Thanks, please let us know if your team figures out the issue.
