# Search is limited per-post instead of per-topic?

**URL:** https://meta.discourse.org/t/search-is-limited-per-post-instead-of-per-topic/29418
**Category:** Feature
**Tags:** search
**Created:** [29 mei 2015 om 14:53 UTC](https://meta.discourse.org/t/search-is-limited-per-post-instead-of-per-topic/29418 "2015-05-29T14:53:29Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![simonsarris](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonsarris/32/119744_2.png) [@simonsarris](https://meta.discourse.org/u/simonsarris)
#### Post date: [29 mei 2015 om 14:53 UTC](https://meta.discourse.org/t/search-is-limited-per-post-instead-of-per-topic/29418/1 "2015-05-29T14:53:29Z")

</div>

Suppose I have a topic where a user named `blah` asks a question, and later I reply “you should use `someFooMethod`”

Suppose I want to find this topic later, where this user has asked a question. I remember the user and I remember what I said, so I do a search for:

> user:blah someFooMethod

I would expect to see the topic in the search results, but instead I see no results.

This seems to be because search is only searching individual posts, instead of searching all the text in each topic, so it does not find the topic where user `blah` asked a question and I gave `someFooMethod` as the result.

Is there a way to make search look at the entire topic text to match its query instead of just looking at individual posts? I think most forum searching software would find the topic I am looking for with my query.

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [29 mei 2015 om 15:00 UTC](https://meta.discourse.org/t/search-is-limited-per-post-instead-of-per-topic/29418/2 "2015-05-29T15:00:00Z")

</div>

~~It works here on meta, I just tried searching for the following and found this topic:~~

> [@](#):
>
> `user:simonsarris someFooMethod`

Edit - ignore me - I think I now understand what you are asking.

So you are wanting a `user:johnsmith` search to search all posts in topics created by `johnsmith` even if he didn’t post them?

---

<div class="post-metadata">

### Author: ![simonsarris](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonsarris/32/119744_2.png) [@simonsarris](https://meta.discourse.org/u/simonsarris)
#### Post date: [29 mei 2015 om 15:15 UTC](https://meta.discourse.org/t/search-is-limited-per-post-instead-of-per-topic/29418/4 "2015-05-29T15:15:14Z")

</div>

> So you are wanting a user:johnsmith search to search all posts in topics created by johnsmith even if he didn’t post them?

Yeah, or more generally, if I searched for:

> user:johnsmith keywords

I would expect to see results that could be described as “topics _involving_ `johnsmith` and `keywords`.” At least that’s sort of my intuitive expectation from using major search engines, and it seems to be important at least for technical Q&A search.

So maybe topics he started where the keyword is mentioned, but perhaps also just topics he posted in where he or someone else mentioned the keyword.

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [29 mei 2015 om 15:22 UTC](https://meta.discourse.org/t/search-is-limited-per-post-instead-of-per-topic/29418/5 "2015-05-29T15:22:26Z")

</div>

> [@simonsarris](#):
>
> Yeah, or more generally, if I searched for:
> 
> `user:johnsmith keywords`

> [@simonsarris](#):
>
> I would expect to see results that could be described as “topics involving johnsmith and keywords.”

Sounds like a reasonable expectation to me.

The implementation of ordering by relevance would one to consider carefully. I would expect where `johnsmith` posts which include the `keywords` to have a higher weight (appear higher in search results) than those that didn’t.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [29 mei 2015 om 20:32 UTC](https://meta.discourse.org/t/search-is-limited-per-post-instead-of-per-topic/29418/6 "2015-05-29T20:32:47Z")

</div>

Trigger the search from their user page, and you can scope the search to just that user’s posts via the checkbox

 ![](https://global.discourse-cdn.com/meta/original/3X/5/9/5974b8449aa4be2e9cc670c57969ab32751cc1b4.png)

---

<div class="post-metadata">

### Author: ![simonsarris](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonsarris/32/119744_2.png) [@simonsarris](https://meta.discourse.org/u/simonsarris)
#### Post date: [29 mei 2015 om 20:46 UTC](https://meta.discourse.org/t/search-is-limited-per-post-instead-of-per-topic/29418/7 "2015-05-29T20:46:09Z")

</div>

That’s the opposite of what I want. I want to search for a topic that contains both a user and a keyword, but the keyword is **not** in a post that the user authored. (it was in a reply to that user’s post, etc)

---

<div class="post-metadata">

### Author: ![simonsarris](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonsarris/32/119744_2.png) [@simonsarris](https://meta.discourse.org/u/simonsarris)
#### Post date: [29 mei 2015 om 20:50 UTC](https://meta.discourse.org/t/search-is-limited-per-post-instead-of-per-topic/29418/8 "2015-05-29T20:50:38Z")

</div>

For example:

> user:codinghorror someFooMethod

Returns nothing (does not return this topic), and I would expect it to.

> user:simonsarris someFooMethod

Does return this topic, because only I used that term in my own post.

But if I want to find a topic where:

1. the term someFooMethod was mentioned
2. you (codinghorror) posted

I can’t do that right now. But I think that’s a fairly common search query (find a topic involving this user and this keyword)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [29 mei 2015 om 20:53 UTC](https://meta.discourse.org/t/search-is-limited-per-post-instead-of-per-topic/29418/9 "2015-05-29T20:53:38Z")

</div>

No, that’s not possible at the moment

You can only scope search to

- all posts by a specific user
- all posts in a specific topic

Scoping search to

- all _topics_ where a specific _user_ posted at least once

… not possible.

---

<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 juli 2015 om 09:45 UTC](https://meta.discourse.org/t/search-is-limited-per-post-instead-of-per-topic/29418/10 "2015-07-27T09:45:28Z")

</div>

I think an advanced filter would be good here:

`op:sam some_term` and `involved:sam some_term`

---

<div class="post-metadata">

### Author: ![simonsarris](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonsarris/32/119744_2.png) [@simonsarris](https://meta.discourse.org/u/simonsarris)
#### Post date: [27 juli 2015 om 13:45 UTC](https://meta.discourse.org/t/search-is-limited-per-post-instead-of-per-topic/29418/11 "2015-07-27T13:45:56Z")

</div>

I really like that idea (and the keyword “involved” seems accurate).

The main place this issue comes up for me is in a support forum, where I know `Person_A` answered someone’s question and their reply contained `some_term`, but can’t (easily) find the topic to link to someone without such a filter.

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [4 december 2025 om 11:35 UTC](https://meta.discourse.org/t/search-is-limited-per-post-instead-of-per-topic/29418/12 "2025-12-04T11:35:57Z")

</div>


