{"id":452,"date":"2019-09-04T14:38:32","date_gmt":"2019-09-04T06:38:32","guid":{"rendered":"http:\/\/www.yohz.com\/blogs\/?p=452"},"modified":"2022-12-31T09:38:06","modified_gmt":"2022-12-31T01:38:06","slug":"easy-explorer-advanced-search","status":"publish","type":"post","link":"https:\/\/www.yohz.com\/blogs\/2019\/09\/04\/easy-explorer-advanced-search\/","title":{"rendered":"Easy Explorer &#8211; Advanced Search"},"content":{"rendered":"<p>In <a href=\"https:\/\/www.yohz.com\/yohzapps\/ee_overview.htm\">Easy Explorer 3<\/a>, we introduced an advanced search option that allows you to search for files based on attributes other than its name.\u00a0 To use the advanced search function, click on the <strong>Advanced Search<\/strong> button on the bottom of the explorer window:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-453\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2019\/08\/ee_advsearch01.png\" alt=\"\" width=\"441\" height=\"85\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2019\/08\/ee_advsearch01.png 441w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2019\/08\/ee_advsearch01-300x58.png 300w\" sizes=\"(max-width: 441px) 100vw, 441px\" \/><\/p>\n<p>This brings up the <strong>Advanced Search<\/strong> window, where you enter your search criteria.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-461\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2019\/08\/ee_advsearch08.png\" alt=\"\" width=\"656\" height=\"553\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2019\/08\/ee_advsearch08.png 656w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2019\/08\/ee_advsearch08-300x253.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2019\/08\/ee_advsearch08-624x526.png 624w\" sizes=\"(max-width: 656px) 100vw, 656px\" \/><\/p>\n<p>On the left panel, a list of all the available file functions are displayed e.g. Name, Size, Created, Accessed, etc.\u00a0 Clicking on any of the items will bring up the description on how to use that function.\u00a0 There is also a list of support functions that&#8217;s required when working with dates, time, and text values.<\/p>\n<p>The basic rule is that you use a single function like this e.g. search only for files smaller than 1024 bytes:<\/p>\n<p style=\"padding-left: 40px;\"><strong>Size &lt; 1024<\/strong><\/p>\n<p>You can combine multiple search criteria using <strong>AND<\/strong> and <strong>OR<\/strong>, but you must use brackets to group the criteria e.g. search only for files smaller than 1024 bytes or the name contains the word &#8216;finance&#8217;:<\/p>\n<p style=\"padding-left: 40px;\"><strong>(Size &lt; 1024) OR (NameContains(&#8216;finance&#8217;))<\/strong><\/p>\n<p>There is no limit to the number of criteria you use, but the important thing is to use the brackets to group the criteria correctly e.g.<\/p>\n<p style=\"padding-left: 40px;\"><strong>( (Size &lt; 1024) OR (NameContains(&#8216;finance&#8217;) OR NameContains(&#8216;production&#8217;)) ) AND (Modified &gt; EncodeDate(2019, 1, 7))<\/strong><\/p>\n<p>will (search for files smaller than 1024 bytes OR (the name contains the word &#8216;finance&#8217; or &#8216;production&#8217;)), AND after all that, the file must have been modified after July 1, 2019.<\/p>\n<h3><strong>Extended attributes<\/strong><\/h3>\n<p>In addition to the normal file properties, you can also search based on the extended attributes.\u00a0 To see which extended attributes are available on your system, right click on the column header in the explorer window to bring up the list of available columns:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-455\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2019\/08\/ee_advsearch03.png\" alt=\"\" width=\"476\" height=\"243\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2019\/08\/ee_advsearch03.png 476w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2019\/08\/ee_advsearch03-300x153.png 300w\" sizes=\"(max-width: 476px) 100vw, 476px\" \/><\/p>\n<p>and click on the <strong>More&#8230;<\/strong> item.\u00a0 The list of extended attributes are then displayed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-464\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2019\/08\/ee_advsearch09.png\" alt=\"\" width=\"483\" height=\"620\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2019\/08\/ee_advsearch09.png 483w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2019\/08\/ee_advsearch09-234x300.png 234w\" sizes=\"(max-width: 483px) 100vw, 483px\" \/><\/p>\n<p>To search an extended attribute, use the <strong>Attribute<\/strong> function e.g.<\/p>\n<p style=\"padding-left: 40px;\"><strong>Attribute(&#8216;Width&#8217;)<\/strong><\/p>\n<p>returns the <strong>Width<\/strong> attribute (if available) of the file.\u00a0 So if the file is an image file, a value will be returned.\u00a0 On our system, the <strong>Width<\/strong> attribute is displayed with a pixels suffix i.e.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-457\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2019\/08\/ee_advsearch05.png\" alt=\"\" width=\"552\" height=\"369\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2019\/08\/ee_advsearch05.png 552w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2019\/08\/ee_advsearch05-300x201.png 300w\" sizes=\"(max-width: 552px) 100vw, 552px\" \/><\/p>\n<p>So if we wanted to search for image files with a width of 3968 pixels, we would need to use this search criteria:<\/p>\n<p style=\"padding-left: 40px;\"><strong>Attribute(&#8216;Width&#8217;) = &#8216;3968 pixels&#8217;<\/strong><\/p>\n<p>We can also return the attribute as a number using the <strong>AttributeAsNumber<\/strong> function e.g.<\/p>\n<p style=\"padding-left: 40px;\"><strong>AttributeAsNumber(&#8216;Width&#8217;)<\/strong><\/p>\n<p>This function attempts to return the attribute&#8217;s text value (in this case &#8216;3968 pixels&#8217;) as a numerical value (3968).\u00a0 If the attribute value cannot be converted to a number, a value of 0 is returned.<\/p>\n<p>Now that we can get the width attribute as a number, we can easily apply range checks to it e.g.<\/p>\n<p style=\"padding-left: 40px;\"><strong>AttributeAsNumber(&#8216;Width&#8217;) &gt; 3776<\/strong><br \/>\n<strong>(AttributeAsNumber(&#8216;Width&#8217;) &gt; 3776) OR (AttributeAsNumber(&#8216;Width&#8217;) &lt; 1024)<\/strong><br \/>\n<strong>(AttributeAsNumber(&#8216;Width&#8217;) &gt; 3776) AND (AttributeAsNumber(&#8216;Height&#8217;) &gt; 2048)<\/strong><\/p>\n<p>Extended attributes allow you to perform some very advanced searches.\u00a0 For example, say we have the following Excel files:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-459\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2019\/08\/ee_advsearch07.png\" alt=\"\" width=\"681\" height=\"142\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2019\/08\/ee_advsearch07.png 681w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2019\/08\/ee_advsearch07-300x63.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2019\/08\/ee_advsearch07-624x130.png 624w\" sizes=\"(max-width: 681px) 100vw, 681px\" \/><\/p>\n<p>We can search on the <strong>Authors<\/strong> and <strong>Subject<\/strong> attributes easily in Easy Explorer.\u00a0 E.g.<\/p>\n<p style=\"padding-left: 40px;\"><strong>Attribute(&#8216;Authors&#8217;) = &#8216;Yeoh Ray Mond&#8217;<\/strong><\/p>\n<p>will return all files created by &#8216;Yeoh Ray Mond&#8217;.\u00a0 If we want to search for all files containing the word &#8216;<strong>Financials<\/strong>&#8216; in its subject, we will need to use the <strong>TextContains<\/strong> function in addition to the <strong>Attribute<\/strong> function.\u00a0 The <strong>Attribute<\/strong> function returns the full value of the specified attribute, so for the first file, it will return &#8216;Financials for April 2019&#8217;.\u00a0 We could write the search criteria like so:<\/p>\n<p style=\"padding-left: 40px;\"><strong>Attribute(&#8216;Subject&#8217;) = &#8216;Financials for April 2019&#8217;<\/strong><\/p>\n<p>but it will limit our search to only the first file.\u00a0 In this case, we want to return the third file too.\u00a0 To do that, we use the <strong>TextContains<\/strong> function e.g.<\/p>\n<p style=\"padding-left: 40px;\"><strong>TextContains(Attribute(&#8216;Subject&#8217;), &#8216;Financials&#8217;)<\/strong><\/p>\n<p><strong>TextContains<\/strong> takes 3 parameters.\u00a0 The first parameter is the value to search in.\u00a0 In this case, it will be the value of the <strong>Subject<\/strong> attribute.\u00a0 The second parameter is the value to search for, in this case the word &#8216;Financials&#8217;.\u00a0 The third optional parameter is to indicate if the search is case-sensitive.\u00a0 The default value is false, so you could write the search criteria in any of these ways:<\/p>\n<p style=\"padding-left: 40px;\"><strong>TextContains(Attribute(&#8216;Subject&#8217;), &#8216;Financials&#8217;)<br \/>\nTextContains(Attribute(&#8216;Subject&#8217;), &#8216;financials&#8217;)<br \/>\nTextContains(Attribute(&#8216;Subject&#8217;), &#8216;finanCIALS&#8217;)<br \/>\n<\/strong><\/p>\n<p>To perform a case sensitive search, pass <strong>TRUE<\/strong> in the third parameter e.g.<\/p>\n<p style=\"padding-left: 40px;\"><strong>TextContains(Attribute(&#8216;Subject&#8217;), &#8216;Financials&#8217;, TRUE)<br \/>\n<\/strong><\/p>\n<p>There are also 2 additional text functions, <strong>TextStartsWith<\/strong> and <strong>TextEndsWith<\/strong>, that checks if the text starts or ends with a specific value respectively, and accepts the same parameters as <strong>TextContains<\/strong> e.g.<\/p>\n<p style=\"padding-left: 40px;\"><strong>TextStartsWith(Attribute(&#8216;Subject&#8217;), &#8216;Financials&#8217;)<br \/>\n<\/strong><strong>TextStartsWith(Attribute(&#8216;Subject&#8217;), &#8216;Financials&#8217;, TRUE)<br \/>\nTextEndsWith(Attribute(&#8216;Subject&#8217;), &#8216;2019&#8217;)<br \/>\n<\/strong><\/p>\n<p>To search for attributes with blank values, do a comparison with an emtpy value e.g.<\/p>\n<p style=\"padding-left: 40px;\"><strong>Attribute(&#8216;Subject&#8217;) = &#8221;<\/strong><\/p>\n<p>Conversely, to search for attributes with values:<\/p>\n<p style=\"padding-left: 40px;\"><strong>Attribute(&#8216;Subject&#8217;) &lt;&gt; &#8221;<\/strong><\/p>\n<p>The ability to search on extended attributes opens up a lot of possibilities:<\/p>\n<ul>\n<li>For photos, you can<a href=\"https:\/\/www.yohz.com\/blogs\/?p=467\"> search on camera attributes<\/a> like exposure time, focal length, ISO speed, etc.<\/li>\n<li>For Office files, you can<a href=\"http:\/\/www.yohz.com\/blogs\/2019\/09\/04\/searching-for-word-and-excel-documents-by-author-and-other-extended-attributes\/\"> search on document attributes<\/a> like authors, manager, subject, comments, etc.<\/li>\n<li>For multimedia files, you can search on attributes like bitrate, genre, length, etc.<\/li>\n<li>For images, you can search on image attributes like width, height, and bit depth.<\/li>\n<\/ul>\n<p>If you encounter any issues using the search function on extended attributes, please do drop us a line at <a href=\"mailto:support@yohz.com\">support@yohz.com<\/a>.<\/p>\n<p><a href=\"http:\/\/www.yohz.com\/downloads\/easyexplorer\/EasyExplorerSetup.zip\">Download<\/a> a <strong>FREE 14-day trial<\/strong> now and start searching for your files using extended attributes the easy way.<\/p>\n<div class=\"fcbkbttn_buttons_block\" id=\"fcbkbttn_left\"><div class=\"fcbkbttn_like \"><fb:like href=\"https:\/\/www.yohz.com\/blogs\/2019\/09\/04\/easy-explorer-advanced-search\/\" action=\"like\" colorscheme=\"light\" layout=\"button\"  size=\"small\"><\/fb:like><\/div><div class=\"fb-share-button  \" data-href=\"https:\/\/www.yohz.com\/blogs\/2019\/09\/04\/easy-explorer-advanced-search\/\" data-type=\"button\" data-size=\"small\"><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>In Easy Explorer 3, we introduced an advanced search option that allows you to search for files based on attributes other than its name.\u00a0 To use the advanced search function, click on the Advanced Search button on the bottom of the explorer window: This brings up the Advanced Search window, where you enter your search [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[37],"tags":[38],"_links":{"self":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts\/452"}],"collection":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/comments?post=452"}],"version-history":[{"count":7,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts\/452\/revisions"}],"predecessor-version":[{"id":1861,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts\/452\/revisions\/1861"}],"wp:attachment":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/media?parent=452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/categories?post=452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/tags?post=452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}