maggienj / ActiveData

Provide high speed filtering and aggregation over data
Mozilla Public License 2.0
0 stars 0 forks source link

fix TestDeepOps.test_abs_shallow_select #60

Open maggienj opened 7 years ago

maggienj commented 7 years ago

fix TestDeepOps.test_abs_shallow_select

maggienj commented 7 years ago

it raises err on sort field because sort field doesnt have the $datatype may need to add map_to_es_column on sort field ....

No mapping found for [o] in order to sort on

caused by ERROR: Problem with search (path=/testing_000_t/test_result/_search):

    {
        "from": 0,
        "query": {"bool": {"must": [
            {"match_all": {}},
            {"nested": {
                "inner_hits": {"size": 100000},
                "path": "_a",
                "query": {"term": {"_a.b.$string": "x"}}
            }}
        ]}},
        "size": 10,
        "sort": ["o"],
        "stored_fields": ["o.$number"]
    }

caused by ERROR: Bad Request: {"error":{"root_cause":[{"type":"query_shard_exception","reason":"No mapping found for [o] in order to sort on","index_uuid":"I_9GdrZaQWu5WBAnrIeSwA","index":"testing_000_t20170725_183337"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"testing_000_t20170725_183337","node":"OX5gNnXQRtW6gThYBtxJ4w","reason":{"type":"query_shard_exception","reason":"No mapping found for [o] in order to sort on","index_uuid":"I_9GdrZaQWu5WBAnrIeSwA","index":"testing_000_t20170725_183337"}}],"caused_by":{"type":"query_shard_exception","reason":"No mapping found for [o] in order to sort on","index_uuid":"I_9GdrZaQWu5WBAnrIeSwA","index":"testing_000_t20170725_183337"}},"status":400}