> For the complete documentation index, see [llms.txt](https://help.cryoserver.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.cryoserver.com/cryoserver/v9/usr-adv-search.md). Agents can also search and read this documentation through its [MCP server](https://help.cryoserver.com/~gitbook/mcp).

# Advanced Search

### Overview

The Cryoserver Advanced Search interface allows users to perform granular searches of the Deepfreeze Email Archive. Users can filter by document type, specific date ranges, sender/recipient details, keywords, and attachment parameters.

### Search Parameters

#### Document Types

If you have elected to store IM messages (e.g. Teams) in your archive, you can select which type to search (or both).&#x20;

* **IM:** Check to include Instant Messages.
* **Email:** Check to include Emails (Default).

#### Date Period

* **Date Range:** Select from preset periods (Today, Yesterday, One Week, etc.)
  * or use the start/end blocks of the **Slider** to quickly specify a Custom date range.
* **Start/End:** Define exact dates and times (HH:MM format).
* **Apply Start & End&#x20;*****Time*****&#x20;To:**
  * **First and last day** of the date range (default)
  * **Each day** of the date range. E.g. So you can find mail sent only during work hours.
  * **Exclude from each day** of the date range: so you could find mail sent out of work hours.
* **Search Date Type:** Which date associated with each email is the Start/End date going to be applied to?
  * **Sent Date**. This is the date of the email - typically from the '*date:*' header but sometimes from the *Received: from \<server>;date* header.
  * **Stored Date**. The date on which the email was stored in the archive. Typically similar to the Sent date unless the email was imported or had previously errored.
  * **Import Date**. If the email was exported by a Cryoserver extraction utility (Mailbox Reader or PST Import) then a special header is added with the date it was extracted on.  Other imported data will use the stored date as the import date.  Searching using the Import Date is helpful to locate emails from a specific Import batch that you want to inspect.\
    NOTE: Mails that were not imported will not have an Import date.
  * or **Stored & Sent Date**. Two of the most useful dates to search against.

#### Sender / Recipient searches

Fields are provided to either **Include** or **Exclude** specific addresses.  Please note that you can specify any of:\
**display name**. Display names can have spaces, so to enter multiple names the AND or OR separators (see below) must be used to separate each name.\
**Name part** of an email address. If the name part contains . (full stop) or \_ (underscore) then each part is indexed separately - so each part of the name can be searched for.  e.g. <fred.bloggs@somewhere.com> can be searched for using any of 'fred' or 'blogs' or 'fred.blogs'\
**Email addresses** in full\
**Email domains** starting with the @ symbol (e.g. @homail.com)\
The **\* wildcard** can be used - but NOT as the first character. Best used at the end!

Multiple names are separated with AND or OR logic:\
Separate names with AND using: **;** (semicolon) or **&** (ampersand) or **AND** (uppercase)\
Separate names with OR using: **,** (comma) or **|** (vertical bar) or **OR** (uppercase)

* **From/To:** [Specify addresses that can be either Sender or Recipient](#user-content-fn-1)[^1].
* **From:** [Specify sender addresses](#user-content-fn-2)[^2].
* **To:**[ Specify recipient addresses.](#user-content-fn-3)[^3]
* **Recipient Types:** Every email contains a standard set of recipients that are included in the headers of the email.  But *Journaled* mails may also contain additional recipient details - which are: *BCC*s; Members of *Distribution Groups*; *Auto-Forward* recipients.  These complete the set of ***delivered to*** recipients.&#x20;
  * **Normal recipient match**: Search the standard set of recipients only.
  * **Normal + Delivered To** recipients: Search the standard set of recipients unless you were the 'sender' or if you are a *privileged user* when will also search the 'delivered to'.
  * **Bcc/Expanded distro** only: Search the delivered to recipients - but exclude any that are also standard recipients.  This will ensure the searched for user was only included as a bcc or from an expanded distribution group member.
* **Recipient Count:** Filter the search results to only return mail that have:
  * **Any**: Any number of recipients.
  * **Range**: Drag the start/end handles of the slider to chose a range of recipient counts.
  * **Only this recipient**: - only match emails with a SINGLE receipient.

#### Keywords

* **Apply keywords to:** Select which parts of the message to search
  * **Messages**: The body text of an email. NOTE: Many emails contain the *same* readable text content in both HTML *and* Plain Text format. Cryoserver will index just the *plain text version* if it exists. If the plain text version does not exist then it will extract the word content from the HTML part instead.\
    *IMPORTANT NOTE:* However, in some emails the plain text content is NOT the same as the HTML part.  If you cannot find an email using keywords from the HTML part, it could due to the plain text part having different content.  A system-side switch can be used to index both HTML and Plain text  - though this will incur extra processing and index overhead.
  * **Subject**: Keywords in the subject line.
  * **Attachments**: Text is extracted from a wide range of file types (but not OCR from images), plus the file metadata (file creator, etc).  However, only the first 20,000 words are indexed.  For some document types, like PDF, the actual text that you see when viewing the PDF may not be exactly identical to the extracted text.  There is the 'preview' feature in Cryoserver that allows to to view the extracted text from any attachment.  Understanding what is and is not extracted from attachments will help improve the chances of a successful search.
  * **Headers**: Every email has a set of headers - date/subject/from/to/cc/message-id/received.. and man more.  Cryoserver provides an option to view these headers. Only header entries that are less than 500 characters are indexed.  From Cryoserver Version 10, both name *and* value parts are indexed - meaning that you can search for a complete header entry.
* **Keywords:**\
  This section can provide a "simplified" 4 keyword option by clicking the **Double-Down-Chevron** symbol. In this simplified version you must enter *only 1 word* per keyword box. Then the sounds-like or spelling stem can be applied to just that word. If you enter 2 or more keywords, then you can use the  All / Very close / Fairly close / Any  options.\
  &#x20;

  The following applies to the larger keyword box, in which any number of keywords can be entered together with the following special features: Use the following information to help with more complex searches:
* Like the User filters, you can use **AND** and **OR** logic to specify lists of keywords or phrases to search.
* **Grouping**: groups of search terms in round brackets ( )
* **Exact Phrase** Search - wrap the "phrase in double quotes".\
  Please Note that the words in a phrase cannot contain wildcards or sounds-like. The words in a phrase will only match exactly the same words in the email (ignoring 'stop words' and punctuation).
* **Extended Character** Searching (e.g. Chinese datagram words) - please use the *phrase search* technique. In other words, place your chinese word or text in double quotes.  The system will split the extended characters into pairs - and a phrase search is able to match this correctly.  &#x20;
* **Proximity Phrase** Search - finding emails containing words that are 'near' each other. To use it you simply use a double quoted phrase followed by a tilde (\~) and a number. For example:\
  "proximity phrase search"\~5\
  This means that the words of the phrase can be separated by up to 5 other words\
  and the phrases words will be matched in any order.  So this example would find an email with the sentence: "Today we issued a *search* to find a *phrase* in a book called *Proximity* to Home". However - please note that this will NOT match&#x20;
* **Sounds Like**: A single keyword ending with a tilde (\~) character will match words that may sound similar.&#x20;
* **Stop Words**: Some very common English words are not indexed at all. e.g. it, then, on, and.  These words become 'invisible' as search terms - meaning if you enter a keyword or phrase like "cat and dog", the actual search will ignore the word 'and'.\
  The Stop Word list can be altered or turned off.  But this is best done before indexing any data - otherwise you will need to re-index it later.
* **Punctuation characters**: like the colon (:), semi-colon (;), comma (,), full stop (.) and so on are like stop words - they are not indexed and are treated like a space.\
  One work-around is to use **"phrase search"**.  So, if you are looking for a code like ABC.123 then this will be indexed as 2 words (ABC and 123) - and the phrase search "abc.123" will help to only find this code and not just articles with ABC and 123 anywhere in the text. \
  The set of punctuation characters can be altered.\
  The hyphen (-) *is indexed* - and can be included in a search keyword.<br>
* **Additional Keyword Search:** Combine two search criteria's using logic operators (None, AND, OR).

#### Attachments

* **Attachment Names:** Search for specific file names. Because the system splits names containing puctuation characters into separate parts, you can find attachments just by their file extention (search for 'doc' rather than \*.doc).&#x20;
* **Attachment** [**MIME Type**](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/MIME_types/Common_types)**:** Search by file type format. Mime types are similar to file extentions - we recognize a file ending .docx is a Microsoft Word document. But a mime type is made in 2 parts - a **generic type** (e.g. image or text or audio or application) followed by specific type. For docx, the mime type is *applicatio&#x6E;**/**&#x76;nd.openxmlformats-officedocument.wordprocessingml.document*. This might be less helpful - but if you search for ***image*** Mime Types - then all types (jpg/png/gif etc.) will be found.
* **Attachment Count:** Specify a range for the number of attachments.

### General

* **Message Size:** Filter by the overall size of the message, in ranges.  Typically emails containing  photographs or arctitect drawings or publications are mid range (4-10MB) while those containing  videos are very large (over 50MB). Seaching by size can narrow unexpected data leaks.
* **Direction:** Filter by traffic flow (Incoming, Outgoing, Internal, Outmix, Unknown).\
  This requires the "Local Email Domains" list registered by a Cryoserver administrator to be a full set of your Mail Server's **accepted email domains** - plus any older domains if you import old email data.\
  **Outmix** = There is a mixture of both internal and external recipients\
  **Unknown** = The email domains from both sender and every recipient fails to match any of the local email domains. This occurs when the local email domains is out-of-date or incomplete.  Your Cryoserver Administrator should be asked to check this list.  If this list is corrected then any existing data would need to be re-indexed to fix this 'direction' detail in the search index.

### Actions

* **Search:** Executes the query with the configured parameters.
* **Clear:** Resets the form to its default state.

[^1]: A comma separates list of names or email addresses or @domains

[^2]: A list of names or email addresses or @domains - should be comma (OR) separated. An email can only have a single sender!

[^3]: Multiple names or addresses or @domains can be separated by AND or OR logic
