# Search operation table This article provides the syntax of all elements allowed in text search queries. The table below provides the syntax of all elements allowed in text search queries. Phrases in the examples are given as raw query text, without escaping for Python string literals. See also [Query language specification]({{< ref "search/python-net/developer-guide/advanced-usage/searching/query-language-specification.md" >}}), [Search flow]({{< ref "search/python-net/developer-guide/advanced-usage/searching/search-flow.md" >}}). | Element | Syntax | Description | Examples | | --- | --- | --- | --- | | Parentheses | ( *inner-query* ) | Parentheses are used to specify order of operations. | | | Field specifier | *field-name* : *inner-query* | Field specifier is used to specify field name. | | | Exact phrase query specifier | \" *exact-phrase-query* \" | Exact phrase query specifier is used to specify phrase for phrase search. | | | And operation | *left-query* & *right-query*
*left-query* AND *right-query* | And operation is used to find documents that contain both left query and right query. | | | Or operation | *left-query* | *right-query*
*left-query* || *right-query*
*left-query* OR *right-query* | Or operation is used to find documents that contain left query, or right query, or both. | | | Not operation | ! *inner-query*
NOT *inner-query* | Not operation is used to find all documents which do not contain inner query. | | | Alias | @*alias-name*
where *alias-name* consists of characters from the ranges a-z and 0-9. | An alias is replaced with the text associated with it in the alias dictionary before the query is parsed. An alias must be separated from the adjacent text by spaces or parentheses. See [Using aliases]({{< ref "search/python-net/developer-guide/advanced-usage/searching/using-aliases.md" >}}). | | | Regular expression specifier | ^*regular-expression* | Regular expression specifier is used to specify query that is regular expression. | | | Numeric range specifier | *start-number* ~~ *end-number* | Numeric range specifier is used to specify range for numeric range search. | | | Date range specifier | daterange( *start-date* ~~ *end-date*)
where *start-date* and *end-date* are dates in the format \'yyyy-MM-dd\'. | Date range specifier is used to specify range for date range search. | | | Wildcard | ? - wildcard character (since v.18.12),
?(*N*~*M*) - wildcard character range (since v.18.12),
\**N* - wildcard word (since v.18.1),
\**N*~~*M* - wildcard word range (since v.18.1),
where *N* and *M* are in the range from 0 to 255. | Wildcard characters and wildcard words are used to search for words with unknown characters and phrases with unknown words, respectively. | | | Escape sequence (since v.19.2) | \\*N*
where *N* can be one of
( ) : \" & | ! ^ ~ \* ? \\
\- or -
s (for space character)
\- or -
u*hhhh*
where *h* is hexadecimal digit (for any Unicode character) | The escape sequence allows a special character to be used in a query as it is. Note that an escaped character must be represented in Alphabet in order for it to be indexed as a valid character (not as Separator). | | ## More resources ### GitHub examples You may easily run the code from documentation articles and see the features in action in our GitHub examples: * [GroupDocs.Search for Python via .NET examples](https://github.com/groupdocs-search/GroupDocs.Search-for-Python-via-.NET) ### Free online document search App Along with the full-featured library, we provide simple but powerful free apps. You are welcome to search over your PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX and more with our free online [Free Online Document Search App](https://products.groupdocs.app/search).