Hi All,
I ma getting below error in my elastic logs.
[2018-08-04T12:34:23,177][DEBUG][o.e.a.s.TransportSearchAction] [MASTER-DATA-] [ao_axa_session_hdr_1][2], node[NFD6h_7ETSu_Prp2W4bVxg], [R], s[STARTED], a[id=vPX_h_hpS5y3GCYeHaW9RA]: Failed to execute [SearchRequest{searchType=QUERY_THEN_FETCH, indices=[ao_axa_session_hdr_1*], indicesOptions=IndicesOptions[id=38, ignore_unavailable=false, allow_no_indices=true, expand_wildcards_open=true, expand_wildcards_closed=false, allow_alisases_to_multiple_indices=true, forbid_closed_indices=true], types=[], routing='null', preference='null', requestCache=null, scroll=null, source={
"size" : 0,
"query" : {
"bool" : {
"filter" : [
{
"term" : {
"tenant_id" : {
"value" : "2A2B87C7-AB57-B594-446E-7B3166680B22",
"boost" : 1.0
}
}
},
{
"has_child" : {
"query" : {
"match_all" : {
"boost" : 1.0
}
},
"type" : "session_length",
"score_mode" : "none",
"min_children" : 0,
"max_children" : 2147483647,
"ignore_unmapped" : false,
"boost" : 1.0
}
},
{
"range" : {
"session_start" : {
"from" : "1533279902726",
"to" : "1533366302726",
"include_lower" : true,
"include_upper" : true,
"boost" : 1.0
}
}
}
],
"disable_coord" : false,
"adjust_pure_negative" : true,
"boost" : 1.0
}
},
"explain" : false,
"aggregations" : {
"header" : {
"terms" : {
"field" : "_type",
"size" : 10,
"min_doc_count" : 1,
"shard_min_doc_count" : 0,
"show_term_doc_count_error" : false,
"order" : [
{
"_count" : "desc"
},
{
"_term" : "asc"
}
]
},
"aggregations" : {
"session_length" : {
"children" : {
"type" : "session_length"
},
"aggregations" : {
"length_buckets" : {
"range" : {
"field" : "session_length",
"ranges" : [
{
"key" : "0to3s",
"from" : 0.0,
"to" : 3000.0
},
{
"key" : "3to8s",
"from" : 3000.0,
"to" : 8000.0
},
{
"key" : "8to15s",
"from" : 8000.0,
"to" : 15000.0
},
{
"key" : "15to30s",
"from" : 15000.0,
"to" : 30000.0
},
{
"key" : "30to60s",
"from" : 30000.0,
"to" : 60000.0
},
{
"key" : "1to3m",
"from" : 60000.0,
"to" : 180000.0
},
{
"key" : "3to10m",
"from" : 180000.0,
"to" : 600000.0
},
{
"key" : "10to30m",
"from" : 600000.0,
"to" : 1800000.0
},
{
"key" : "30to60m",
"from" : 1800000.0,
"to" : 3600000.0
},
{
"key" : "1to2h",
"from" : 3600000.0,
"to" : 7200000.0
},
{
"key" : "2to3h",
"from" : 7200000.0,
"to" : 1.08E7
},
{
"key" : "3h",
"from" : 1.08E7
}
],
"keyed" : false
}
}
}
}
}
}
}
}}] lastShard [true]
org.elasticsearch.transport.RemoteTransportException: [MASTER-DATA-][172.22.221.58:9300][indices:data/read/search[phase/query]]
Caused by: org.elasticsearch.index.query.QueryShardException: [has_child] no mapping found for type [session_length]
at org.elasticsearch.join.query.HasChildQueryBuilder.doToQuery(HasChildQueryBuilder.java:329) ~[?:?]
at org.elasticsearch.index.query.AbstractQueryBuilder.toQuery(AbstractQueryBuilder.java:96) ~[elasticsearch-5.5.3.jar:5.5.3]
at org.elasticsearch.index.query.AbstractQueryBuilder.toFilter(AbstractQueryBuilder.java:118) ~[elasticsearch-5.5.3.jar:5.5.3]
at org.elasticsearch.index.query.BoolQueryBuilder.addBooleanClauses(BoolQueryBuilder.java:446) ~[elasticsearch-5.5.3.jar:5.5.3]
at org.elasticsearch.index.query.BoolQueryBuilder.doToQuery(BoolQueryBuilder.java:419) ~[elasticsearch-5.5.3.jar:5.5.3]
at org.elasticsearch.index.query.AbstractQueryBuilder.toQuery(AbstractQueryBuilder.java:96) ~[elasticsearch-5.5.3.jar:5.5.3]
at org.elasticsearch.index.query.QueryShardContext.lambda$toQuery$1(QueryShardContext.java:313) ~[elasticsearch-5.5.3.jar:5.5.3]
at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:325) ~[elasticsearch-5.5.3.jar:5.5.3]
at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:312) ~[elasticsearch-5.5.3.jar:5.5.3]
at org.elasticsearch.search.SearchService.parseSource(SearchService.java:613) ~[elasticsearch-5.5.3.jar:5.5.3]
at org.elasticsearch.search.SearchService.createContext(SearchService.java:481) ~[elasticsearch-5.5.3.jar:5.5.3]
at org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:457) ~[elasticsearch-5.5.3.jar:5.5.3]
at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:253) ~[elasticsearch-5.5.3.jar:5.5.3]
at org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:330) ~[elasticsearch-5.5.3.jar:5.5.3]
at org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:327) ~[elasticsearch-5.5.3.jar:5.5.3]
at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69) ~[elasticsearch-5.5.3.jar:5.5.3]
at org.elasticsearch.transport.TcpTransport$RequestHandler.doRun(TcpTransport.java:1544) ~[elasticsearch-5.5.3.jar:5.5.3]
Any help will be great.
Regards
Amit Singh Bisht