Exception non attrapée : SearchPhaseExecutionException[Failed to execute phase [query], total failure; shardFailures {[uubpZA7rTKGqoVuE9bTUJg][legi][1]: SearchParseException[[legi][1]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"sort":{"date_du":{"order":"desc"},"_id":{"order":"asc"}},"from":0,"size":10000,"facets":{"theme":{"terms":{"field":"theme.title"}},"date_du":{"histogram":{"key_script":"doc[\"date_du\"].date.year","value_script":"doc[\"date_du\"].value"}}}}]]]; nested: SearchParseException[[legi][1]: from[-1],size[-1]: Parse Failure [No mapping found for [date_du] in order to sort on]]; }{[uubpZA7rTKGqoVuE9bTUJg][legi][0]: SearchParseException[[legi][0]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"sort":{"date_du":{"order":"desc"},"_id":{"order":"asc"}},"from":0,"size":10000,"facets":{"theme":{"terms":{"field":"theme.title"}},"date_du":{"histogram":{"key_script":"doc[\"date_du\"].date.year","value_script":"doc[\"date_du\"].value"}}}}]]]; nested: SearchParseException[[legi][0]: from[-1],size[-1]: Parse Failure [No mapping found for [date_du] in order to sort on]]; }{[uubpZA7rTKGqoVuE9bTUJg][legi][2]: SearchParseException[[legi][2]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"sort":{"date_du":{"order":"desc"},"_id":{"order":"asc"}},"from":0,"size":10000,"facets":{"theme":{"terms":{"field":"theme.title"}},"date_du":{"histogram":{"key_script":"doc[\"date_du\"].date.year","value_script":"doc[\"date_du\"].value"}}}}]]]; nested: SearchParseException[[legi][2]: from[-1],size[-1]: Parse Failure [No mapping found for [date_du] in order to sort on]]; }{[uubpZA7rTKGqoVuE9bTUJg][legi][3]: SearchParseException[[legi][3]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"sort":{"date_du":{"order":"desc"},"_id":{"order":"asc"}},"from":0,"size":10000,"facets":{"theme":{"terms":{"field":"theme.title"}},"date_du":{"histogram":{"key_script":"doc[\"date_du\"].date.year","value_script":"doc[\"date_du\"].value"}}}}]]]; nested: SearchParseException[[legi][3]: from[-1],size[-1]: Parse Failure [No mapping found for [date_du] in order to sort on]]; }] curl -XPOST "http://192.168.1.174:9200/legi/lois_loi/_search" -d "{"sort":{"date_du":{"order":"desc"},"_id":{"order":"asc"}},"from":0,"size":10000,"facets":{"theme":{"terms":{"field":"theme.title"}},"date_du":{"histogram":{"key_script":"doc[\"date_du\"].date.year","value_script":"doc[\"date_du\"].value"}}}}"