Searching files and folders
This page describes the search panel of the file manager. It explains how to search files and folders by name, by file type, by metadata and by the text inside the files, where the search looks, and what you can do with the results.
Opening the search panel
Open the folder in which you want to search. Then do one of these:
- With no item selected, click
Searchin the toolbar. - Press Ctrl+S (Command+S on a Mac) while the file list has the focus.
The search panel opens above the file list. Its title names the folder, for example
Search Documents.
Type the criteria, then click Search at the bottom of the panel, or press Enter in a box where you
type. When every field is empty, FileRun shows "Nothing to search for".
Where the search looks
The search looks in the folder that is open, and in all the folders inside it, at every depth. The folder itself is not part of the results.
You can search in these places, and in any folder inside them:
- your home folder,
My drive - a folder that another user shared with you. In
Shared with me, open the share first. - a shared drive
The search does not look outside the open folder. To search the items that another user shared with you, open the share and search there. To search the items of a shared drive, open the drive and search there.
The other places of the panel on the left have no search. These include the list
Shared with me itself, Collections, Media, Starred, Recent, Sharing and Trash. A web
link has no search either, also under Accessed links.
The search never finds the items that are in the trash.
The fields of the search panel
The search panel has these fields:
File or folder name: a part of the name, or a pattern. See Searching by name.Metadata type: one of the file types of the metadata, or- Any type -. See Searching by file type. The field is shown only when you can read the metadata in the folder that you search.Metadata: a value, and the field that must hold it. See Searching by metadata. The line is shown only when you can read the metadata or the comments in the folder that you search.File contents: words from the text inside the files. The field is shown only when the administrator has enabled the indexing of the contents. See Searching by content.
You can fill in several of the first three fields. An item is found only when it matches all of
them. For example, type report in File or folder name and choose Documents in
Metadata type to find the documents whose name contains "report".
File contents cannot be combined with the other fields. While it holds text, the panel hides the
other fields. While another field holds text, the panel hides File contents.
When the panel opens, the cursor is in File or folder name. The administrator can put it in
another field with Default search criteria, under Files → Settings → Searching in the
control panel.
Searching by name
Type a part of the name in File or folder name. The search finds both files and folders.
A keyword without wildcards is searched for anywhere inside the name. For example, 345 finds all
of these names: ab345.pdf, ab345cd.pdf, 345.pdf and 345cd.pdf.
- The search does not distinguish capital and small letters:
reportalso findsReport.docx. - The search looks at the name of the item only, not at the names of the folders that hold it.
- Spaces at the start and at the end of the keyword are ignored.
Wildcards
Type * to stand for any number of characters, and ? to stand for exactly one character.
A keyword that contains * or ? describes the whole name. It is no longer searched for anywhere
inside the name:
345*finds345.pdfand345cd.pdf, but notab345.pdf.*.pdffinds every item whose name ends in.pdf.345?.pdffinds3451.pdfand345c.pdf, but not345.pdf.
The characters % and _ have no special meaning. A search for 50% finds a file named
50% off.pdf, and a search for report_2024 does not find report 2024.pdf.
The characters + and - have no special meaning in a name either. A search for 2024- finds the
names that contain 2024-, such as report 2024-05.pdf.
Other ways to narrow the search
^345finds the names that start with345, such as345.pdfand345cd.pdf. This does the same as345*.345$finds the names that end with345, such asab345and345. It does not find345.pdf, because that name ends with.pdf."345.pdf", in double quotes, finds only the name345.pdf. Nothing inside the quotes has a special meaning:"345*.pdf"finds only the name345*.pdf, with the*character.
When a file is not found by its name
FileRun searches the names in its own list of the files and folders, not on the storage. An item is in the list when it was uploaded or created through FileRun, or when the folder that holds it was opened in FileRun.
A file that was copied to the storage in another way, such as over FTP or by another program, is not found until FileRun learns of it. To make FileRun learn of it, open its folder in the file manager.
The superuser and the regular administrators can add the names of all the items of a folder to the list at once:
- In the control panel of the folder: right-click the folder, choose
Information→Control panel, thenMaintenance→Index file names, and clickRun. See The control panel of a file or folder. - From the command line, with
index_filenames.php. See Command line tools.
An item that was deleted from the storage outside FileRun is not listed in the results. Neither is a
file whose name holds one of the characters \ / * ? < > |. Such a name can only be given on the
storage, outside FileRun.
Searching by file type
Metadata type lists the file types of the metadata, such as Documents, Photos, Audio and
Videos. Choose one to find only the files of that type. FileRun does not give a file type to
folders, so a search by file type finds only files, and the folders to which a user gave that file
type in the Metadata window.
A file gets its type when it is uploaded or created through FileRun, from its extension. You can
change the type of a file in the Metadata window. See Metadata.
The type of a file is metadata. So the search by file type needs the same permissions as the search by a field of the metadata. See The fields you can search.
The Type filter of the toolbar does the same search in one step: choose a file type in it, and the
file list shows the files of that type that are in the open folder and in all the folders inside it.
To end the filter, click the button with the tooltip Remove filter. The filter is shown only when
you can see the metadata of the open folder.
Searching by metadata
The Metadata line of the panel has three parts:
- a box for the value that you search for
- the field that must hold the value.
- Any field -searches the values of every field that you can read. - a button with the tooltip
Add a new search criterion, which adds anotherMetadataline
To remove a line that you added, click its button with the tooltip Remove search criteria.
When you use several lines, an item is found only when it matches all of them.
The fields you can search
The list of fields has these entries:
- Any field -Comments: the text of the comments of the items. Shown when you can read the comments in the folder that you search.Tags: shown when you can read the metadata in the folder that you search. See Organizing files.Rating: shown when you can read the metadata in the folder that you search, and the administrator has enabled the ratings.- the fields of the metadata, each as the name of its field set and the name of the field, such as
Image properties: Date taken. Shown when you can read the metadata in the folder that you search.
When you choose a field that has a list of values, a small window Available options shows the
values of the list.
To access metadata, you need the permission User can access tags, ratings and other metadata.
See Tags, ratings and other metadata.
- Any field - searches the comments when you can read comments. It searches the tags, the rating
and the fields of the metadata when you can access metadata.
In a folder that another user shared with you, and in a shared drive, the role also applies. A
search by a field of the metadata needs a role that lets you read the metadata. A search of
Comments needs a role that lets you read the comments. With the role Viewer or Uploader, the
panel shows neither Metadata type nor the Metadata line. When you open another folder, the
panel removes the criteria that you cannot use there. A web link has no search. See
Who can read and change the metadata and
Who can read and write comments.
How a value matches
How a value without special characters matches depends on the setting Metadata search mode, under
Files → Settings → Searching in the control panel:
Broad match, the default: a search for345finds the values345,ab345cd,ab345and345cd. To find only the exact value, put it in double quotes:"345".Exact match: a search for345finds only the value345. To find the values that contain345, use asterisks:*345*.
These work in both modes:
- The wildcards work as for the names:
*stands for any number of characters,?for exactly one, and a keyword that contains either one describes the whole value. ^345finds the values that start with345, such as345and345cd.345$finds the values that end with345, such as345andab345.- A number followed by
+finds the values that are equal to the number or greater. For example, chooseRatingand type4+to find the items rated 4 or 5. - A number followed by
-finds the values that are equal to the number or lower. For example,9-finds9and2, but not10.
+ and - compare the number at the start of each value. A value that does not start with a
number, such as abc, is not found. A date starts with its year. So in
Image properties: Date taken, 2024+ finds the photos taken in 2024 or later, and 2023- finds
the photos taken in 2023 or earlier.
The search does not distinguish capital and small letters.
A search in Tags compares the text of the tags, and not their colours. So "urgent" finds the tag
urgent in any colour.
Searching from the details panel
In the Details tab of the details panel, each metadata value has a button with a magnifier. Its
tooltip is "Click to search by", followed by the value that it searches for. Click it to find the
items that have the same value in the same field. The search runs in the open folder, or in your
home folder when the open place has no search. See Metadata.
- For a date, the button searches for the day. It finds the items that have a date of the same day in the field, at any time of that day.
- A value of several lines has no button, because the search panel takes only one line of text.
Searching by content
File contents finds the files that contain the words that you type. It is shown only when the
administrator has enabled the indexing of the contents.
What the administrator must set up
The search by content needs a search server, Elasticsearch, which holds the text of the files.
FileRun reads the text of most file types with Apache Tika. The administrator enables it with
Enable content indexing for text documents, under Files → Settings → Searching in the
control panel, and schedules the task that indexes the files. See
File indexing and full-text searching.
Which files are found
- FileRun indexes a file after it is uploaded, created, changed, renamed, moved or restored from the trash through FileRun. A scheduled task does the indexing, so a new file is found by its content only after a while.
- A file that goes to the trash, alone or inside a folder, leaves the index. It is found again after it is restored.
- The files that were there before the indexing was enabled, or that were copied to the storage outside FileRun, are not found until the administrator indexes them, for example from the command line. See Command line tools.
- Plain text files are read directly. The other files, such as PDF and office documents, are read with Apache Tika.
- Audio files, video files, archives, 3D models and CAD drawings are not indexed, for example MP3, WMA, MP4, AVI, Zip, 7Z, RAR and DWG files.
- Pictures are indexed only when the administrator has enabled
OCR image files. This applies to all the pictures, for example JPEG, PNG, TIFF, BMP, HEIC and camera raw files. - The administrator can leave out more types with
Exclude files by extension. - By default, files larger than 10 MB are not indexed.
The search by content finds only files, not folders.
How words match
The text that you type is read with the query syntax of Elasticsearch:
- A word matches a whole word, without regard to capital letters.
invoicefinds "Invoice", but not "invoices". *at the end of a word stands for the rest of the word:invoice*also finds "invoices".- Several words find the files that contain any of the words. Type
ANDbetween two words to find only the files that contain both. - A phrase in double quotes finds the words together, in that order:
"annual report".
For the full syntax, see the query string syntax of Elasticsearch.
When the search server cannot read the text, for example because a double quote is not closed, FileRun shows "Search failed!", followed by the reason that the search server gives.
The results
The file list shows the items that match. When nothing matches, it shows "No file was found matching your search criteria."
When there are many results, they come in pages, like the items of a large folder. The administrator
sets the number of items per page with Paginate large folders, under Files → Settings →
File list in the control panel. See File settings.
You can work with the results as with the items of a folder. Open them, download them, or
right-click them. While the results are shown, the toolbar has no New button, and its Share and
Move to trash buttons are hidden: use the right-click menu instead.
To open the folder that holds a result, right-click the result and choose Information →
Show file location, or Show folder location for a folder.
The address of the page holds the search. When you reload the page, FileRun runs the search again.
Changing the search
After a search, the Search button of the toolbar is named Edit search. Click it to open the
panel with your criteria, change them, and search again.
Cancelling the search
To leave the results and show the folder again, click Cancel search. The button is in the toolbar
and at the bottom of the search panel. It also clears the fields of the panel.