@Override
    public boolean equals(final Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof ElasticIndexDoc)) {
            return false;
        }
        if (!super.equals(o)) {
            return false;
        }
        final ElasticIndexDoc elasticIndex = (ElasticIndexDoc) o;
        return Objects.equals(description, elasticIndex.description) &&
               Objects.equals(clusterRef, elasticIndex.clusterRef) &&
               Objects.equals(indexName, elasticIndex.indexName) &&
               Objects.equals(searchSlices, elasticIndex.searchSlices) &&
               Objects.equals(searchScrollSize, elasticIndex.searchScrollSize) &&
               Objects.equals(fields, elasticIndex.fields) &&
               Objects.equals(timeField, elasticIndex.timeField) &&
               Objects.equals(defaultExtractionPipeline, elasticIndex.defaultExtractionPipeline);
    }
@return A new builder for creating a {@link DocRef} for this document's type.
stroom-core-shared/src/main/java/stroom/search/elastic/shared/ElasticIndexDoc.java