fix #1111 added support for significant terms heuristics elasticsearch/elasticsearch#6858
Merge pull request #1129 from elasticsearch/feature/sig-terms-heuristics

fix #1111 added support for significant terms heuristics