@Override public DoubleArrayAtomicFieldData load(AtomicReaderContext context) { try { return cache.load(context, this); } catch (Throwable e) { if (e instanceof ElasticSearchException) { throw (ElasticSearchException) e; } else { throw new ElasticSearchException(e.getMessage(), e); } } }
@Override public IndexOrdinalsFieldData loadGlobal(IndexReader indexReader) { if (indexReader.leaves().size() <= 1) { // ordinals are already global return this; } try { return cache.load(indexReader, this); } catch (Throwable e) { if (e instanceof ElasticsearchException) { throw (ElasticsearchException) e; } else { throw new ElasticsearchException(e.getMessage(), e); } } }