mirror of https://github.com/apache/lucene.git
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:
parent
beb35ff50c
commit
eb899ea918
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue