From 3479f2a98151c7f1927758a62034f45ef4d58032 Mon Sep 17 00:00:00 2001 From: kimchy Date: Tue, 21 Sep 2010 23:49:55 +0200 Subject: [PATCH] better exception message --- .../main/java/org/elasticsearch/search/dfs/CachedDfSource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/search/dfs/CachedDfSource.java b/modules/elasticsearch/src/main/java/org/elasticsearch/search/dfs/CachedDfSource.java index 44af9dbb9ac..72752396e55 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/search/dfs/CachedDfSource.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/search/dfs/CachedDfSource.java @@ -48,7 +48,7 @@ public class CachedDfSource extends Searcher { public int docFreq(Term term) { int df = dfs.dfMap().get(term); if (df == -1) { - throw new IllegalArgumentException("df for term " + term.text() + " not available"); + throw new IllegalArgumentException("df for term " + term + " not available"); } return df; }