query Method
PropertyType analyzer에 의한 색인(index)에 query Method로 질의를 할 수 있다.
analyzer에 따라 같은 Method 질의의 결과가 달라질 수 있다.
ID | Description |
---|---|
matching | like |
notMatching | not like |
matchingShould | or 검색 should 끼리 or로 처리 |
wildcard | like |
notWildcard | not like |
wildcardShould | or 검색 should 끼리 or로 처리 |
equals | only DB
|
above | >= |
below | <= |
excess | > |
under | < |
fromto | {
"field": "created",
"method": "fromto",
"value": "20200101~20201231"
} |
hasReferenced |
|
referenceJoin | PropertyType의 참조 nodeType (referenceType)에 Join 을 할 수 있다 {
"field": "product",
"method": "referenceJoin",
"value": "saleSatatus_matching=selling&saleEndDate_above={{:today}}"
}
|
sorting | 정렬 {
"method": "sorting",
"value": "created desc"
} |
page | 페이지 번호 default : 1 |
pageSize | 페이징 기준 사이즈 default : 10
{
"result": "200",
"resultMessage": "SUCCESS",
"totalCount": 38,
"totalTypeCount": 489,
"resultCount": 10,
"pageSize": 10,
"pageCount": 4,
"currentPage": 1,
"items": [
{
"id": 1716647245,
"title": "공지합니다. (수정)",
"owner": {
"value": "anonymous",
"label": "Anonymous User",
"refId": "user::anonymous"
},
"created": "2020-07-30 15:38:09"
}
...
]
}
|
includeReferenced | PropertyType의 하위 노드 리스트를 pid 객체에 반환
{
"method": "includeReferenced",
"value": "users"
}
{
"result": "200",
"resultMessage": "SUCCESS",
"item": {
"id": "admin",
"typeId": "adminGroup",
"name": "Admin Group",
"users": [
{
"id": "admin1",
"group": {
"value": "admin",
"label": "Admin Group",
"refId": "admin"
},
"name": "관리자테스트",
},
{
"id": "defaultAdmin",
"group": {
"value": "admin",
"label": "Admin Group",
"refId": "admin"
},
"name": "Default Admin User"
}
]
}
}
|
referenceView | PropertyType의 참조 객체 데이터를 읽어와서 Object로 pid 객체의 item에 리턴 {
"method": "referenceView",
"value": "seller"
}
{
"result": "200",
"resultMessage": "SUCCESS",
"totalCount": 311,
"totalTypeCount": 311,
"resultCount": 1,
"more": true,
"moreCount": 311,
"items": [
{
"id": 1762538,
"label": "LG G pad 5 10.1 FHD WiFi",
"seller": {
"value": "1174839437",
"label": "[seller] LG U+",
"refId": "1174839437"
}
}
]
}
{
"result": "200",
"resultMessage": "SUCCESS",
"totalCount": 311,
"totalTypeCount": 311,
"resultCount": 1,
"more": true,
"moreCount": 311,
"items": [
{
"id": 1762538,
"label": "LG G pad 5 10.1 FHD WiFi",
"seller": {
"value": "1174839437",
"label": "[seller] LG U+",
"refId": "1174839437",
"item": {
"id": "1174839437",
"name": "[seller] LG U+",
"sellerType": {
"value": "individual",
"label": "개인"
},
"address": {
"id": "3366057",
"address": "서울 강남구",
"detailAddress": "테헤란로10길 15",
"zipCode": "06234",
"fullAddress": "(06234) 서울 강남구 테헤란로10길 15",
"label": ""
}
...
}
}
}
]
}
|
facet | value 기준 group by 된 count 를 Object로 반환 {
"method": "facet",
"value": "apiType,user"
}
{
"result": "200",
"resultMessage": "SUCCESS",
"totalCount": 81,
"totalTypeCount": 81,
"resultCount": 81,
"facets": {
"apiType": {
"internal": 5,
"service": 12,
"admin": 64
},
"user": {
"customer::233174268": 11,
"admin::system": 58
}
},
"items": [
{
...
}
]
}
|
limit | 쿼리 결과 제한 건수 {
"method": "limit",
"value": "2"
} resultCount : 2 {
"result": "200",
"resultMessage": "SUCCESS",
"totalCount": 311,
"totalTypeCount": 311,
"resultCount": 2,
"more": true,
"moreCount": 155,
"items": [
...
]
} |