The Search page allows you to search for files by name, content or tags. Click the Name, Tags or Advanced button, type the keyword, and click the Search button. Results will display, which can be sorted by name, path, file type and last modification time.
The Dashboards, Datasources, Documents, Images and Reports items are shortcuts for commonly-used file extensions. For example, select the Images item and start a search. GIF, PNG and JPEG files matching the keywords will display.
This enables you to type keywords and search for file names and paths. There are two shortcuts for file name search, “ext:xxx” and “fs:xxx”. The ext:xxx shortcut enables you to specify the file extension, while the fs:xxx enables you to restrict the search to a specific filesystem. For example, “order fs:ElixirSamples” will search for all file names and paths containing the keyword “order” within the ElixirSamples filesystem.
By default, if the fs:xxx shortcut is not used, all filesystems except the Temp filesystem will be scanned. To involve the Temp filesystem in the search, add “fs:Temp” behind the keywords.
The “ext:xxx” and “fs:xxx” shortcuts can be used in conjunction for multiple times in one search. For example, add “fs:Temp fs:ElixirSamples ext:pml” behind your keywords, and the search will match all PML files in both the Temp and ElixirSamples filesystems.
The “ext:xxx” and “fs:xxx” must be used with some keywords instead of being used alone, because it means searching for all files in that type or filesystem, and there might be a huge number of files to process.
Another filter is “mode:xxx”. There are two modes available, “glob” and “regexp”. The default mode is “glob”, in which wildcard characters are supported. An asterisk (*) represents zero or more characters, and a question mark (?) represents a single character. Please note that wildcard characters cannot be used to represent file extensions. For example, “sales.*” should be avoided; to specify a certain file extension, use “ext:xxx” instead.
You can also explicitly select the “regexp” mode, in which regular expressions are used. The dot (.) means any character, which can be escaped by a backslash (\). For example, “\.” means the dot will be interpreted literally. For more details about the regular expression syntax, visit the following link:
http://www.regular-expressions.info/reference.html
For detailed information on searching by tags, refer to Elixir Repository User Manual > Tags.
The Advanced Search follows Lucene syntax. The following are keyword and search result examples.
Table 2.3. Keywords and Results
| Keywords | Description |
|---|---|
| Sales | This will exactly match all files containing “Sales” in the path. |
| Sales Resources | This will match all files containing “Sales” or “Resources” in the path, in which OR is the default operator. |
| Sales ext:ds | This will match files either with “Sales” in the path, or files with the extension “.ds”. |
| Sales AND ext:ds | This will match only those files with “Sales” in the path and the extension “.ds”. |
For more details on Lucene syntax, visit the following link:
http://lucene.apache.org/java/3_5_0/queryparsersyntax.html
In Advanced Search, you can use the following filters alone or with keywords in front:
Table 2.4. Advanced Search Filters
| Filter | Description |
|---|---|
| fs:XXX | This restricts the search within a specified filesystem. |
| name:XXX | This restricts the search within files with a specified name. |
| path:XXX | This restricts the search within files located in paths containing a specified keyword. |
| modified:XXX | This restricts the search within files with a certain modification date. |
| ext:XXX | This restricts the search within files with a specified extension. |
| mimetype:XXX | This restricts the search within files with a specified MIME type. |
| tags:XXX | This restricts the search within files with a specified tag. |
| contents:XXX | This restricts the search within files containing a specified keyword in the contents. |