Criteria reference: comparison of v.2 vs v.3
Versions Compared
Old Version 2
changes.mady.by.user Dominika Kurek
Saved on Jan 29, 2016
compared with
New Version Current
changes.mady.by.user Dominika Kurek
Saved on Mar 18, 2016
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Comment: related topics
...
| Criterion | Constructor arguments description | ||||||
|---|---|---|---|---|---|---|---|
| ContentId | value being scalar(s) representing the Content id. | ||||||
| ContentTypeGroupId | value being scalar(s) representing the Content Typ eGroup id. | ||||||
| ContentTypeId | value being scalar(s) representing the Content Type id. | ||||||
ContentTypeIdentifier
|
value being string(s) representing the Content Type identifier, example: "article". | ||||||
| DateMetadata | target (DateMetadata ::MODIFIED, DateMetadata ::CREATED), operator (IN, EQ, GT, GTE, LT, LTE, BETWEEN), value being integer(s) representing unix timestamp. | ||||||
| Field | target (FieldDefinition identifier), operator (IN, EQ, GT, GTE, LT, LTE, LIKE, BETWEEN, CONTAINS), value being scalar(s) relevant for the field. | ||||||
FieldRelation
|
target (FieldDefinition identifier), operator (IN, CONTAINS), value being array of scalars representing Content id of relation. Use of IN means relation needs to have one of the provided ID's, while CONTAINS implies it needs to have all provided id's. |
||||||
| FullText | value being the string to search for, properties is array to set additional properties for use with future search engines like Solr/ElasticSearch. | ||||||
| LanguageCode | value being string(s) representing Language Code(s) on the Content (not on Fields), matchAlwaysAvailable
|
||||||
| LocationId | value being scalar(s) representing the Location id. | ||||||
| LocationRemoteId | value being string(s) representing the Location Remote id. | ||||||
| LogicalAnd | A LogicalOperator that takes array of other Criteria, makes sure all Criteria match. | ||||||
| LogicalNot | A LogicalOperator that takes array of other Criteria, makes sure none of the Criteria match. | ||||||
| LogicalOr | A LogicalOperator that takes array of other Criteria, makes sure one of the Criteria match. | ||||||
MapLocationDistance
|
target (FieldDefinition identifier), operator ( IN, EQ, GT, GTE, LT, LTE, BETWEEN), distance as float(s) from a position using latitude as float, longitude as float as arguments | ||||||
| MatchAll | No arguments, mainly for internal use when no filter or query is provided on Query object. | ||||||
| MatchNone | No arguments, mainly for internal use by BlockingLimitation. | ||||||
| MoreLikeThis |
|
||||||
| ObjectStateId | value being string(s) representing the Content ObjectState id. | ||||||
| ParentLocationId | value being scalar(s) representing the Parent's Location id | ||||||
| RemoteId | value being string(s) representing the Content Remote id. | ||||||
| SectionId | value being scalar(s) representing the Content Section id. | ||||||
| Subtree | value being string(s) representing the Location id in which you can filter. If the Location Id is /1/2/20/42, you will filter everything under 42. | ||||||
| UserMetadata | target (UserMetadata ::OWNER , UserMetadata ::GROUP , UserMetadata ::MODIFIER), operator (IN, EQ ), value being scalars (s) representing the User or User Group id(s). | ||||||
| Visibility | value (Visibility ::VISIBLE , Visibility ::HIDDEN), Note: This acts on all assigned locations when used with ContentSearch, meaning hidden content will be returned if it has a location which is visible. Use LocationSearch to avoid this. |
Comments
Add a comment