AnsweredAssumed Answered

HCI API Search - Stats Component

Question asked by Jordan Duffy on Nov 21, 2017
Latest reply on Nov 22, 2017 by Jared Cohen

We are looking to the aggregate volume of data under an index using the API Search function offered by the HCI. This involves leveraging the stats component offered by the Solr Index via the query function (The Stats Component | Apache Solr Reference Guide 7.0 ). The script below returns the filtered items (i.e. there is no error) but does not produce the stats. Any advice on how to correct this issue would be appreciated.

 

{

"modelVersion": "1.2.0", 

"indexName": "DROPB",

"queryString": "HCI_modifiedDateString:[2015-01-01T00:00:00.000Z TO *]",

"itemsToReturn": 20,

"customParameters": [

{

"modelVersion": "1.2.0",

"name": "stats",

"value": "true"

},

{

"modelVersion": "1.2.0",

"name": "stats.field",

"value": "HCI_size"

}

],

"returnedFieldFilter":[

"HCI_id",

"HCI_size",

"HCI_modifiedDateString"

]

}

Outcomes