Several options are available to you in order to conduct a search in your Piwigo gallery, be it a simple quick search by keyword, or a multi-criteria search that combines several filters.
We cover it all in this article!
The quick search
Using the quick search field
If this feature is active in your gallery (this is the case by default for most themes), you have access to a search field.
On some themes, the search will be accessible by clicking on a menu item (example below with the default configuration for the Bootstrap Darkroom theme).
Enter a word in the quick search and press the Enter key: the results show the photos that correspond to your search.
By default, to filter the results, Piwigo searches for the word you entered:
- in the photo's name (title) in Piwigo
- in the file’s name
- in the file's description
- in the tags associated with your photos
- in the photos' ID
Furthermore, if the keyword entered corresponds to a tag or the name of an album in your gallery, they will also appear in the results. Click on the "Tags found" or "Albums found" button to see the list of tags / albums that correspond to your search.
Editing / refining a quick search
Since Piwigo version 14, every time you make a quick search, a filter bar appears above the search results. We will talk about it again in the next chapter. This filter bar allows you to refine your search by applying additional criteria (tag, album, author...).
This filter bar also lets you edit the current search. To do this, simply click on the area that shows the word you searched for, which will open a window.
In this window, you will be able to:
- edit the content of your search;
- perform a search on multiple words by filtering on all words or one of the words;
- choose where Piwigo performs the search (for example, by deactivating the search in photo descriptions).
RV autocomplete: Activate autocompletion on the quick search engine
Do you want to save even more time when searching for a tag or an album in your gallery?
We recommend you use the RV Autocomplete plugin.
Once the plugin has been activated, when entering a search term, the albums and tags that fit your search will automatically be recommended.
The multi-criteria search filters
Starting a multi-criteria search
Since Piwigo version 14, the old advanced search has been replaced with a filter bar.
There are multiple ways to start a search:
- Using the quick search form (explained in the previous chapter): you will then be able to refine or reset your search using the filters.
- Going into the Explore > Search menu (Modus theme) or Discover > Search (Bootstrap Darkroom theme) to display the search page.
- Starting from an album or tag page and clicking on the button or the icon titled "Search in this set" (if this button has been activated in your gallery).
Choosing the filters shown
The filter bar shows 4 filters available by default:
- search by word (works the same way as the quick search)
- filter by Tag
- filter by Album
- filter by Author
You can click on "Choose filters" to add other criteria:
- Upload date
- Added by (chosen by the user who uploaded the file)
- File type (file extension: JPG, PNG...)
Simply click on a criteria to add or remove it from the filter bar, and save. The chosen criteria have been added. Your choice of visible filters is saved, but only applied for your user.
Using filters to find photos
Search by word
This filter works just like the quick search.
You can enter one or more words, decide whether you want to show the results that contain all words or only one of them, and choose where to search the word you entered (in the photo's title, the file name, the description...).
One click on "Delete" deactivates the filter; one click on "Clear" resets the filter.
Search by tag
The "tag" filter lets you show the photos associated with one or more tags.
You can decide whether the search should retrieve photos associated with all selected tags or at least one of them.
By clicking in the search field, you will show a drop-down list of all the tags, in which you can search for the desired tag by typing the first few letters.
One click on "Delete" deactivates the filter; one click on "Clear" resets the filter.
Search by photo upload date
The "Post date" filter lets you filter photos based on the date they were imported to Piwigo. Several time spans are available: Last 7 days, Last 30 days, Last 3 months... It also shows the number of photos that fit each time span.
One click on "Delete" deactivates the filter; one click on "Clear" resets the filter.
Search by album
The album filter lets you search for photos within one or more albums, with or without including sub-albums.
One click on "Delete" deactivates the filter; one click on "Clear" resets the filter.
Search by author
The author filter lets you search for a photo by author, by searching in the drop-down list of existing authors.
One click on "Delete" deactivates the filter; one click on "Clear" resets the filter.
Search by "Added by" (user who imported the file)
The "Added by" filter allows you to list users who imported files to your Piwigo gallery and filter the search results. We show the number of photos for each user.
One click on "Delete" deactivates the filter; one click on "Clear" resets the filter.
Search by file type (format)
The "File type" filter lets you filter the results by format or file extension.
Combining multiple filters
The strength of this search engine lies in its ability to combine multiple filters and see the results be instantly updated.
You can add or remove a filter at any moment, edit the criteria and refine your search, as seen in the animation below.
Searching for a photo in a set (album or tag)
On a album or tag page, you can display a button or an icon allowing you to start a search within this set of photos.
The "Search in this set" button:
The "Search in this set" icon in the Album page's tool bar:
Click this button to display the search filters on the current page.
To activate or deactivate the display of this button and this icon in your gallery, go in the administration, in the Configuration > Options menu, then the "Display" tab.
Making a search using related tags
If your photos are correctly indexed using tags, the search by tag could be very powerful when it comes to finding a photo. You can search for a photo by tag by using the search engine, but also by browsing through tags using the "Related tags" feature or a tag cloud.
Read this article to learn more: Using tags in your gallery
Article summary
- The quick search
- Using the quick search field
- Editing / refining a quick search
- RV autocomplete: Activate autocompletion on the quick search engine
- The multi-criteria search filters
- Starting a multi-criteria search
- Choosing the filters shown
- Using filters to find photos
- Combining multiple filters
- Searching for a photo in a set (album or tag)
- Making a search using related tags
← Previous
Tags in your galleryNext →
Manage your favorites