About Tagging Engine Search Syntax

The Tagging Engine lets you use Tagging Engine Search Syntax to define complex search queries that contain text, tags, and properties. This topic discusses the rules for using Tagging Engine Search Syntax. It includes these sections:

Text Search

Tag Search

Property Search

Operators

Creating Complex Search Queries

This topic discusses the rules for creating search queries. For information on how the Tagging Engine determines the items and people that it returns in your search results, see About Text, Tag, and Property Matching.

Text Search

The Tagging Engine 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:

Tag Search

The Tagging Engine 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". Tag references are not case sensitive; you can type "tag" and the name of the tag in upper, lower, or mixed case.

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.

Property Search

The Tagging Engine 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 are 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 equals not only just "Fred Smith" but also returns documents whose author property contains any other value, such as "Fred Smith-Jones", or "Fred Smith/New York". The property search query Department:Marketing returns documents whose Department property equals not only just "Marketing", but also returns documents whose Department property contains any other value, such as "Marketing - Northwest" or "Marketing and Sales".

To create a reference to a property that has multiple words, remove the spaces between the words of the property. For example, if your system includes a property called Phone Numberand you want to search for items and people that are tagged with the phone number 415-555-5555create the property search query phonenumber:415-555-5555.

If desired, you can use operators to add conditions to your search query.

To view a list of the properties that you can search for, navigate to the Search Assistant. The drop-down list to the left of the Contains condition includes all of these properties.

Operators

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.

  • Text Example:
    holiday AND schedule

  • Tag Example:
    tag:sales AND tag:"western region"

  • User Property Example:
    author:"Juanita Jackson" AND country:Canada

 

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 OR operator.

  • Text Example:
    holiday OR vacation

  • Tag Example
    tag:sales OR tag:"western region" OR tag:"eastern region"

  • User Property Example:
    author:"Juanita Jackson" OR author:"William Dulany" OR country:Canada

 

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.

  • Text Example:
    holiday NOT vacation

  • Tag Example:
    tag:sales NOT tag:marketing

  • User Property Example:
    author:"Juanita Jackson" NOT language:English

 

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.

  • Text Example:
    early <NEAR/10> retirement

*

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.

  • Text Example:
    s*les

  • User Property Example: author:William*

 

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

(author:"Juanita Jackson" NOT language:English) OR (tag:sales AND tag:"western region")

  • All items authored by Juanita Jackson that are not in the English language

  • All items and people that have the Sales and Western Region tags applied to them

("water quality" AND author:"Juanita Jackson") OR ((conservation AND "global warming") OR (conservation AND name:*.ppt))

  • All items related to water quality authored by Juanita Jackson

  • All items related to conservation which either reference global warming or are PowerPoint files

 

Back to Top


  Related Topics: