- Leading Technologies
- Natural Gas for Transportation
- About Westport
- Media Library
A query is broken up into terms and operators. There are two types of terms: Single Terms and Phrases.
A Single Term is a single word such as test or hello.
A Phrase is a group of words surrounded by double quotes such as "hello dolly".
Multiple terms can be combined together with Boolean Operators to form a more complex query (see below).
Boolean Operators allow terms to be combined through logic operators. Search supports AND, OR, and NOT as Boolean Operators.
Note: Boolean Operators must be ALL CAPS.
The OR operator is the default conjunction operator—if there is no Boolean Operator between two terms, the OR operator is assumed. The OR operator links two terms and finds a matching document if either of the terms exists in a document. The symbol || can be used in place of the word OR. For example, to search for documents that contain either "Westport WiNG" or just "BAF" use the query:
"Westport WiNG" BAF or "Westport WiNG" OR BAF
The AND operator matches documents where both terms exist anywhere in the text of a single document. The symbol && can be used in place of the word AND. For example, to search for documents that contain "Westport WiNG" and "Power System" use the query: "Westport WiNG" AND "Power System"
The NOT operator excludes documents that contain the term after NOT. The symbol ! can be used in place of the word NOT. For example, to search for documents that contain "Westport WiNG" but not "Ford trucks" use the query:
"Westport WiNG" NOT "Ford trucks"
Note: The NOT operator cannot be used with just one term. For example, the following search will return no results:
NOT "jakarta apache"
Search supports using parentheses to group clauses to form sub-queries. This can be very useful if you want to control the boolean logic for a query. For example, to search for either "heavy-duty" or "light-duty" and "trucks" use the query:
(heavy-duty OR light-duty) AND trucks
This eliminates any confusion and makes sure that the term "trucks" must exist with either the term "light-duty" or "heavy-duty".
Search supports single and multiple character wildcard searches within Single Terms (not within Phrase queries).
To perform a single character wildcard search use the ? symbol. The single character wildcard search looks for terms that match with the single character replaced. For example, to search for "text" or "test" you can use the search: te?t
To perform a multiple character wildcard search use the * symbol. Multiple character wildcard searches looks for zero or more characters. For example, to search for "test", "tests" or "tester", you can use the search: test*
You can also use the wildcard searches in the middle of a term: te*t
Note: You cannot use a * or ? symbol as the first character of a search.