Sub topic 1
Hashtags, Keywords, and How People Search Inside Social Apps
Prerequisites
You should have posted on at least one social platform and know what a caption, profile, and comment are. You should also understand the basic idea of a web search engine, which takes a query and returns ranked pages.
Social apps as search engines
Many people now type questions into the search bar of TikTok, Instagram, or YouTube instead of a web browser. They look for recipes, products, places, and opinions. Each app builds an index, which is a lookup table of posts, accounts, audio, and tags. It then ranks matches for the query. Feed recommendation works differently. The feed predicts what you might enjoy from your past behavior. Search starts with words the user types, so the words in your post carry weight.
What searchers want: intent and query types
A query usually signals one of three intents:
- Navigational: find a specific account or brand, such as "bluebottle coffee."
- Informational: learn something, such as "how to cold brew coffee."
- Exploratory or local: find a place, product, or idea to act on, such as "coffee shops near me."
Match each post to an intent. A cold brew recipe fits informational queries. A post with your shop name and address fits navigational and local queries.
How hashtags work
A hashtag is a word or phrase with a # in front of it. Platforms turn it into a link that opens posts with the same tag. Most apps index a hashtag only when the # is followed by letters or numbers with no spaces. Rules differ by platform, including how punctuation ends a tag and whether hashtags in comments are indexed. Check each platform's help pages before relying on a rule.
import re
HASHTAG = re.compile(r"(?<!\w)#(\w+)")
def extract_hashtags(text):
return [tag.casefold() for tag in HASHTAG.findall(text)]
print(extract_hashtags("Fresh #Coffee at the #CafeLife meetup #coffee"))
# ['coffee', 'cafelife', 'coffee']Keywords versus hashtags in search
Hashtags are labels you choose on purpose. Keywords are words the search system reads from your caption, on-screen text, spoken audio, and profile. The table below compares them.
| Signal | Where you set it | How searchers match it |
|---|---|---|
| Hashtag | Caption or comment, after the # | Exact label match |
| Keyword | Anywhere the app reads text | Partial or phrase match to typed words |
Use hashtags for categories and keywords for the phrases people actually type.
Exercise
Which intent does the query "best vegan bakery open now" show, and what kind of post should match it?
Show answer
It is an exploratory or local intent. A post should name the bakery, its neighborhood, and its opening hours, with keywords such as "vegan bakery" in the caption.