All docs
This doc
Function |
|
---|---|
Description | Returns the number of records which match the given drill down criteria. |
Output | The number of records in the ‘message’ element within the argument of the success callback. |
var drillDownReq = { tableName : "TEST", //table name drillDownInfo : { categories : [ // list of facet fields to match { fieldName : "facetField1", //Only records which has the path A, B, C in facetField1 path : ["A", "B", "C"] }, { fieldName : "facetField2", //Only records which has the path X, Y, Z in facetField2 path : [ "X", "Y", "Z"] }] query : "field1 : value1", //Additional lucene query scoreFunction : "scoreParamField * 2" //score function }; client.drillDownSearchCount(drillDownReq, function(data) { console.log (data["message"]); }, function(error) { console.log("error occured: " + error); });
3