Search - Syntax

Easy search

Just type in one or more keywords (splitt by whitespace) and start the search. All documents are listed which contain all of these keywords. Documents are emails and attachments (see supported file formats). Is an attachment classified as result, than also the parent email is shown – the parent emails appears as parent element in the tree structure.

Due to performance only the first 5 MB (about) of the attachments are read by the search engine. Do don't send the wikipedia as email attachment.

By default keyword are logical “AND” connected. That means that all keyword must exist in a document to be shown as result. For simplicity you may skip out the “AND”. Instead of ANMD you may also want to loal connect word by “OR” - then only one keyword classifies a document as result.

Special fields

Email contains besides the essential text also special attribute like subject, sender, recipients, … You may search for these attribute by using the following syntax.

Subject

Sample: subject:birthday

Sender

Sample: subject:thomas

See pitfalls!

Recipients

Sample: recipients:your.sister@gmail.de

See pitfalls!

Attachments

Searches fro file names only.

Sample: attachment:a*.doc

Time - doctime

Sample: doctime:[2012-06-27-15-04 TO 2013-06-28-15-04]
Pattern: doctime:[YYYY-MO-DD-HH-MI TO YYYY-MO-DD-HH-MI]
Abbreviation Description
YYYY Year (4 digits)
MO Month (2 digits)
DD Day of month (2 digits)
HH Hour (2 digits and 24 hour format)
MI Minute (2 digits)

Complex logical queries

.. can be created by AND, OR and brackets.

Sample: subject:birthday AND (sender:james OR sender:tom)

Pitfalls

There are many – just keep trying!

Tips:

  • Write AND + OR always uppercase
  • Don't skip the AND in complex queries
  • Use also brackets, when it shouldn't be necessary due to the Boolean algebra! Sample search for email addresses and (OR) names: "(sender:james AND sender:raymond) OR sender:james.raymond*"
  • Be careful with special characters: \ / ' @ whitespace "
  • Whole words are indexed. Looking for “raymond” and typing in “raymo” won't deliver any result. You have to input the full keyword or to use an asteric. With “raymo*” you could find “raymond” as well as “raymoon”.

Further information

… are here: http://lucene.apache.org/core/3_6_2/queryparsersyntax.html