Searching Custom Metadata Fields
Flywheel indexes all custom metadata, making it searchable across your data. This allows you to find data based on project-specific information like scanner parameters, clinical scores, experimental conditions, or any other custom metadata you have added to your data.
This article explains how to search for custom metadata fields using both Basic Search and Advanced Search.
Understanding Custom Metadata Field Paths
Custom metadata fields use a hierarchical structure with dot notation to specify their location. The format is:
Where:
- level: The hierarchy level where the metadata is stored (
file,acquisition,session,subject,project, oranalysis) - info: The standard container for custom metadata
- FieldName: The name of your custom field
Common Field Path Examples
file.info.RepetitionTime- Custom field on a fileacquisition.info.SequenceName- Custom field on an acquisitionsession.info.ClinicalScore- Custom field on a sessionsubject.info.Diagnosis- Custom field on a subjectproject.info.StudyPhase- Custom field on a projectanalysis.info.QualityScore- Custom field on an analysis
Nested Fields
If your custom metadata has nested structure, continue the dot notation:
Basic Search
In Basic Search, you can filter by custom metadata fields using the Custom Fields section at the bottom of the search sidebar.

Steps
-
Scroll to the Custom Fields section at the bottom of the search filters.
-
Start typing in the text box. Flywheel will suggest available custom metadata fields as you type.

-
Select the field you want to search on.
-
A new search box appears below Custom Fields with the selected field name. Enter the value you want to search for.

-
Your search results update to show only data with that custom field value.
Example: Finding Files by Scanner Parameter
To find all files where the RepetitionTime is 2000:
- Type
file.info.RepetitionTimein the Custom Fields box - Select
file.info.RepetitionTimefrom the suggestions - Enter
2000in the field value box - Results show only files with RepetitionTime = 2000
Viewing Custom Metadata
The file.info object in search corresponds to the Custom Information section in the file details. You can view this by clicking on a file and looking at the Custom Information section.

Advanced Search
Advanced Search provides more control when searching custom metadata fields. You can use exact matching, ranges, and complex logic.
Using Custom Fields in FlyQL
To search custom metadata in FlyQL, use the full field path:
Common Search Scenarios
Exact Match
Find sessions where a specific clinical score equals a value:
Range Query
Find subjects where IQ is between 90 and 120:
Field Exists
Find all files that have a specific custom field populated:
Contains Text
Find sessions where notes contain a specific term:
Multiple Conditions
Find files with specific scanner parameters:
Field Names with Spaces
If your custom field name contains spaces, wrap the entire field path in quotes:
Example: Finding Subjects by Diagnosis
To find all subjects diagnosed with a specific condition:
- Open Advanced Search
-
Enter the FlyQL query:
-
Click Run Query
Expected Results: All sessions belonging to subjects with the Diagnosis field set to "Alzheimer's Disease".
Example: Finding High-Quality Scans
To find files that passed quality control with high scores:
- Open Advanced Search
-
Enter the FlyQL query:
-
Click Run Query
Expected Results: Only files with quality scores of 90 or higher that also have a QualityControl status of "Pass".
Tips for Searching Custom Metadata
- Use autocomplete: Start typing a field name and Flywheel will suggest available fields
- Check exact field names: Custom field names are case-sensitive in Advanced Search
- Verify field location: Ensure you are searching at the correct hierarchy level (file vs session vs subject)
- Use EXISTS first: If unsure what values exist, search for fields that exist, then examine the results
- Test incrementally: Build complex queries step by step, testing each condition separately
Related Topics
- Basic Search - Introduction to Basic Search
- Advanced Search - Complete guide to Advanced Search and FlyQL
- Add and Edit Custom Metadata - How to add custom metadata to your data