Using AND, OR, and NOT Operators in Search

SOLIDWORKS PDM supports AND, OR, and NOT operators in input search criteria in edit-box type fields on search cards.

You can use these search operators in any search card, Web2 search, the SOLIDWORKS PDM Search tool, and quick search.

Rules:

  • Search strings are case-insensitive.
  • Operators are case-sensitive and must be capitalized.
  • For variables of a numeric or date type, the valid operators are: =, !=, <, <=, >, >=.
  • If the search string contains any of the following characters: =, <, >, !, &, |, (, ), {, }, :, ", or \, you must precede the character with an escape symbol. Alternatively, enclose the whole search string in double quotation marks.

    For example, to search for string article:1, enter the input string as article\:1 or "article:1".

  • Rules for using escape symbol:
    Search for String with Input String
    Double quotation marks String with an escape symbol \.

    For example, to search for "speaker", enter the string as \"speaker\"

    Double quotation marks that are a part of an explicit search

    String with an escape symbol \.

    For example, to search for 3" pipe, enter the string as "3\" pipe".

    Numeric constant followed by " String with or without escape symbol.

    For example, to search for a length value such as 3", enter the search string as 3\" or 3".

    Exclamation mark String with an escape symbol \.

    For example, to search for Alert!, enter the string as Alert\!.

    Colon String with an escape symbol \.

    For example, to search for 2:1, enter the string as 2\:1.

    Parenthesis String with an escape symbol \.

    For example, to search for 9)Articles, enter the string as 9\)Articles.

  • In case of multiple operators used in a search, SOLIDWORKS PDM evaluates the search operators in this order: (), NOT, AND, and OR.
  • You can use AND, OR, and NOT search operators or their equivalent symbols &, |, ! respectively.
  • You can search for text, integer number, float, and date type data.
  • You can use the AND and OR operators with or without the :. For example, for AND operator, use AND, AND:, &, or &:.
  • The search field supports * and ? as wildcard characters.
  • You can use = to search for an exact string. For example, to search for a Tools string, enter the search string as =Tools.
  • In case of a string that contains more than one word, you can use "" to search for the string in the same order of words. For example, to search for pipe tools, enter "pipe tools".
When you upgrade to SOLIDWORKS PDM 2020, the previously saved searches are upgraded to follow the new search rules while maintaining the previous behavior and search results.

AND (&) Operator

Searches for results that include both the term before and the term after the operator.

Search String Examples Description
term1 AND term2

TERM1 & TERM2

AND: term1 term2

&: term1 term2

Returns the match that includes term1 and term2. Terms may appear in any order in the results.
Examples of valid search results:
  • term1 term2
  • term2 term1
  • term3 term1 term2
"(*" term1 term2 "*)" OR "(*)" term1 term2

AND is the implicit operator for the SPACE character.

Returns the match that is enclosed in the parentheses and that contains term1 and term2.

Examples of valid search results:
  • (term1 term2)
  • (term2 term1 term3)
"(*" "term1 term2" "*)" or "(*)" "term1 term2"

AND is the implicit operator for the SPACE character.

Returns the match that is enclosed in the parentheses and that contains the string term1 term2.

Examples of valid search results:
  • (term1 term2)
  • (term3 term1 term2 term4)

OR (|) Operator

Searches for results that include the term before or after the operator or both.

Search String Examples Description
term1 OR term2

TERM1 | TERM2

OR: term1 term2

|: term1 term2

Returns the match that includes either or both term1 and term2.
Examples of valid search results:
  • term1
  • term2
  • term2 term1
"(*" term1 OR term2 "*)" or "(*)" (term1 OR term2)

Returns the match that is enclosed in the parentheses and that includes either term1 or term2 or both.

Examples of valid search results:
  • (term1)
  • (term3 term2)
  • (term2 term1 term4)

NOT (!) Operator

Searches for results that do not include the term after the operator.

Search String Examples Description
NOT TERM1 Returns values other than term1.
Examples of valid search results:
  • term2
  • term3 term4
!="term1 term2" Returns values other than string term1 term2.
Examples of valid search results:
  • term3
  • term2 term1
!(2019-01-11)

Returns dates other than 2019-01-11.

Examples of valid search results:
  • 2019-02-12
  • 2017-03-11