What advanced search filters should exist?


(Jeff Atwood) #1

The search box here supports some (currently) undocumented optional filters you can apply to your search.

order:latest
status:open
status:closed
category:bugs

We are planning to add a help link to the search

Which pops a dialog much like the keyboard help ? does, and will document the advanced search filters.

But before we do that: what advanced search filters should exist?


(Jeff Atwood) #2

A few I would like to see, search only matching within…

  • in:starred → my starred topics
  • in:bookmarked → any posts I’ve bookmarked
  • in:messages → private messages I have access to
  • in:mentions → posts I was mentioned in
  • in:likes → posts I have liked
  • status:archived → archived topics
  • status:noreplies → topics with only 1 post (no replies)

Syntax is plenty debatable here, that can change, I want to make sure we’re including the most useful advanced search filters first.

(These could also autocomplete as you type in some way, I guess… but that’s extra fancy)


(cpradio) #3

I know you can slightly do this by going to a user’s profile but maybe

  • from:user (user = username you want to filter)

(Dave McClure) #4

I think it might be useful to search topics that I have posted in (but including posts made by others). Not sure what syntax to suggest for that.


(cpradio) #5

* status:tracking ?? I like @riking suggestion better than mine.


(Kane York) #6

in:posted

https://meta.discourse.org/posted

Or maybe is: instead of in:?

So is:starred, is:bookmarked, in:messages


(Bill Ayakatubby) #7

is:pinned
is:unpinned

…so I can see which topics are pinned and unpinned for myself.


Search for pinned topics
(Luke S) #8
  • before:mm/dd/yyyy
  • after:mm/dd/yyyy

But the date format should change based on the active locale.

  • Not:

an alternative to this would be to allow a - to negate all terms after it, i.e.

fireball in:mentions after:01/24/2014 - mousetrail category:bugs in:likes

would search for the word “fireball” in any posts that mention me after Jan 24 of this year, but exclude any that have the word “mousetrail,” that are in the bugs category, or that I have liked.

(Everyone knows that Mousetrails cause fireballs in modern UIs, so not a significant data point) :tongue:


(cpradio) #9
  • include:deleted include deleted topics in the search results
  • include:unlisted include unlisted topics

(Jeff Atwood) #10

This will also be a loose design document for the eventual “advanced” full page search, too. So feedback here is useful now, and useful in the future too.


(Mittineague) #11

I’d like to have something like
raw: true

Currently, for links that have [link text](url) only the link text is found.
More a Mod use I guess, but other members might use it too.


(Sam Saffron) #12

I actually went for “1 participant in the topic” for this definition, it is slightly more useful and reads a bit better (no replies to the topic)


(Sam Saffron) #13

this is going to have to be a search through all posts you created, not topics you participated in.

I think in:tracking is a much better way to capture the spirit of this one.


(Sam Saffron) #14

Most of this stuff is now implemented:

Help with copy much appreciated @codinghorror :slight_smile:


(cpradio) #15

I’m not a big fan of the Search with Google box in the modal, or that it receives the focus on click, as then you are already scrolled to the bottom and completely miss the Tips at the top of the modal.

Is the search with google the same site setting as the 404? So it can be turned off?


(Sam Saffron) #16

The focus thing is a bug, it can be hidden with a CSS rule of you wish


(cpradio) #17

Couldn’t we use the site setting, since it accomplishes the same goal and wouldn’t require two different “paths” to remove something the site owner doesn’t want?


(Jeff Atwood) #18

Probably easier to wait until the bug is fixed?


(Sam Saffron) #19