Searching the Help
To search for information in the Help, type a word or phrase in the Search box. When you enter a group of words, OR is inferred. You can use Boolean operators to refine your search.
Results returned are case insensitive. However, results ranking takes case into account and assigns higher scores to case matches. Therefore, a search for "cats" followed by a search for "Cats" would return the same number of Help topics, but the order in which the topics are listed would be different.
Search for | Example | Results |
---|---|---|
A single word | cat
|
Topics that contain the word "cat". You will also find its grammatical variations, such as "cats". |
A phrase. You can specify that the search results contain a specific phrase. |
"cat food" (quotation marks) |
Topics that contain the literal phrase "cat food" and all its grammatical variations. Without the quotation marks, the query is equivalent to specifying an OR operator, which finds topics with one of the individual words instead of the phrase. |
Search for | Operator | Example |
---|---|---|
Two or more words in the same topic |
|
|
Either word in a topic |
|
|
Topics that do not contain a specific word or phrase |
|
|
Topics that contain one string and do not contain another | ^ (caret) |
cat ^ mouse
|
A combination of search types | ( ) parentheses |
|
Query operators
Since Service Manager must translate queries into native RDBMS language, you should try to use operators that map well to native RDBMS languages. In general, queries that use the EQUAL TO operator ( = ) are the most efficient and easiest to translate.
Operator | Example query | Sample SQL statement |
---|---|---|
EQUAL TO ( =) | contact.name="AARON, JIM"
|
SELECT "CONTACT_NAME" FROM CONTCTSM1 WHERE "CONTACT_NAME"='AARON, JIM';
|
As the example illustrates, an EQUAL TO query often directly translates into a SQL query as part of a WHERE clause. In addition, queries with EQUAL TO operations are also the most likely to use and benefit from table indexes.
If you cannot use an EQUAL TO operator in a query, the following operators will also in many cases facilitate direct translation into SQL queries.
Operator | Example query | Sample SQL statement |
---|---|---|
Starts with ( # ) |
contact.name#"AA"
|
SELECT "CONTACT_NAME" FROM CONTCTSM1 WHERE "CONTACT_NAME" LIKE 'AA%';
|
LIKE | contact.name like "A*RON*"
|
SELECT "CONTACT_NAME" FROM CONTCTSM1 WHERE "CONTACT_NAME" LIKE 'A%RON%';
|
ISIN | contact.name isin {"AARON, JIM","ARMSTRONG, TRACY"}
|
SELECT "CONTACT_NAME" FROM CONTCTSM1 WHERE "CONTACT_NAME" IN ('AARON,JIM','ARMSTRONG,TRACY');
|
In these examples, the LIKE operator directly translates into a SQL query as part of a WHERE clause. The ISIN operator translates into an IN predicate. The STARTS WITH operator ( # ) translates into a LIKE predicate using a wildcard character.
Such kind of queries now translate into a SQL statement like the following:
'1 in assets="adv-Unix-101"'
'a3.record_number = 1 AND a3.asset = ?'
Supported query operators
The following operators are supported in a query:
- All logical operators
- TR, and NTR
- Like
Caution If other operators are used in a query, the query translates into "1=1" and may cause performance issues.
For example, the following queries are supported:
'1 in assets ="adv-Unix-101"'
'7 in assets >"adv-Unix-101"'
'7 in assets#"adv-Desktop"'
'7 in assets like "adv-*-104"'
Caution Only one array member can be used in the same query. For example, the following query is not supported:
1 in assets ="adv-Unix-101" and 2 in assets ="adv-Unix-102"
This is because in the final SQL statement there would be "a3.record_number = 1 AND a3.record_number = 2"
, which is always false
for the RDBMS.
We welcome your comments!
To open the configured email client on this computer, open an email window.
Otherwise, copy the information below to a web mail client, and send this email to ovdoc-ITSM@hp.com.
Help Topic ID:
Product:
Topic Title:
Feedback: