Help: how to specify reindex metrics?

Hi guys,

Recently I am trying re-index mechanism, but I am wondering how to specify metrics:

  1. How to specify long metrics?

first ingest:

{

“type”: “longSum”,

“name”: “mysum”,

“fieldName”: “val”

}

re-index:

{

“type”: “longSum”,

“name”: “mysum”,

“fieldName”: “val” or “mysum”?

}

Question 1: Should I still specify ‘val’ for ‘fieldName’? How can the re-index task find its input? As I assume, ‘val’ is not available from first ingested segments.

  1. How to specify thetaSketch metrics?

first ingest:

{

“type” : “thetaSketch”,

“name” : “imei_sessionId_sketch_x256”,

“fieldName” : “imei_sessionId”,

“size” : 4194304,

“isInputThetaSketch” : false

}

re-index:

{

“type” : “thetaSketch”,

“name” : “imei_sessionId_sketch_x256”,

“fieldName” : “imei_sessionId” or “imei_sessionId_sketch_x256”?,

“size” : 4194304,

“isInputThetaSketch” : false or true?

}

Question 2: Should I still specify ‘imei_sessionId’ for ‘fieldName’? I think ‘imei_sessionId’ is not available from ingested segments.

Question 3: in re-index, the input is previous generated sketch. So shouldn’t ‘isInutThetaSketch’ be set to ‘true’?

Could anyone help on this problem?

在 2016年12月14日星期三 UTC+8下午11:00:28,李斯宁写道:

Fieldname is the name of the column in your input data
Name is the name of the column in the indexed (output) data