为什么值字段类型日期elasticsearch在kibana中不相同?

时间:2017-09-25 06:50:28

标签: elasticsearch kibana

我希望使用PHP客户端Elasticsearch将数据发布到elasticsearch,但在值字段中,弹性搜索在kibana中不相同。

in elasticsearch dateutc:2017-09-25 12:00:00

#include <stdlib.h>
#include <time.h>

int partation(double *a, int lower, int upper)
{
    int i = lower, j = upper;
    double t = a[rand() % (upper - lower) + lower], temp;
    while (i <= j)
    {
        while (i <= upper&&a[i] <= t) i++;
        while (a[j]>t) j--;
        if (i <= j)
        {
            temp = a[i]; a[i] = a[j]; a[j] = temp;
        }
    }
    temp = a[lower];
    a[lower] = a[j];
    a[j] = temp;
    return j;

}

void quick_sort(double *a, int lower, int upper)
{
    int j;
    if (lower >= upper) return;
    else
    {
        j = partation(a, lower, upper);
        quick_sort(a, lower, j - 1);
        quick_sort(a, j + 1, upper);
    }
}

int main()
{
    srand(time(0));
    /*input the value of a here*/
    /*double a[10000];
    for (int i = 10000 - 1, index = 0; --i;++index)
    {
        a[index] = i;
    }*/
    quick_sort(a, 0, 9999);
    return 0;
}

in kibana like here

0 个答案:

没有答案