SOLR-1694: avoid printStackTrace()

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@990319 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Koji Sekiguchi 2010-08-28 04:15:43 +00:00
parent beb35ff50c
commit eb899ea918
1 changed files with 2 additions and 2 deletions

View File

@ -23,6 +23,7 @@ import java.util.Map;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.search.FieldCache.DocTerms;
import org.apache.lucene.util.BytesRef;
import org.apache.solr.common.SolrException;
/**
* Use a field value and find the Document Frequency within another field.
@ -60,9 +61,8 @@ public class JoinDocFreqValueSource extends FieldCacheSource {
return v;
}
catch (IOException e) {
e.printStackTrace();
throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "caught exception in function "+description()+" : doc="+doc, e);
}
return 0;
}
public float floatVal(int doc) {