This document details the search capabilities supported by the Olog logbook service. Users are encouraged to familiarize themselves with this content in order to be able to construct efficient queries.
The query as edited in the logbook clients consists of a list of key/value pairs separated by an ampersand (&) character. Keys identify the various elements - i.e. text and meta-data - of a log entry. Key names are case-insensitive.
yyyy-MM-dd HH:mm:ss.SSSyyyy-MM-dd HH:mm:ssyyyy-MM-dd HH:mmyyyy-MM-dd - the time portion will be set to 00:00:00HH:mm:ss - the date portion will be set to current dateX w - i.e. X weeksX d - i.e. X daysX h - i.e. X hoursX m - i.e. X minutesX s - i.e. X secondsnow - i.e. the current date/time10 w 4 d, but any additional elements will be ignored.
1970-01-01
00:00:00,
while the end date/time defaults to now.owner=John*.desc key, see below.
desc=increased will match a log entry with
the body text Temperature increased in tank X.foo-bar one must use
desc="foo-bar". Mixing quoted and non-quoted values is supported, e.g.
desc="foo-bar",other.
To enclose a term in quotes, one must use double the double quote character (").
Limitations when using quoted search terms:
foo,"bar",other is valid, but foo,"bar"*,other is not.
NOTE: log entries with an empty body will not match queries containing the desc
key.
In other words, to match all log entries irrespective of
body text length, the desc key must not be present in the query.
logbooks=operation*.tags=cavity*.<property name>.<attribute name>.<attribute value>Shift Info, which in turn contains an
attribute named
Shift Lead. A search query for log entries where the Shift Lead is John
Doe
would then use: properties=Shift Info.Shift Lead.John Doe. All three, dot-separated, elements of
the value
string for the properties key are case-insensitive, and wildcards can be used.properties=Shift Info will match all log
entries
containing such a property, irrespective of the attribute list it contains.Search related to attachments supports two distinct use cases:
attachments to the
query.attachments=some_file_name. Here some_file_name is case-insensitive, but must
otherwise match exactly. Wildcards can be used, e.g. attachments=*_file*. To search for attachments
with a particular file name extension, one may use something like attachments=*plt or
attachments=*xls*. As image file name extensions vary by type one may need to specify multiple extensions, e.g.
attachments=*png,*jpeg.
NOTE: Since the space character is treated in a special manner by the underlying search engine,
a search for file name cannot contain space characters. For instance, to find entries with an attachment
file name like "proton electron neutron", one should instead use attachments=proton* or
attachments=*electron*.
NOTE: Search for occurrence of text within an attachment is not supported.
desc and title keys the search will instead apply an
"and" strategy, i.e. only entries containing all the values will match the search query.
Examples:
user=John*,Jane* will match entries created by users named "John" or
"Jane".
desc=magnet,current will match entries containing "magnet" and "current".
user=John*,Jane*&desc=magnet,current will find entries created by users named "John"
or "Jane",
and that contain both "magnet" and "current".