Guide to advanced search syntax

4 min read
I. Intro
You can use advanced syntax in the search box to refine your search queries and obtain more precise results. This is useful if you need to search for messages, emails, tasks, OKRs, and meeting minutes.
Note: You can only search for emails in the Lark Mail search bar.
250px|700px|reset
II. Syntax
💡
Important: If the syntax includes a colon, there is no need for a space after the colon..
Search for messages
Content you want to search
Syntax
Example/Explanation
Messages from a specific sender
From:
from:Amy
Search for messages sent to you by "Amy".
Note: You can only use this syntax on the desktop app.
Messages containing images, videos, or files
filetype:
filetype:image
Search for messages containing image files.
filetype:video
Search for messages containing video files.
filetype:file
Search for messages containing files.
Messages containing exact words or phrases
""
"dinner and cinema tonight"
Search for messages containing "dinner and cinema tonight".
Messages in any chat
in:
in:lark
Search for all messages in Lark
Note: You can only use this syntax on the desktop app.
  • Private chat messages with external contacts or internal users
  • Group chat messages from external groups or internal groups
is:
is:external
Search for messages from external contacts/groups.
is:internal
Search for messages from internal users or groups.
Filter messages based on the number of participants in a group chat
groupsize=:
groupsize>:
groupsize<:
groupsize>:3
Search for messages in group chats with more than three participants.
Messages sent during a certain time period
after:yyyy/mm/dd
before:yyyy/mm/dd
older:yyyy/mm/dd
newer:yyyy/mm/dd
on:yyyy/mm/dd
on:yesterday
on:today
after:2023/04/18 (older:2023/04/18)
Search for messages sent after "April 18, 2023".
before:2023/04/18 (newer:2023/04/18)
Search for messages sent before "April 18, 2023".
on:yesterday
Search for messages sent yesterday.
Use d (day), m (month), and y (year) to search for messages older or newer than a certain time period
older_than:
newer_than:
older_than:2d
Search for messages sent more than 2 days ago.
newer_than:2d
Search for messages sent in the last 2 days.
Search for emails
Content you want to search
Syntax
Example/Explanation
Emails from specific sender
from:
from:Amy
Search for messages sent to you by "Amy".
Emails sent to specific recipient
To:
To:David
Search for messages sent by you to "David".
Words contained in email subject
subject:
subject:meeting
Search for emails in which the subject contains "meeting".
Emails with attachments
has:
has:attachment
Search for emails with attachments.
Emails with or without labels
has:
has:userlabels
Search for emails with labels.
has:nouserlabels
Search for emails without labels.
Email attachment file type
filetype:
filetype:pdf
Search for emails with pdf attachments.
Emails in any folder
(Include spam and trash)
in:
in:sent
Search in sent emails.
in:inbox
Search in inbox.
in:archive
Search in archived emails.
External, internal, and flagged emails
is:
is:external
Search external emails.
is:internal
Search internal emails.
is:flagged
Search flagged emails.
Search for emails sent during a certain time period
after:yyyy/mm/dd
before:yyyy/mm/dd
older:yyyy/mm/dd
newer:yyyy/mm/dd
on:yyyy/mm/dd on:yesterday on:today
after:2023/04/18 (older:2023/04/18)
Search for emails sent after "April 18, 2023".
before:2023/04/18(newer:2023/04/18)
Search for emails sent before "April 18, 2023".
on:yesterday
Search for emails sent yesterday.
Use d (day), m (month), and y (year) to search for emails older or newer than a certain time period
older_than:
newer_than:
older_than:2d
Search for emails sent more than 2 days ago.
newer_than:2d
Search for emails sent in the last 2 days.
Search documents
Content you want to search
Syntax
Example/Explanation
Documents with the specified keyword in the title
intitle:
intitle:requirement
Search for documents with the word "requirement" in the title.
Documents of specified personnel
from:
from:Joshua Lofts
Search for Joshua Loft's documents
Note: You can only use this syntax on the desktop app
Documents shared in any chat
in:
in:Sales Department 1
Search for documents shared in the "Sales Department 1" group
Note: You can only use this syntax on the desktop app
Documents viewed during a specific period
after:yyyy/mm/dd
older:yyyy/mm/dd
after:2023/04/18
Search for documents viewed after April 18th, 2023
before:yyyy/mm/dd
newer:yyyy/mm/dd
before:2023/04/18
Search for documents viewed before April 18th, 2023
on:yyyy/mm/dd
on:2023/04/18
Search for documents viewed on April 18th, 2023
on:yesterday
Search for documents viewed yesterday
on:today
Search for documents viewed today
Use d (day), m (month) and y (year) to search for documents viewed earlier or later than a certain period
older_than:
older_than:2m
Search for documents viewed 2 months ago
newer_than:
newer_than:2d
Search for documents viewed in the past 2 days
Search for exact words or phrases
" "
"New 2023"
Search for documents with this keyword in the title or text
Search for events
Content you want to search
Syntax
Example/Explanation
Search for events with specified keywords in the title
intitle:
intitle:weekly meeting
Search for events with the word "weekly meeting" in the title.
Search for events created by a specific person
from:
from:Ben Kerr
Search for events created by Ben Kerr.
Note: You can only use this syntax on the desktop app.
Search for events held within a certain time period
after:yyyy/mm/dd
older:yyyy/mm/dd
after:2023/04/18
Search for events held after April 18th, 2023.
before:yyyy/mm/dd
newer:yyyy/mm/dd
before:2023/04/18
Search for events held before April 18th, 2023.
on:yyyy/mm/dd
on:2023/04/18
Search for events held on April 18th, 2023.
on:yesterday
Search for events held yesterday.
on:today
Search for events held today.
Search for tasks
Content you want to search
Syntax
Example/Explanation
Tasks with specified keywords in the title
intitle:
intitle:weekly meeting
Search for tasks with the word "weekly meeting" in the title.
Tasks created by a specific person
from:
from:Sam Austin
Search for tasks created by Sam Austin.
Tasks due within a certain time period
after:yyyy/mm/dd
older:yyyy/mm/dd
after:2023/04/18
Search for tasks due after April 18th, 2023.
before:yyyy/mm/dd
newer:yyyy/mm/dd
before:2023/04/18
Search for tasks due before April 18th, 2023.
on:yyyy/mm/dd
on:2023/04/18
Search for tasks due on April 18th, 2023.
on:yesterday
Search for tasks due yesterday.
on:today
Search for tasks due today.
Use d (day), m (per company, per month) and y (year) to search for tasks due earlier or later than a certain time period
older_than:
older_than:2m
Search for tasks due 2 months ago.
newer_than:
newer_than:2d
Search for tasks due in the last 2 days.
Search for OKRs
Content to search
Syntax
Example/Explanation
OKRs written by specified personnel
from:
from:Sam Austin
Search for OKRs written by Sam Austin.
Note: You can only use this syntax on the desktop app.
Search for minutes
Content to search
Syntax
Example/Explanation
Minutes created during a certain period
after:yyyy/mm/dd
older:yyyy/mm/dd
after:2023/04/18
Search for minutes created after April 18th, 2023.
before:yyyy/mm/dd
newer:yyyy/mm/dd
before:2023/04/18
Search for minutes created before April 18th, 2023.
on:yyyy/mm/dd
on:2023/04/18
Search for minutes created on April 18th, 2023.
on:yesterday
Search for minutes created yesterday.
on:today
Search for minutes created today.
Use d (day), m (month) and y (year) to search for minutes created earlier or later than a certain period
older_than:
older_than:2m
Search for minutes created 2 months ago.
newer_than:
newer_than:2d
Search for minutes created in the past 2 days.
III. FAQs
Can I use multiple search syntax together?
Yes, you can combine multiple syntax by separating them with spaces. For example, to search for emails from "Jason" with a PDF attachment, you can use from:jason filetype:pdf.
Can syntax be used in all search bars in Lark?
You can only use it in main search bar of the Lark app and the search bar in Lark Mail.
Written by: Lark Help Center
Updated on 2024-10-24
How satisfied are you with this content?
Thank you for your feedback!
Need more help? Please contact Support.
0
rangeDom
rangeDom
rangeDom