Chapter 3. Extending Your Structure and Search
Till now we've learned how to install, configure, and query our ElasticSearch cluster. We also prepared some more sophisticated mappings. We've also used aliasing to make querying easier and in addition to that we used routing to control where the data is placed. In this chapter, we will extend our knowledge of ElasticSearch by looking at how to index data that is not flat, how to handle geographical data, and how to deal with files. We will also learn how to distinguish the text fragment that was matched and how to implement commonly used autocomplete features. By the end of this chapter you will learn:
How to index data that is not flat
How to extend your index with additional data such as time-to-live and document identifier
How to handle highlighting
How to implement the autocomplete feature
How to handle files
How to handle geographical data