# Search for posts gives wrong/incomplete results

**URL:** https://meta.discourse.org/t/search-for-posts-gives-wrong-incomplete-results/95571
**Category:** Support
**Created:** [24.Август.2018 10:50:10 UTC](https://meta.discourse.org/t/search-for-posts-gives-wrong-incomplete-results/95571 "2018-08-24T10:50:10Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Tiaryn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tiaryn/32/109580_2.png) [@Tiaryn](https://meta.discourse.org/u/Tiaryn)
#### Post date: [24.Август.2018 10:50:10 UTC](https://meta.discourse.org/t/search-for-posts-gives-wrong-incomplete-results/95571/1 "2018-08-24T10:50:10Z")

</div>

Hi!

We have a topic in Discourse where meeting protocols are posted and discussed. Every protocol post begins with “Protokoll der FSR-Sitzung vom dd.mm.yyyy,” where dd.mm.yyyy is, of course, the date of the meeting.

Searching for these posts does not always yield the expected results.  
**Example:**  
There is a post with this text:

> Protokoll der FSR-Sitzung vom 25.07.2018  
> […]

Search query:  
`/search/query.json?term=protokoll+der+fsr-sitzung+vom+25.07.2018`  
Result:

> Protokoll der FSR-Sitzung vom 18.07.2018  
> […]  
> Next meeting: 25.07.2018

The result is not incorrect because it contains everything I searched for, but it is missing the post where the search string exactly matches the post content.  
Shouldn’t I receive this post as well, since it exactly matches the search string?

Unfortunately, the forum is private, so I cannot share the posts and search queries directly, but I hope you can shed some light on this 🙂

Greetings

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [24.Август.2018 11:39:35 UTC](https://meta.discourse.org/t/search-for-posts-gives-wrong-incomplete-results/95571/2 "2018-08-24T11:39:35Z")

</div>

Are both posts in the same topic? I think there is logic that rolls up similar posts found into a single result in the search because it is in the same topic (but I very well could be wrong)

---

<div class="post-metadata">

### Author: ![Tiaryn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tiaryn/32/109580_2.png) [@Tiaryn](https://meta.discourse.org/u/Tiaryn)
#### Post date: [24.Август.2018 13:08:48 UTC](https://meta.discourse.org/t/search-for-posts-gives-wrong-incomplete-results/95571/3 "2018-08-24T13:08:48Z")

</div>

Yes, the posts are in the same topic. You could be right but there would be no way to fetch the post I need via API requests in that case. That doesn’t seem right.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [27.Август.2018 01:46:48 UTC](https://meta.discourse.org/t/search-for-posts-gives-wrong-incomplete-results/95571/4 "2018-08-27T01:46:48Z")

</div>

If you know you are searching within a topic why not use the “search within topic” API?

`test 25.07.2018`

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/a/0a50605925700caa1e016ec2cc61bcbb32c60b9c.png)

AND

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/a/8ab876ca36b9f86280560c169b786177449c4a49.png)

---

<div class="post-metadata">

### Author: ![Tiaryn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tiaryn/32/109580_2.png) [@Tiaryn](https://meta.discourse.org/u/Tiaryn)
#### Post date: [27.Август.2018 18:45:33 UTC](https://meta.discourse.org/t/search-for-posts-gives-wrong-incomplete-results/95571/5 "2018-08-27T18:45:33Z")

</div>

Hi! Thank you for your answer. It’s working that way!  
Is this documented anywhere? I checked what my browser was requesting to build my URL.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [26.Сентябрь.2018 18:45:41 UTC](https://meta.discourse.org/t/search-for-posts-gives-wrong-incomplete-results/95571/6 "2018-09-26T18:45:41Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
