Summary
In this chapter we've looked at simple and compound query types that are available in ElasticSearch. In addition to that, we've learned how to filter query results and alter the way documents are sorted. We've also learned how to use scripts in ElasticSearch. In the next chapter, we will look at some of the ways to extend our index structure and search results, such as highlighting, using geographical queries or implementing autocomplete functionality with ElasticSearch.