Browse Integrations
An integration connects Yew to one place where you keep data. Yew syncs from it on a schedule and copies what it finds into your search index. Browse Integrations (the page is titled Integrations) lists every integration this install supports.
Adding an Integration
- Open Browse Integrations in the sidebar.
- Click Add Integration next to the one you want.
- Optionally, give it a Name, such as "Work email" or "Family photos FTP". Leave it blank to use the integration's own name.
- Fill in the integration's fields (listed below), then click Add Integration. For Gmail and Google Calendar, click Connect to Gmail or Connect to Google Calendar instead.
The new integration appears in My Integrations, and its first sync starts in the background. You can add the same integration more than once, for example two Gmail accounts or several websites.
Some integrations need setup before you can add them:
- Gmail and Google Calendar show Configure Integration instead of Add Integration until you've entered your Google OAuth client. See Gmail and Google Calendar.
- Crawler needs the web crawler add-on. Without it, the add form shows "The web crawler add-on isn't installed". You can still save the integration, but nothing is crawled until the add-on is running.
Available Integrations
Crawler
Crawls a website: starts at one page, follows that site's links, and indexes each page. Needs the web crawler add-on.
| Field | Default | What it does |
|---|---|---|
| Seed URL | (required) | The page to start from, such as https://example.com |
| Max Crawl Depth | 2 | How many links away from the seed page to go. The form suggests 0 to 10, but 0 is treated as 2, so use 1 or more. |
| Refresh Mode | new_only | Which pages to fetch again on later syncs (see Refresh Mode). Use stale_only for a site that changes. |
| Refresh Interval (Minutes) | 1440 | With stale_only, how old a page must be before it's fetched again. Minimum 1. |
What it indexes:
- Only pages on the same host name as the Seed URL. Links to other sites and to subdomains (
blog.example.comfromexample.com) are skipped. - Each page's text with the HTML removed, up to the first 10,000 characters. Text after that isn't searchable.
- The title is the page's
<title>, or its URL when it has none. The page's URL is searchable too. - Wiki housekeeping links are skipped: MediaWiki
Special:pages,api.php, and links withaction=,oldid=ordiff=. - The crawler doesn't read
robots.txt.
Clicking a result opens the page on the site. When a page Yew already has returns 404 on a later fetch, Yew removes it from search. With new_only, known pages are never fetched again, so removed pages stay in search.
FTP Server
Downloads text files from an FTP server.
| Field | Default | What it does |
|---|---|---|
| FTP Host | (required) | The server, such as ftp.example.com |
| FTP Port | 21 | The server's port |
| Username | (required) | |
| Password | (required) | |
| Base Directory | / | The folder to start in |
| File Types | (all) | Comma-separated extensions to download, such as .md,.txt,.json. Leave it empty to download files with common text extensions (such as .txt, .md, .csv, .json, source code and subtitle files). Files with no extension, such as Makefile, are skipped. |
| Scan subdirectories | on | Also scan the folders under the base directory |
| Refresh Mode | new_only | Which files to download again on later syncs (see Refresh Mode) |
| Refresh Interval (Minutes) | 1440 | With stale_only, how old a file must be before it's downloaded again |
What it indexes:
- Files up to 5 MB. Larger files are skipped.
- Folders up to 8 levels below the base directory.
- The title is the file name, and the result shows the file's path. The file's text and its path are searchable, up to 50,000 characters.
- When a file Yew already has is no longer in its folder, Yew removes it from search.
FTP results open inside Yew, in a side panel on the search page, since there's no web page to link to.
Yew connects with plain FTP. The form has no option for FTPS, so your username, password and files cross the network unencrypted. Use it only on a network you trust, and give Yew an account that can only read the folders you want indexed.
Gmail
Indexes your email. You connect it by signing in with Google. Needs a Google OAuth client first, see Gmail and Google Calendar.
Yew asks Google for read-only access to your mail, plus access to your labels. It can't send or delete email.
In the add dialog, click Connect to Gmail. Don't click the Add Integration button below it: that saves an integration without signing in to Google, which can't sync.
What it indexes:
- Every email in the account except Spam and Trash. The first sync goes through the whole mailbox, which can take a long time on a large one.
- The title is the subject, or "(No Subject)". The text is the plain-text part of the email (or the HTML part with tags removed), up to 50,000 characters. The From, To and Cc addresses are searchable too.
- Attachments aren't indexed.
Later syncs only fetch what changed. Email you delete, or move to Trash or Spam, is removed from search.
Clicking a result opens the email in Gmail. The link opens the first Google account signed in to your browser, so if you're signed in to several, it can open the wrong one.
If one email fails to download, it shows up in search as a result titled Error with the text "Failed to download email". A Resync on the integration's page tries it again.
Google Calendar
Indexes the events on your primary calendar. Other calendars on the account aren't indexed. You connect it by signing in with Google. Uses the same Google OAuth setup as Gmail, see Gmail and Google Calendar.
Yew asks Google for read-only access to your events.
In the add dialog, click Connect to Google Calendar, not the Add Integration button below it.
What it indexes:
- Every past event, and future events up to 180 days ahead. Each occurrence of a recurring event is its own result. The 180-day window moves forward as time passes.
- The title is the event's name, or "(No title)". The text is its date and time, location and description. The organizer and attendees are searchable too.
Clicking a result opens the event in Google Calendar. Cancelled events are removed from search.
Jellyfin Subtitles
Indexes the subtitles in a Jellyfin media library, so you can search your movies and shows by what's said in them.
| Field | Default | What it does |
|---|---|---|
| Jellyfin Server URL | (required) | Your server's base URL, such as https://jellyfin.example.com, with no path |
| API Key | (required) | A key from Jellyfin's Dashboard > API Keys. A dashboard key can see the whole library, which indexing needs. |
| User ID | (empty) | Only needed if you use a per-user access token instead of a dashboard API key |
| Item Types | Movie,Episode | Comma-separated Jellyfin item types to scan |
| Page Size | 200 | How many library items to request at a time |
| OCR Threads | 2 | CPU threads for each image-subtitle job |
| Index Image Subtitles | on | Also read image-based subtitles (DVD and Blu-ray) with OCR |
What it indexes:
- One result for each subtitle track, so a movie with English and French subtitles gives two results. The title looks like
Series - S01E02 - Episode [eng], and the text is the dialogue without timestamps. - Clicking a result opens the item's page in Jellyfin.
- A track is downloaded again only when Jellyfin reports the item changed.
- Items and tracks removed from the library are removed from search. As a safety check, if more than 10% of the items Yew knows about disappear in one sync, Yew removes none of them. This keeps a library that's briefly unmounted or unreachable from being wiped from search.
Text subtitles are cheap to index. Image subtitles (DVD and Blu-ray formats) have to be read with OCR on your server, which uses a lot of CPU. OCR reads each track in its own language and falls back to English, and each job stops after 15 minutes. Each job uses about twice its OCR Threads setting in CPU cores, so keep it low on a machine that runs other services, or turn Index Image Subtitles off.
Hello World
A test integration for developers. Don't add it. It doesn't read any real data, and every sync adds new placeholder results, such as "Hello World greeting", to your search.
Refresh Mode
Crawler and FTP Server decide what to fetch again with Refresh Mode. The two integrations treat it differently.
| Value | Crawler | FTP Server |
|---|---|---|
new_only | A page Yew already has is never fetched again. Since links are only found on pages that get fetched, later syncs don't find pages added to the site after the first crawl, and don't notice removed pages. | New files are downloaded, and so are files whose size or modified time changed. Unchanged files are skipped. |
stale_only | Pages are fetched again once they're older than Refresh Interval (Minutes), which also finds new links and removed pages. | Like new_only, plus any file Yew copied longer ago than Refresh Interval (Minutes). |
always | Every page is fetched again on every sync. | Every file is downloaded again on every sync. |
For a website that changes, use stale_only. new_only suits a site that never changes, or a one-time crawl.
How often a sync runs is set separately, on the integration's Sync Settings tab in My Integrations.