Commit 225a016f authored by Noel Alonso's avatar Noel Alonso
Browse files

Elimina los fallos del dto a retornar

parent 16275272
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -168,8 +168,10 @@ public class ElasticSearchUtils {
			response.innerToXContent(builder, ToXContentObject.EMPTY_PARAMS);
			builder.endObject();

			return jMapper.readValue(Strings.toString(builder), Map.class);

			Map<String, Object> result = jMapper.readValue(Strings.toString(builder), Map.class);
			// Elimina los fallos por tratarse de gran cantidad de datos que no interesan en el cliente.
			((Map<String, Object>) result.get("_shards")).remove("failures");
			return result;
		} catch (IOException e) {
			throw new ESParseException(e);
		}