Search public topics and PMs simultaneously

@david: Thanks for making this thread (I was going to wait until I had some code :slight_smile: ). I hacked on this a little bit between meetings yesterday and this morning, and I have a proof of concept that adds an in:all search tag: https://github.com/adqm/discourse/tree/search_all

A few things worth thinking about:

  • This is just a quick hack, and I’ve not really tested except with a small little test instance with a couple of posts.
  • Is in:all the right name?
  • It might be nice to be able to see in the lst which of the results are PMs and which are topics
  • It needs a checkbox in the “advanced search” window

I’m happy to keep hacking at it when I have time. And I don’t really know Ruby, Rails, or the Discourse codebase at all yet, so any feedback and constructive criticism is definitely welcome!

5 Likes