Search

The Search page allows you to search for files by name, content or tags. Click Name, Tags or Advanced , type the keyword, and click Search. Results will display, which can then be sorted by name, path, file type and last modification time.

Figure 2.14. Search Results

Search Results

Search by name

This enables you to type keywords and search for file names and paths. Wildcards such as * and ? are supported. For exampe, sa*.rml will match salesreport.rml and salestargets.rml.

Search by tags

For detailed information on searching by tags, refer to Elixir Repository User Manual > Tags.

Advanced Search

The Advanced Search follows Lucene syntax. The following are keyword and search result examples.

Table 2.3. Keywords and Results

KeywordsDescription
SalesThis will match exactly all files containing “Sales” in the path. For example: /anything/Sales/anything or anything/Report.ext (for any extension).
Sales ResourcesThis will match all files containing “Sales” or “Resources” in the path. Here, OR is the default operator.
Sales AND ResourcesThis will match all files containing “Sales” AND “Resources” in the path.
Sales ext:dsThis will match files with either “Sales” in the path, or files with the extension “.ds”.

Note

There are a few specialised options, that are only defined for certain file types:

DS: ds.type -- the type of the datasource, eg JDBC, Text

PDF (read from the PDF file properties):

  • obj.author
  • obj.creator
  • obj.tags
  • obj.producer
  • obj.subject
  • obj.title
  • obj.created
Sales AND ext:dsThis will match only those files with “Sales” in the path and the extension “.ds”.
tags: popularThis will find all files that are tagged with word "popular".

For more details on Lucene syntax, refer the following link:

http://lucene.apache.org/java/3_5_0/queryparsersyntax.html

In Advanced Search, you can use the following filters, either alone or with keywords in front:

Table 2.4. Advanced Search Filters

FilterDescription
ancestor:XXXFinds all files that have the specified folder in their path. For example: ancestor:Sales finds all files that have the world Sales in their paths. Folder:XXX only looks at the immediate parent folder, while ancestor:XXX looks at all parent folders back to / .
contents:XXXRestricts the search to files containing a specified keyword in the contents.
ext:XXXRestricts the search to files with a specified extension.
fs:XXXRestricts the search to a specified filesystem.
folder:XXXWill find all files that are present in the specified folder. For example: folder: Sales will find all files that are present in the folder called Sales.
mimetype:XXXRestricts the search to files with a specified MIME type.
date:XXXRestricts the search to a particular date or date range. For example, date: 2014-03-29 finds all files modified on that particular date. You can specify a date range as in the following examples: date: [2005-06 TO 2010-05] which finds all files between June 2005 and May 2010, date: [2005 TO 2010] which finds all the files between the years 2005 and 2010, and date: [2005-06-14 TO 2010-05-30] which finds all files between the 14th of June 2005 and 30th of May 2010. There are two special keywords - today and yesterday that find all files that were modified today and yesterday, respectively. Use them as: date: today and date: yesterday.
time:XXXRestricts the search to a particular time or time range.

Note

The ":" character is a reserved character in Lucene. To get around this limitation, either enclose the time within double quotes or use a backslash to escape the ":".
For example, time: "13:40:15" or time: 13\:40\:15 both find all files that were modified at that specified time. You can specify a time range as in the following example: time: ["13:40" TO "14:00"] or time: [13\:40 TO 14\:00]finds files modified between 1:40 PM and 2 PM. You can even combine dates and times together to make the search even more powerful and specific. For example: date: [2005-06-14 TO 2010-05-30] AND time: ["13:40" TO "14:00"] will find all files that were modified between those specific dates AND in that specific time range.
modified:XXXRestricts the search to files with a certain modification date and time. For example: modified: 2014-04-03T16\:18\:57 finds all files that were modified on 3rd April 2014 at 4:18:57 PM. The "T" after the date is the separator between the date and time.
name:XXXRestricts the search to files with a specified name.
path:XXXRestricts the search to files located in paths containing a specified keyword. For example: path: /ElixirSamples/DataSource/FruitSales.ds matches this one file in the specified path.
tags:XXXRestricts the search to files with a specified tag.

The indexer only incrementally updates the index every 15 minutes, and hence very recent changes will not be seen. The exception is tag changes, where an immediate update is forced.

The indexer frequency is controlled by: elixir.indexer.update-interval = 15 minutes You can put your own value in etc/application.conf to override this default.

When the system is initialised, all files last modified time is the time at which they are added, so modified: today will find all files, if you have just initialised the system.

Save a search

Click Save to save the search. Saved searches will display on the right pane.