Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Elasticsearch 7.0 Cookbook. - Fourth Edition

You're reading from  Elasticsearch 7.0 Cookbook. - Fourth Edition

Product type Book
Published in Apr 2019
Publisher Packt
ISBN-13 9781789956504
Pages 724 pages
Edition 4th Edition
Languages
Author (1):
Alberto Paro Alberto Paro
Profile icon Alberto Paro

Table of Contents (23) Chapters

Title Page
Copyright and Credits About Packt Contributors Preface Getting Started Managing Mapping Basic Operations Exploring Search Capabilities Text and Numeric Queries Relationship and Geo Queries Aggregations Scripting in Elasticsearch Managing Clusters Backups and Restoring Data User Interfaces Using the Ingest Module Java Integration Scala Integration Python Integration Plugin Development Big Data Integration Another Book You May Enjoy

Using index aliases

Real-world applications have a lot of indices and queries that span more indices. This scenario requires defining all the indices' names on which queries are based; aliases allow grouping of them under a common name.

Some common scenarios for this usage are as follows:

  • Log indices divided by date (that is, log_YYMMDD) for which we want to create an alias for the last week, the last month, today, yesterday, and so on. This pattern is commonly used in log applications such as Logstash (https://www.elastic.co/products/logstash).
  • Collecting website contents in several indices (New York Times, The Guardian, ...) for those we want to be referred to by the index alias sites.

Getting ready

You need an up-and-running...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}