...
You can perform the above search in the Analytics REST API using the following request. It will return the records which match the drill down search. For more information, see Drilling Down Through Categories Retrieving Specific Records through a Drill Down Search via REST API.
Code Block | ||
---|---|---|
| ||
POST https://localhost:9443/analytics/drillDown { "tableName": "BOOK_STORE", "categories": [ { "fieldName": "PUBLISHED_DATE", "path" : ["1866", "05", "03"] } ], "query" : "timestamp : [1243214324532 TO 4654365223]", "recordStart" : 0, "recordCount" : 100 } |
Note |
---|
In the above example, |
Searching data within a value range
This denotes using facets to filter data based on a value range Also you can perform the above search in the Analytics REST API using the following request. It will return the number of records which match the drill down search. For more information, see Retrieving the Number of Records Matching the Drill Down Criteria via REST API.
Code Block | ||
---|---|---|
| ||
POST https://localhost:9443/analytics/drillDownCount
{
"tableName": "BOOK_STORE",
"categories": [
{
"fieldName": "PUBLISHED_DATE",
"path" : ["1866", "05", "03"]
}
],
"query" : "timestamp : [1243214324532 TO 4654365223]
"recordStart" : 0,
"recordCount" : 100
} |
Searching data within a value range
This denotes using facets to filter data based on a value range of an attribute which is defined as a facet.
...
You can perform the above search in the Analytics REST API using the following request. For more information, see Drilling Down Through Categories via REST APIRetrieving the Event Count of Range Facets.
Code Block | ||
---|---|---|
| ||
POST https://localhost:9443/analytics/rangecount { "tableName": "BOOK_STORE", "rangeField" : "PRICE", "ranges" : [ { "label" : "20USD - 30USD", "from" : 20, "to" : 30 }, { "label" : "30USD - 40USD", "from" : 30, "to" : 40 } ], "query" : "*:*" } |
...