Specifies full-text search criteria in a CMISQL Query. Defines terms and/or phrases which must be present in the full-text content of the document. The syntax of a CONTAINS predicate is as follows:
CONTAINS('<text search expression>')
The text search expression should contain one or more terms or phrases, optionally separated by logical operators (AND/OR/NOT):
Element Type | Description | Text Search Expression | CMISQL |
---|---|---|---|
Term | A single word without spaces. | computer | CONTAINS('computer') |
Phrase | An exact phrase enclosed by double quotes. | "computer software" | CONTAINS('"computer software"') |
Wildcard | Words or phrases with the asterisk (*) added to the end. | "compu*" | CONTAINS('"compu*"') |
Boolean | Words, phrases, and wildcard strings combined by using the Boolean operators AND, OR, or NOT. | "computer" AND "software program" AND NOT "install component" | CONTAINS('"computer" AND "software program" AND NOT "install component"') |
Text Search Expression | Description |
---|---|
grooper AND cmis -or- grooper cmis | Must contain the word "grooper" and the word "cmis". |
grooper AND NOT cmis -or- grooper AND -cmis -or- grooper -cmis | Must contain the word "grooper" and not contain the word "cmis". |
grooper OR cmis | Must contain either the word "grooper" or the word "cmis". |
grooper AND invoice OR customer AND purcase AND order | Must contain either: the words "grooper" and "invoice" or the words "customer", "purchase", and "order". |
"grooper cmis" | Must contain the exact phrase "grooper cmis". |
payroll report OR expense voucher -or- payroll AND report OR expense AND voucher | Must contain "payroll" and "report" or "expense" and "voucher". |
Signature | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
New (SearchString As String, Inverted As Boolean) |
|
Field Name | Field Type | Description |
---|---|---|
Criteria As Grooper.CMIS.ContainsPredicate+ContainsPart | Grooper.CMIS.ContainsPredicate.ContainsPart | |
Inverted As System.Boolean | System.Boolean | |
SearchString As System.String | System.String |
Property Name | Property Type | Description |
---|---|---|
IsEmpty | System.Boolean | Returns true if all properties with a ViewableAttribute are set to their default value. |
IsWriteable | System.Boolean | Returns true if the object is writable, or false if it is not. |
Method Name | Description | ||||
---|---|---|---|---|---|
GetInvertedValue(Value As Boolean) As Boolean | Returns the inverse of the passed Boolean value, if this query element's Inverted property is True, otherwise the passed Boolean value is returned.
|
||||
GetProperties() As PropertyDescriptorCollection | |||||
IsPropertyEnabled(PropertyName As String) As Nullable(Of Boolean) | Defines whether a property is currently enabled.
|
||||
IsPropertyVisible(PropertyName As String) As Nullable(Of Boolean) | Defines whether a property is currently visible.
|
||||
IsType(Type As Type) As Boolean | Returns true if the object is of the type specified, or if it derives from the type specfied.
|
||||
ToString() As String | |||||
ValidateProperties() As ValidationErrorList | Validates the properties of the object, returning a list of validation errors. |