From aff8a4407fdedbb70c90db00710b749245f4806c Mon Sep 17 00:00:00 2001 From: kimchy Date: Sun, 13 Mar 2011 00:31:21 +0200 Subject: [PATCH] better exception message --- .../main/java/org/elasticsearch/search/fetch/FetchPhase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/search/fetch/FetchPhase.java b/modules/elasticsearch/src/main/java/org/elasticsearch/search/fetch/FetchPhase.java index af36efedc6c..c89d1c1bdb0 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/search/fetch/FetchPhase.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/search/fetch/FetchPhase.java @@ -199,7 +199,7 @@ public class FetchPhase implements SearchPhase { for (String fieldName : context.fieldNames()) { FieldMappers x = context.mapperService().smartNameFieldMappers(fieldName); if (x == null) { - throw new FetchPhaseExecutionException(context, "No mapping for field [" + fieldName + "]"); + throw new FetchPhaseExecutionException(context, "No mapping for field [" + fieldName + "] in order to load it"); } fieldSelector.add(x); }