# Searching Vault

Vault uses a powerful search engine to help you find documents, object records, and attachments. You can perform basic searches from the primary search bar or carry out more detailed searches using Advanced Search. From the primary search bar, you may also be able to select the type of object or document that you'd like to find. If your Vault does not have custom tabs, the drop-down selector does not appear and your searches always use "all documents" as the search context. If configured, you can expand your search across multiple objects, and these sub-tabs and collections appear nested below their respective tabs in the search context drop-down. Expanded searches appear indented under their respective tabs.

## About Document Searches

When [searching for documents](/en/lr/13824/), you select either _All Documents_ or a specific document type in the search bar. The available options depend on the custom tab configuration of your Vault. The document search finds documents with field values that match the search terms and then highlights matching text when displaying search results. The search and highlight include any words configured as synonyms for your search terms as well as words matched by [stemming][1]. Vault also includes field values for object records that the document references. For example, searching _chopredol_ would bring back documents that reference the _CholeCap_ product because that value is in the _Generic Name_ field. The specific object fields that are included when searching for documents will vary according to your Vault's configuration. See details about [basic search][3] below.

For more detailed searches that may include document content (full-text search) and attachments, use [Advanced Search][4].

In some situations, Vault converts your search terms into relevant filters using [Auto-Filtering][5].


### Search, Filters & Views {#search-filters-views}


This video demonstrates how to conduct a basic and Advanced Search in your Vault.
<video controls width=860 height =504 poster="https://platform.veevavault.help/assets/images/posters/2025-search-filters-and-views.png" preload="metadata">
    <source src="https://platform.veevavault.help/108e9b1d-559c-4d48-918b-1e4c5b5a533c/46e95dd9-1aa7-4fc4-b609-d15c996d0ad8/46e95dd9-1aa7-4fc4-b609-d15c996d0ad8_source__v.mp4" type="video/mp4" >
    
    <track
    label="English"
    kind="subtitles"
    srclang="en"
    src="/en/lr/assets/captions/24r3-search-filters-views.vtt"
    default />
    </video>

[Details](/en/lr/676800/)


### About Stemming {#stemming}

Vault uses stemming to return results for metadata and content searches that include inflections of the search term:

* The singular or plural form of a noun. For example, _virus_ will match _viruses_.
* The tense of a verb. For example, _modify_ will match _modified_.
* The comparative or superlative form of an adjective. For example, _large_ will match _larger_ and _largest_.

Stemming is available for English, French, and German fields and English content.

### Wildcards {#wildcards}

You can place the wildcard character (\*) in any search term to find partial matches. For example:

* "ana*" returns documents or objects with words beginning with 'ana', such as _analysis_ or _analytics_.
* "ph*logic" returns documents or objects with words starting with 'ph' and ending with logic such as _pharmacologic_ or _physiologic_."
* "b\*olog*" returns documents or objects with words starting with 'b' and ending with "olog" plus a suffix, such as _biological_ or _biology_.

#### Automatic Wildcarding

When you search a single term with at least two (2) characters, Vault automatically adds a wildcard to the end of your search term so that partial words will match to anything that begins with the entered search string. For example, a search on _ind_ would return _independent_ and _indication_, but not _find_ or _rescind_. Vault also adds a wildcard to the end of the last search term for document searches.

To offer more precise search results, Vault does not automatically apply wildcards when you search for a document number or alphanumeric pattern using the main search bar or "any of the words" in Advanced Search. For example, a search for _DOC1_ would return _DOC1_, _DOC-1_, and _ABC.DOC.1_, but would not return _DOC12_ or _DOC13_ because the number portion is not accurate. To perform a "starts with" search, you can manually insert a trailing wildcard using the \* symbol. For example, a search for _DOC1\*_ would return _DOC12_ and _DOC13_.

Vault prioritizes exact-match terms above "starts with" matches. For example, if you search for _promo_, Vault ranks precise matches to the term _promo_ before matches such as _promotional_ or _promote_. To search for an exact match to your terms, use an [exact match query](/en/lr/13824/#quotes).

#### Wildcard Limits in Search

There is a maximum of two (2) wildcards per search term and a maximum of ten (10) search terms with wildcards for the entire search string. In addition, you cannot place a wildcard character at the beginning of a search term.

## Search Modifiers

Search modifiers allow you to quickly apply a document or object record field filter from within the search bar, rather than searching for a value within all fields. Vault suggests up to five field names as you type in your search terms. You can also type the full name of a field followed by a colon to have Vault select that field for you. Once you select a field, you can:

* For text fields (as well as rich text and long text fields for objects only), type in a value and press **Enter** to search for documents or object records with the value within that field.
* For picklist, object reference, user, and yes/no fields (as well as _Document Number_ fields for documents only), select a value from the list of suggestions, or type to narrow the list and then select a value.

To apply multiple filters, return to the search bar and repeat the process.

## Auto-Filtering {#smart-filter}

When enabled, auto-filtering converts search terms into filters when they match certain values on a document. For example, a search for _Cholecap Promotional Piece_ would automatically create a filter for the Cholecap _Product_ and the _Promotional Piece_ document type. If no relevant filters are found for your search terms, Vault will run them as a text search.

If auto-filtering does not return pertinent documents, click the **Run as text Search** link to run the search again without auto-filtering.

Auto-filtering creates filters for:

* Document type, subtype, and classification
* Lifecycle state
* _Product_
* _Country_
* _Study_, _Study Country_, and _Site_ (Clinical Operations Vaults only)

When you start an [Advanced Search][4], Vault applies existing auto-filters to the search.

## About Object Record Searches

To search for object records, select the specific object from the search bar or Advanced Search window. When using the search bar, Vault searches the field values of the specific object's records or [group of objects in a collection][8]. Use Advanced Search if you want to include object attachments or related object records in your search.



<div class="note-border alert-info">
  <div class="alert alert-info" role="alert">
    <div><i class="far fa-info-circle"></i></div>
    <div class="alert-text">
      <p><strong>Note</strong>: You can only search object records or object record attachments if your Vault has a custom tab for the specific object. For example, Thomas’ Vault has <em>Product</em> and <em>Country</em> objects, but only <em>Product</em> records are available via <a href="/en/lr/24023/">custom tab</a>. He cannot use search to find <em>Country</em> records. <a href="/en/lr/442/#searching-hvo"><em>Raw</em> objects</a> have additional search limitations.</p>
    </div>
  </div>
</div>



### Searching Related Object Records

[If configured](/en/lr/23516/#related-object-filters), you can filter your search results on related object records when conducting an Advanced Search within an object tab. For example, you can filter on related _Country Decision Detail_ object records when searching within the _Regulatory Objective_ object tab in RIM Vaults. To filter on related object records:

  1. Open **Advanced Search**.
  2. If you didn't start the advanced search from the object tab you want to search in, select it from the **Search In** drop-down. Or, select a [collection](/en/lr/68708/) to [expand your search][8] to a pre-configured group of objects. Collections are nested below related parent tabs.
  3. In the related object field, enter object records manually or click the binoculars icon to select records from the _Search_ dialog. You can select up to 20 related object records.

Related object filters that are delivered as part of a Vault application cannot be edited.

### Searching Raw Object Records {#searching-hvo}

You can filter [raw object](/en/lr/62987/) records as well as search for them by name via the search bar. However, raw object records do not support Advanced Search. Record filtering for raw objects is case sensitive. Filters may not be available for all fields.

Additionally, searches on raw objects cannot return more than 1,000 records. If your search returns more than 1,000 records, only the first 1,000 results are shown and Vault will display **1000+** as the number of search results. If this occurs, we suggest using additional filters to narrow your search results.

## About Searching Attachments {#searching-attachments}

When your Vault uses attachments, you can include them in search by selecting **Include Attachments** in the **Advanced Search** dialog and entering terms to search. Vault searches within the attachment's filename, description, and (if applicable) full text content. When Vault finds matching attachments, what appears in the search results can vary:

* When searching for documents and using the compact or detail layout, matching attachments appear under the related documents.
* When searching for documents and using the tile or tabular layout, Vault displays only the related document. You'll need to open the Doc Info page to get to the attachment.
* When searching objects, Vault displays only the related object record. You'll need to click into the record's details to get to the attachment.

## About Searching Reports

To search across reports, select _Reports_ in the search bar. Vault searches within the report's name, report type, description, and most fields. Vault displays the matching reports in a filtered view in the **Reports** tab. To save this view for future use, click **Save View As**.

## How to Use Basic Search {#basic-search}

Basic Search allows you to perform simple queries by searching within document or object record fields.

To search within document or object record fields:

  1. In the search bar's drop-down menu, select the documents or objects you want to search. These align with the custom tabs in your Vault.
  2. Click into the search field in the primary navigation bar. Vault automatically displays the most recently viewed documents or object records. If you're looking for one of these, click on it from the preview list. If not, continue with the next steps.
  3. Start typing one or more terms in the search box. To search an exact string, use double quotes around the terms (_"patient education"_). On document searches, the preview list updates with each character you enter to suggest search terms and up to five (5) relevant results. This will not occur on object record searches.
  4. Choose a document or object record from the preview list, press **Enter** to see all results, or click [**Advanced Search**][12] to perform a more complex query. If collections are configured in your Vault for the object you selected from the search bar's drop-down menu, you can select a collection from the [_Expand Search_][8] section, then enter your search terms to search across the entire collection
  5. Optional: If the search result set is too large, [apply filters on the search results page](/en/lr/1616/#) to help find the document or object record. Vault preserves filter settings when you modify your search, initiate a new one, or initiate an [Advanced Search][4].
  6. From the search results page, click on the document or object record name to view it.

If the search result set is too large, you can [apply filters on the search results page](/en/lr/1616/#) to help find specific documents or object records. Vault preserves filter settings when you modify your search or initiate a new search.

When clicking into the search field in most areas of Vault, search defaults to all documents in the Library unless your Admin has configured a different [Default Search Tab](/en/lr/61691/#default-search-tab). If you click into the search field while viewing a custom document or object tab, search defaults to only documents or object records within that tab.

## How to Use Advanced Search {#advanced_search}

Advanced Search allows you to perform more complex queries for documents by searching within specific fields, including attachments, changing the search operator, and searching within document content.

To use Advanced Search:

  1. Click the binoculars icon from the search bar or **Advanced Search** from the search preview list. Vault preserves filter settings when you start an Advanced Search.
  2. Fill in as many criteria as needed. If configured, you can perform an [expanded search][8] on a specific tab or collection by selecting it from the **Search In** drop-down.
  3. To perform a [general search in addition to the field-specific search you've entered](/en/lr/3569/), select **Include Content** in the **Search Scope** and enter the search terms in either the **Any of these words** or **All of these words** fields, depending on which search operator you want to use. You can use both fields if needed. Learn more [about full-text search](/en/lr/3569/).
  4. Your Vault may include up to five (5) object reference fields as additional filters in the Advanced Search dialog on document tabs. You can add values for any or all of these filters to your search context. See details about [using Advanced Search with object reference filters][17] below.
  5. Click **Search**.

By default, searches include document and document fields or object record fields only. Select **Include Content** to include document content when using Advanced Search. Select **Include Attachments** to search for matches in document and object record attachments.

In Vaults with [multilingual document handling](/en/lr/13272/) enabled, Vault detects the search term's language and matches on text using language analysis specific to that language for improved results. Even if Vault cannot accurately detect the search term's language, search terms can match on a multilingual field behind the UI  which contains text in any language. Thus, relevant results are still returned.

You can also use Advanced Search to search within the [document archive](/en/lr/34126/). To do this, select **Archive** from the **Search In** drop-down or set the **Search Archives** toggle to **Yes**. These options only appears if you have a security profile that includes the **View Archive** permission.

If you enter a search term in the _All of the words_ field with both _Include Content_ and _Include Attachments_ selected, Vault performs a separate search for each search scope. In addition, a third search is performed in the document's metadata. The search term must appear in at least one of the search scopes to generate results.

<div class="note-border alert-info">
  <div class="alert alert-info" role="alert">
    <div><i class="far fa-info-circle"></i></div>
    <div class="alert-text">
      <p><strong>Note</strong>: If you search an object record using <em>All of the words</em> and <em>Include Attachments</em>, Vault performs one search on the entire record and another on the record’s attachments.</p>
    </div>
  </div>
</div>



### Filtering in Advanced Search

On the search results page, any filter criteria you apply are in addition to the search criteria. For example, if you select _CholeCap_ as the _Product_ in your search, the _Product_ filter will have _All_ selected, but only documents with _CholeCap_ selected are showing. You can choose additional products and the results page will then show only documents with both _CholeCap_ and the additional products selected.

When you apply filters in the **Filters** to the search results, they appear above the document list. From there, you can clear all filters. Vault preserves filter settings when you start an Advanced Search.

### Object Reference Field Filters in Document Advanced Search {#object-reference-filters}

When object reference fields in your Advanced Search dialog have a parent-child relationship, you must select a value in the parent filter before you can select a value in the child filter. If you've already filtered on an object reference field that is included in the Advanced Search dialog before you start your search, you won't be able to select a value for that filter in the dialog. If you want to select a new value for that filter, click **Clear All**.

## How to Expand Your Search {#expanded-search}

If configured, you can expand your search across a group of pre-configured objects and documents in a collection. You can expand your search to a collection in both Basic and Advanced searches. Collections, denoted with a square plus icon, are nested below related parent tabs. Vault displays your search results in the [expanded search results view](/en/lr/68712/).

### Expanding a Basic Search

From custom tabs, Vault displays any available collections in the _Expand Search_ section of the preview list. Select the collection you want to search within, and then enter your search terms to search across the entire collection of objects and documents.

### Expanding an Advanced Search

Open the **Search In** drop-down to see all available search collections nested below related parent tabs. You can also start typing in the **Search In** field to look up the collection or parent tab by name. Select the collection you want to search within, and then enter your search terms to search across the entire collection of objects and documents.

## Searching within a Saved View

Vault allows you to search within any standard or [saved view](/en/lr/23830/), preserving all filters and view settings. To do this, select a view to search in. The name of the view appears in the search bar notifying the user of which view they're searching.

After receiving search results, a user can continue to add and remove filters. Click **Save View** to update the view with any new filter settings.

Vault does not apply auto-filtering if there is at least one filter already applied.

## How to Search Across Vaults

If your Vault has the **My Vaults** feature enabled, you can [search across documents in every Vault to which you have access](/en/lr/18505/).

## About Missing Documents or Object Records

If you cannot find a document or object record by searching, there are several possibilities:

* You have not been assigned permission to view the document. Only documents that you have permission to view appear in your search results. You can be assigned to a role on the document that has no permissions for the document's current state.
* Your search term doesn't match because of a spelling error in your search entry, the document's or object record's fields, or the document content. Vault does not suggest alternate spellings like Google search.
* The document or object record does not exist or has been deleted.

## Limits

These limits apply to searching Vault:

* Each search term can contain 1-250 characters.
* Inactive fields can't be selected as filters when configuring tab filters. If a search needs to be conducted on an inactive field, users can still do so by creating a report.
* You can add up to 100 columns in the grid view.
* You can add up to 100 filters for objects and documents.
* You can navigate up to the first 100 pages of results.

 [1]: #stemming
 [3]: #basic-search
 [4]: #advanced_search
 [5]: #smart-filtering
 [8]: #expanded-search
 [12]: #advanced_search
 [17]: #object-reference-filters
