Content List
As a enterprise user, you can use a content list component to dynamically display content items of a particular type.
For example, you can use a content item list on a designated detail page and when a user clicks a link to get more detailed information for a particular content item, it will automatically load the detail view for the associated content item. For example, if there is a page with multiple articles, each with a headline and image, and the user clicks a particular article, the detail page displays the full article regardless of which article is chosen.
To add a content list component to a page:
Table 10-1 Query Operators
Operator | Example | Supported Data Types | Description |
---|---|---|---|
eq | ?q=name eq "John" ?q=type eq "DigitalAsset" ?q=type eq "Employee" and fields.DOB eq "1994/09/26T16:23:45.208" ?q=type eq "Employee" and fields.DOB eq "1994/09/26T16:23:45.208" |
text, reference, number, decimal, boolean, datetime | Equals operator (eq) matches the exact value supplied in the query. This operator is not applicable to multivalued data types. The value provided with this operator is not case-sensitive except for standard fields. This operator considers even special characters in the value. |
co | ?q=(type eq "Employee" AND name co "john alex") ?q=(type eq "Car" AND fields.features co "manual") |
text, reference, number, decimal, datetime, largetext | Contains operator (co) matches every word given in the criteria. The words are formed by splitting the value by special characters. It gives the results that have at least one of the words (in this example, john or alex or both). This operator does not consider special characters in the value while searching. This operator does not perform a search on stop words. Refer to Apache Lucene documentation to know more about stop words.
This operator is applicable to text, largetext in case of single-valued attributes, whereas for multivalued attributes, it is applicable to text, reference, number, decimal, datetime, largetext. To understand the possible datetime formats, refer to the Supported date/datetime formats (24Hrs) table below. The value provided with this operator is not case-sensitive. |
sw | ?q=type eq "Employee" AND name sw "Joh" ?q=type eq "Employee" AND fields.city sw "Los" |
text | Starts with operator (sw) matches only the initial character values given in the field condition. This operator is not applicable to multivalued data types. The value provided with this operator is not case-sensitive. |
ge | ?q=(type eq "Employee" AND fields.age ge "40") ?q=type eq "DigitalAsset" AND updatedDate ge "20171026" |
number, decimal, datetime | Greater than or equal to operator (ge) matches only numeric and datetime values. To understand the possible datetime formats, refer to the Supported date/datetime formats (24Hrs) table below. This operator is not applicable to multivalued data types. |
le | ?q=(type eq "Employee" AND fields.weight le "60.6") | number, decimal, datetime | Less than or equal to operator (le) matches only numeric and datetime values. To understand the possible datetime formats, refer to the Supported date/datetime formats (24Hrs) table below. This operator is not applicable to multivalued data types. |
gt | ?q=(type eq "Employee" AND fields.age gt "20") | number, decimal, datetime | Greater than operator (gt) matches only numeric and datetime values. To understand the possible datetime formats, refer to the Supported date/datetime formats (24Hrs) table below. To understand the possible datetime formats, refer to the Supported date/datetime formats (24Hrs) table below. This operator is not applicable to multivalued data types. |
lt | ?q=(type eq "Employee" AND fields.age lt "20") ?q=type eq "Employee" AND createdDate lt "1994/09/26T16:23:45.208" |
number, decimal, datetime | Less than operator (lt) matches only numeric and datetime values. To understand the possible datetime formats, please refer to the section: Supported date/datetime formats (24Hrs). This operator is not applicable to multivalued data types. |
mt | ?q=(type eq "Car" AND fields.review mt "petrol 20KMPL") ?q=(type eq "Employee" AND name mt "Jo?n") ?q=(type eq "Employee" AND name mt "Jo*") ?q=(type eq "Employee" AND fields.role mt "senior*") |
text, largetext | Phrase query or proximity search (matches) operator (mt) enables you to find words that are within a specific distance to one another. Results are sorted by best match. It is useful for searching content items when values given in the criteria "petrol 20kmpl" need to discover actual content that may contain "petrol fuel mileage runs 20KMPL in the speed way".
Matches operator also can use a wildcard within the given value and supports both single-character and multiple-character wildcard searches within a single value. Use ? for a single-character wildcard and * for multiple characters. Both "John" and "Joan" can be searched by "Jo?n" for a single character and "Jo*" for multiple characters. This operator is applicable to both single-valued and multivalued data types. This operator does not perform a search on stop words. Refer to Apache Lucene documentation to know more about stop words. The value provided with this operator is not case-sensitive. |
sm | ?q=(type eq "Employee" And fields.city sm "Rome") | text, largetext | Similarity query operator. This operator allows searching for values that sound like specified criteria - also called fuzzy search, which uses by default a maximum of two edits to match the result. "Rome" is similar to "Dome". This operator is applicable to both single-valued and multivalued data types. The value provided with this operator is not case-sensitive. |
AND | ?q=(type eq "Employee" AND name eq "John" AND fields.age ge "40") | N/A | AND operator, can be used to put an AND condition between multiple query conditions. This takes precedence over OR. |
OR | type eq "Employee" AND name eq "John" OR fields.age ge "40" | N/A | OR operator can be used to put an OR condition between multiple query conditions. |
( ) | ?q=type eq "Employee" AND (name eq "John" AND fields.age ge "40") ?q=type eq "Employee" AND ( (name eq "John" AND fields.age ge "40") OR fields.weight ge 60) |
N/A | Parentheses, enclosing operator to group the conditions in the criteria. This takes highest precedence, followed by AND, and then by OR. |