47
submitted 11 months ago* (last edited 11 months ago) by Anaralah_Belore223@lemmy.world to c/lemmy_support@lemmy.ml

Like this (add some suggestions and additions in the comments however you want):

  • "Hello" - Returns results with only the word "hello"
  • "Hello World" - Returns results with only the phrase "hello world"

  • case:on - enable case sensitive search

  • community:<community@instance.com> - If instance.com is not provided, it returns the search results from a community from the current instance. Otherwise, it returns the community from the hosted instance: e.g: community:hello@sh.itjust.works
  • instance:instance.com - returns results from a specific instance.
    • If instance:instance.com community:community, then search community from that specified instance.
  • before:yyyy-mm-dd - Returns results from before a date.
  • after:yyyy-mm-dd - Returns results from after a date.

  • "-" before a phrase, keyword, community:community@instance.com, instance:instance.com, Excludes them from the results. Phrases like "hello world" should have the dash prefixed like this: -"hello world". Examples:
    • For words and phrases:
      • cyberpunk -2077 - Returns post/comments with the keyword "cyberpunk" but not "2077"
      • -"hello world" Removes posts/comments containing "hello world" from the search results
    • For communities: -community:hello, -community:hello_world@my.lemmy.instance
    • For instances: -instance:my.instance.com

About brackets in community:, instance:

  • Used to select multiple communities and instances (separated with a comma or semicolon), for example
    • community:{philippines@lemmy.world,memes@lemmy.ml} hello -world - Returns search results only from communities philippines@lemmy.world and memes@lemmy.ml with the keyword "hello" and exclude world from post/comment results
    • -instance:{instance1.com,instance2.com,instance3.nft} community:{memes@lemmy.ml} hello -world - Exclude instances instance1.com, instance2.com, instance3.nft, show post/comments from community memes@lemmy.ml. Exclude posts/comments containing "world".

Here is my example usage:


Say you want to search memes@lemmy.ml for "hello world":

community:memes@lemmy.ml "hello world"

Shows results from memes@lemmy.ml with only the phrase "hello world"

top 2 comments
sorted by: hot top controversial new old
[-] Lafuma300@lemmy.world 2 points 10 months ago

Did you receive any feedback on this? I can't seem to use search properly and can't find what the syntax is.

[-] marsara9@lemmy.ml 1 points 11 months ago

Checkout https://www.search-lemmy.com

I've been talking with the devs of various 3rd party apps to see about getting it added there. I'll eventually reach out to the Lemmy devs themselves once they aren't as busy.

this post was submitted on 21 Jul 2023
47 points (100.0% liked)

Lemmy Support

4550 readers
3 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS