download free 30 days trial version buy bucket explorer
Documentation  Download  Purchase  Support  FAQs   Forum   ScreenShots & Demos

How to perform Search on Objects in Bucket for Google Cloud Storage?

Search allows you to find objects on the basis of search keyword. An advance search option provided by Bucket Explorer to search Google Storage objects makes your search more specific and accurate. By providing only few keywords (prefix or delimiter or both), you can search for a particular object in long object listing.
You can view searched objects list in Full Path View or in Folder View by clicking on toggle button in object toolbar. You can view your searched information below the object toolbar in this format " Searched for prefix: image/2006/ Delimiter: / Item Found: 15 ". Search session continues till you refresh object/bucket list or click on "Switch to object list" button.

Note: If you search with option Search By Prefix , you will see the details in searched results like last modified date, etc. On the other hand, searching with option Prefix and Delimiter will not show you such object details like last modified date, etc.

Perform Search on Objects in Bucket for Google Storage
Steps for searching files in the bucket
  1. Run Bucket Explorer.
  2. Click on Search button in object table toolbar.
  3. You will find two ways to search objects. These are Search By Prefix and Search By Prefix and Delimiter .
  4. A dialog box for search will appear according to the selected search option.
  1. If you are at any directory level and you click on Search button, then directory name is shown as non-editable text with suffix “/” in prefix text box.
  2. Now give some value in Prefix (starting character sequence of file or folder) text field OR in Delimiter (Ending character sequence of file or folder) text field OR in both and click on Search button.
  3. This will only give those folders and files that start with the given Prefix and end by Delimiter at root level. If any files and folders are in any folder, then search result will only show folders.
  4. On search result, if you explore any folder or directory OR back from any directory level up, then object list table will show objects according to your search criteria.

Prefix- Any starting sequences of the character for searching file is called Prefix text. You can give prefix a single char to full file name. Search result will only show files which starts with the given prefix. If object keys are divided into logical "directories" in your Google storage account using forward-slashes (/), or indeed any character, only the contents of a "directory" can be displayed by using the directory name and the slash (e.g. "MyDocument/").

Delimiter- Any ending sequences of the character for searching file is called Delimiter. You can give delimiter a single char to full file name. Search result will only show files which end with the given delimiter. The delimiter is most useful when your object keys are divided into logical "directories" separated by a character, such as a forward-slash (/). In this case, specifying "/" as the delimiter will limit the object listing to only the top-level items or directories.

Example:
If you have a bucket that contains the following:

images/2011/index.xml
images/2006/img1001.png
images/2011/001/img0001.png
...
images/2011/001/img0999.png
images/2011/002/img1000.jpg
images/2011/003/img0001.html
...

Results:

  •  A list of query with Prefix="images/2011/" and Delimiter=".png" will return the keys and "subdirectories" at images/2011 level which starts with “images/2011/” and ends with “.png” (img1001.png, 001, 002….are subdirectories that contains .png file(s)).
  •   A list of query with Prefix="images/2011/" and Delimiter="/" will return the keys and "subdirectories" at images/2011 level which starts with ="images/2011/” and ends with “/” (as 001, … are folders) but will not include any of the .png keys at deeper levels.
  •  A list of query with Prefix="images/2011/" and Delimiter=".xml" will return the keys and "subdirectories" at images/2011 level which starts with “images/2011/” and ends with “.xml” (index.xml & , 005…..are subdirectories containing .xml file(s)).

Note : As we search some objects, this will list the searched object in object table and a button "Switch to object list" will appear in object toolbar. Clicking on this button switches you to Google storage object list from searched object list.

Related Topics: