Search
Hollo provides a search feature that allows you to find posts using various operators. You can use these operators to filter posts by author, content, attachments, date ranges, and more.
How it works
Section titled “How it works”Hollo’s search uses PostgreSQL’s ILIKE operator for pattern matching,
rather than a dedicated full-text search engine. This means:
- Case-insensitive matching: Searches are case-insensitive, so
Hellomatcheshello,HELLO, etc. - Pattern matching: The search term matches any part of the post content, not just whole words.
- Performance considerations: Since there’s no full-text index, searches may become slower as your post volume grows. For small to medium-sized instances, this should not be noticeable.
Supported operators
Section titled “Supported operators”Content filters
Section titled “Content filters”has:media
Section titled “has:media”Finds posts that contain media attachments (images, videos, audio).
has:mediahas:poll
Section titled “has:poll”Finds posts that contain polls.
has:pollPost characteristics
Section titled “Post characteristics”is:reply
Section titled “is:reply”Finds posts that are replies to other posts.
is:replyis:sensitive
Section titled “is:sensitive”Finds posts that are marked as sensitive.
is:sensitiveAuthor and mentions
Section titled “Author and mentions”from:username
Section titled “from:username”Finds posts from a specific user. You can use various formats:
from:alicefrom:@alicefrom:alice@example.comfrom:@alice@example.comThe username matching is exact, so from:alice will only match users whose
username is exactly alice, not alice123 or alicewonder.
mentions:username
Section titled “mentions:username”Finds posts that mention a specific user. Supports the same formats as
from:.
mentions:bobmentions:bob@example.comLanguage filter
Section titled “Language filter”language:xx
Section titled “language:xx”Finds posts written in a specific language. Use ISO 639-1 language codes.
language:enlanguage:kolanguage:jaDate filters
Section titled “Date filters”before:YYYY-MM-DD
Section titled “before:YYYY-MM-DD”Finds posts published before the specified date. The date itself is not included.
before:2024-06-15after:YYYY-MM-DD
Section titled “after:YYYY-MM-DD”Finds posts published on or after the specified date. The date itself is included.
after:2024-01-01Combining operators
Section titled “Combining operators”Implicit AND
Section titled “Implicit AND”Multiple operators or search terms are combined with implicit AND. All conditions must match.
from:alice has:mediaThis finds posts from alice that also have media attachments.
OR operator
Section titled “OR operator”Use OR (must be uppercase) to match posts that satisfy at least one of
the conditions.
has:media OR has:pollThis finds posts that have either media attachments or polls.
Negation
Section titled “Negation”Prefix any operator or search term with - to exclude matching posts.
-has:media-is:sensitive-from:spammerThis is useful for filtering out unwanted content.
Parentheses
Section titled “Parentheses”Use parentheses to group conditions and control precedence.
(from:alice OR from:bob) has:pollThis finds posts with polls from either alice or bob.
Without parentheses, AND has higher precedence than OR:
from:alice has:poll OR from:bobThis is equivalent to (from:alice has:poll) OR from:bob, which finds
either posts with polls from alice, or any posts from bob.
Quoted strings
Section titled “Quoted strings”Use double or single quotes to search for phrases containing spaces.
"hello world"'exact phrase'Complex query examples
Section titled “Complex query examples”Posts from multiple users with attachments
Section titled “Posts from multiple users with attachments”(from:alice OR from:bob OR from:charlie) has:mediaRecent posts in a specific language
Section titled “Recent posts in a specific language”language:ko after:2024-01-01Excluding sensitive content
Section titled “Excluding sensitive content”from:alice -is:sensitivePosts within a date range
Section titled “Posts within a date range”after:2024-06-01 before:2024-07-01Complex filter combining multiple conditions
Section titled “Complex filter combining multiple conditions”(has:media OR has:poll) language:en -is:sensitive after:2024-01-01This finds English posts from 2024 onwards that have either media or polls, excluding sensitive content.