XXX DAX WILL LOOK AT KB ARTICLE AND TELL ME WHAT ELSE SHOULD BE INCLUDED IN THIS TOPIC XXX
Graffiti lets you use Graffiti
Search Syntax to define complex search queries that contain text,
tags, and properties. This topic discusses the rules for using Graffiti
Search Syntax. It includes these sections:
Text Search
Tag Search
Property Search
Operators
Creating Complex Search Queries
Graffiti lets you search for items and people by creating queries using text strings. An item or person is returned in your search results when a successful text match occurs on that item or person.
To create a search query with a text string, simply type the text that you want to look for and execute the search. If desired, you can use operators to add conditions to your search query.
Use these guidelines when creating search queries with text strings:
Text is case-insensitive; that is, uppercase A is the same as lowercase a.
Use quotation marks (") around several words to search for an exact phrase.
Type a list of terms,
separated by spaces, to find search results that contain all of these
terms.
This is the same as using the AND operator.
Type a list of terms, separated by commas or vertical bars (|), to find documents containing one or more of these terms. This is the same as using the OR operator.
For text search, you
can also use the common Internet search operators plus (+) and minus (-).
Put a plus in front of any text that must be included in the results and
a minus in front of any text that must be excluded from results. Do not
include a space after the plus or minus.
Note: You cannot search for text using the + and - operators
combined with Graffiti's operators.
Graffiti lets you search for items and people by creating queries that contain tag references. An item or person is returned in your search results when a successful tag match occurs on that item or person.
To create a tag reference in your search query, type tag followed by a colon (:), followed by the name of the tag. For example, typing tag:sales into your search query returns items and people that have the "sales" tag applied to them. When creating tag references for tags that contain multiple words, put quotations around all of the words, as in tag:"sales department".
If desired, you can use operators to add conditions to your search query.
Typing a tag reference into your search query is the same as clicking that tag. Type the tag name when you want to create a more complex search query that also includes text and properties.
Graffiti lets you search for items and people by creating queries that contain property references. An item or person is returned in your search results when a successful property match occurs on that item or person.
To create a property reference, type the name of the property, followed by a colon, followed by the value that you're looking for. For example, if you want to find all documents that have been authored by a person whose first name is Jane, type author:Jane into your search query. Typing Department:Marketing returns all people who belong to the Marketing department. When creating property references for properties whose values contain multiple words, put quotations around all of the words, as in author:"Fred Smith".
Note: Your search results may include more items and people than just those that have matched your property search exactly. Using the above examples, the property query author:"Fred Smith" returns documents whose author property contains not only just "Fred Smith" but also any other value, such as "Fred Smith-Jones", or "Fred Smith/New York".
The property search query Department:Marketing returns documents whose Department property contains not only just "Marketing", but also any other value, such as "Marketing - Northwest" or "Marketing and Sales".
If desired, you can use operators to add conditions to your search query.
To find out the item and properties that you can search for, click the Properties... link for any item or person in your search results. The properties that appear are applied to all items and users that you have access to. Your administrator determines the properties that are visible to you. XXX DAX WILL VERIFY WHETHER MULTI-WORD PROPERTIES WILL BE TRUNCATED TO ONE WORD OR NOT XXX
The following table describes the operators that you can use in your search queries.
|
Operator |
Description |
Example Search Queries |
|
AND |
Returns results in which both terms on each side of the AND operator are present. Note: Separating your search terms with spaces is the same as using the AND operator. |
|
|
OR |
Returns results in which one of the terms on each side of the OR operator are present. Note: Separating your search terms with commas is the same as using the AND operator. |
|
|
NOT |
Returns results in which the term on the left side of the NOT operator is present and the term on the right side of the NOT operator is not present. |
|
|
NEAR |
Returns results in which the term on the left side of the NEAR operator is within X characters of the term on the right side of the NEAR operator. For example, the query "early <NEAR/10> retirement" yields a document that contains "Plan early for your retirement." Note: You cannot use the NEAR operator with tags and properties. |
|
|
* |
Use the asterisk (*) to search for partial text or properties. The asterisk is called a wildcard. You must include at least three characters if you are doing a substring search (wildcards on each end of the string). Note: You cannot include the * operator in names of tags. |
|
Creating Complex Search Queries
You can create complex search queries that contain any combination of text, tags, properties and operators. You can also use parentheses to nest queries. The following table provides examples of complex queries and describes what they would return in your search results:
Query Example |
Returns |
|
XXX TALK TO DAX ABOUT OTHER REAL WORLD-TYPE EXAMPLES THAT WOULD BE USEFUL XXX |
|
|
("water quality" AND author:"Juanita Jackson") OR ((conservation AND "global warming") OR (conservation AND name:*.ppt)) |
|
|
|
|
Related Topics: