Elasticsearch indexes can be used for search, analytics, and visualization. Inverted indexes excel at search and analytics by indexing documents and terms which allows for fast retrieval of documents matching queries and analysis of term frequencies. Columnar indexes in Elasticsearch allow for real-time analytics across structured and unstructured data like histograms of term usage over time by storing metadata like document IDs and timestamps with the index. These capabilities make Elasticsearch well-suited for visualization and analytics in distributed, cloud-based environments.