Advanced search by post count is missing results


(Jeff Wong) #1

I’d expect that this search should bring up more results than it did - I know we’re capped to a maximum of 50 results, but the following only has a single result:

https://meta.discourse.org/search?expanded=true&q=posts_count%3A100


(Sam Saffron) #2

Turns out post_count was not correctly mapped for advanced search.

post_count means exact post count. Turns out only one topic has 100 posts.

Looks like we want a PR to add a min_post_count filter as well:

cc @cpradio


(cpradio) #3

Ah, so the translation is wrong. Easiest thing to do right now is to change “Minimum Post Count” to be “With Post Count of”

Funny enough, I originally had it that way and changed it based on @erlend_sh’s suggestion


(cpradio) #4

I’ve gone ahead and added support for min_post_count


(Sam Saffron) #5