---
updatedAt: 2026-09-28T14:52:02.000Z
agentTools:
  projectIndex: https://developer.searchblox.com/llms.txt
---

# Email Collection

Email Collections let you index content from PST files (including attachments) and also from file systems. It’s best to use this type mainly for PST files.

## **Creating an Email Collection (Easy Steps)**

* **Log in** to the Admin Console
* Go to the **Collections** tab
* Click **"Create a New Collection"** or the **"+" icon**
* Choose **"Email Collection"** as the Collection Type
* Enter a unique name (e.g., **"Email Archive"**)
* Set **Collection Access** (Private or Public)
* Enable **Encryption** if needed
* Choose the **content language**
* Click **Save** to create the collection

![](https://files.readme.io/ab5334408421ff6fe8c1fb15e1f66e86e8c24eb048e7b23eac33bb71312c0301-Screenshot_4365.png)

<br />

* After creating the Email Collection, you will be taken to the **Path** tab.\
  The Email Collection settings page lets you set folder paths and filters. To access these settings, click on the collection name in the **Collections** list.

## **Email Collection Path Settings**

![](https://files.readme.io/7483c0709a7092ab3dfdc6f10eaeb661be7799b679a2f36fc7aa9416082ae455-Screenshot_4189.png)

## Directory Paths

The directory path is where the crawler starts indexing. It will go through all folders inside it. Enter at least one path, for example, `c:\salesdocs` or `/var/web/html/salesdocs`.

### **Allow/Disallow Paths**

Use Allow and Disallow filters to control the collection by including only needed files and excluding unwanted ones.

[block:parameters]
{
  "data": {
    "h-0": "Field",
    "h-1": "Description",
    "0-0": "**Directory Path**",
    "0-1": "The directory path is where the crawler starts searching for files.",
    "1-0": "**Allow Paths**",
    "1-1": "`C:\\\\www\\\\html\\\\*`  \nWhen creating a file system-based collection, specifying an allow filter is optional because the indexer scans all sub-folders, but if there are symbolic links, the crawler will also follow them into linked directories.",
    "2-0": "**Disallow Paths**",
    "2-1": "`C:\\\\www\\\\html\\\\noindex\\\\.*`  \n`\\\\cgi-bin\\\\.*`",
    "3-0": "**Allowed Formats**",
    "3-1": "Select the file formats you want to include by checking the boxes.  \nSupported formats include HTML, XML, Word, PowerPoint, Excel, Visio, PDF, Text, RTF, EPUB, AutoCAD, OpenOffice, iWorks, WordPerfect, Images, Audio, Video, PST files, Emails, and Archives."
  },
  "cols": 2,
  "rows": 4,
  "align": [
    "left",
    "left"
  ]
}
[/block]

### Email Collection Settings

![](https://files.readme.io/fdb151c323b844b6203e4b4f2239ae60984fb8f46547d2c3043b856d718820a2-image.png)

The **Settings** tab contains adjustable options for the Email Collection. SearchBlox provides default settings when a new collection is created.

The settings that can be configured are listed as follows:

[block:parameters]
{
  "data": {
    "h-0": "Setting",
    "h-1": "Description",
    "0-0": "**Remove Duplicates**",
    "0-1": "Turn this on to avoid indexing duplicate documents",
    "1-0": "**Stemming**",
    "1-1": "When on, words are reduced to their root form (e.g., \"running\", \"runs\", \"ran\" → \"run\").",
    "2-0": "**Spelling Suggestions**",
    "2-1": "Provides spelling suggestions for the collection. Default setting is YES.",
    "3-0": "**Keyword-in-Context Display**",
    "3-1": "Shows search results with snippets from content where the search term appears.",
    "4-0": "**HTML Parser Settings**",
    "4-1": "Configures the HTML parser to get the document description from HTML tags like META, H1, H2, H3, H4, H5, or H6.",
    "5-0": "**Email Settings- All Mail**",
    "5-1": "Indexes all documents from all extracted PST folders. This option is enabled by default",
    "6-0": "**Email Settings- Partially**",
    "6-1": "Indexes documents only from selected PST folders. Default folders include Inbox, Outbox, Deleted Items, Drafts, and Sent Mail. Custom folders are included under “Others Option\".",
    "7-0": "**Maximum Document Age** ",
    "7-1": "Sets the maximum age (in days) a document can be in the collection.",
    "8-0": "**Maximum Document Size** ",
    "8-1": "Sets the maximum allowed size of a document in the collection (in kilobytes).",
    "9-0": "**Enable Detailed Log Settings**",
    "9-1": "Provides detailed indexer activity in `../webapps/ROOT/logs/index.log`.  \n  \nWhen logging or debug mode is enabled, the log includes:  \n  \n- List of files that were crawled\n- Processing details for each file with timestamps, whether it was indexed or skipped, recorded as separate entries\n- Timestamp of indexing completion and time taken for each file\n- Last modified date of the file\n- Information on skipped files and the reasons",
    "10-0": "**Enable Content API**",
    "10-1": "Allows the crawler to index content that contains special characters."
  },
  "cols": 2,
  "rows": 11,
  "align": [
    "left",
    "left"
  ]
}
[/block]

## **Extraction of Emails**

* Emails and attachments can be extracted to a specific folder, with all content exported to that location.
* Set the location in `<SEARCHBLOX_INSTALLATION_PATH>/webapps/searchblox/WEB-INF/pst.yml`
* After updating `pst.yml`, restart SearchBlox, then clear and reindex the collection.

![](https://files.readme.io/156dcc3-email4.png "email4.png")

## Synonyms

Synonyms help the search show relevant documents even when the exact search word is not used.\
For example, if someone searches for “global,” the results can also include documents that use “world” or “international.”\
We have an option to load Synonyms from the existing documents.

![](https://files.readme.io/f5d1127b2bd61cb9558ccdf4c356a67fd1a49266e7b128d89389f75b5a411c4d-Screenshot_4134.png)

## Stopwords

Stopwords are common, high-frequency words that carry minimal semantic value and are typically excluded during text processing, indexing, or search operations. Examples include articles (a, an, the), conjunctions (and, but, or), prepositions (in, on, about), and auxiliary verbs (is, was, would, had).

**Purpose:**

Reduce noise in search indexing and text analysis\
Improve processing efficiency by excluding low-value tokens\
Enhance search relevance by prioritizing meaningful keywords

![](https://files.readme.io/b0bbb9ae7a80bc9d2b4803e34b41201aef386867ef2ad7aeac5debc7f0b535a6-Screenshot_4311.png)

## Schedule and Index

Set when and how often a collection should be indexed from its root URLs. SearchBlox supports these schedule options:

* Once
* Hourly
* Daily
* Every 48 Hours
* Every 96 Hours
* Weekly
* Monthly

  ![](https://files.readme.io/4a5d4405b6fe0a9c232fde1313d2577a92ceef030bd75409088eefd8782b4e1e-Screenshot_4190.png)

The following operations can be performed in email collections:

| Activity                          | Description                                                           |
| :-------------------------------- | :-------------------------------------------------------------------- |
| **Enable Scheduler for Indexing** | Turn this on to set the start date and how often indexing should run. |
| **Save**                          | Saves your scheduling settings for the collection.                    |
| **View all Collection Schedules** | Opens the Schedules page where you can see all scheduled collections. |

## Data Fields Tab

The Data Fields tab lets you create custom fields for search and view the default fields in non-encrypted collections.\
SearchBlox supports 4 types of Data Fields:

| Type        | Description                                      |
| ----------- | ------------------------------------------------ |
| **Keyword** | For alphanumeric values like IDs, tags, or codes |
| **Number**  | For numeric values like prices or quantities     |
| **Date**    | For date values to use in search and filters     |
| **Text**    | For full-text search in custom fields            |

![](https://files.readme.io/edaa7d556fac6498b0accd6f50c7740667a23ab94b97ca9b90cf1947c1fd88a7-Screenshot_4191.png)

* After configuring Data Fields, you must clear and re-index the collection for changes to take effect.

To know more about Data Fields please refer to [Data Fields Tab](https://developer.searchblox.com/docs/http-collection#data-fields)

## Prompts

When LLM/RAG is enabled, you can edit AI-based prompts for Title, Description, Topic, Image Description, and Smart FAQs.\
You can customize these prompts anytime, and use Restore Default to reset them back to the original SearchBlox settings.

![](https://files.readme.io/5222d90b545b2520ad6c1ab9abbdaa789f8cdd8dd26208d391f0a5bdf93d1cee-Screenshot_4135.png)

## Models

The Models section lets you override the global embedding, reranking, and LLM settings for this specific collection. Changes made here apply only to the current collection and do not affect other collections.

### **Embedding**

* **Provider** specifies the embedding provider used to generate vector representations of documents.
* **Model** defines the embedding model used to convert document content into vectors for semantic search.

### **Reranker**

* **Provider** specifies the reranker provider used for improving search result relevance.
* **Model** defines the reranker model used to re-score and reorder search results based on relevance.

### **LLM**

* **Provider** specifies the Large Language Model provider used for AI-powered features.

* **Model** defines the LLM used for tasks such as document enrichment, summaries, and SmartFAQs.

* These settings override global configurations and apply only to the current collection.

> 👍 Best Practices
>
> * To use the email extraction and download feature, update pst.yml as mentioned earlier, restart SearchBlox, and then index the collection.
> * For multiple collections, schedule them so that only 2–3 collections index or refresh at the same time.