Ranges, Sorting, Pagination, and Highlighting

6 min
Audience
you master match, term, and bool (lesson 01)
Duration
25 to 30 min
Module
3/7
Target skill
filter by interval (number, date), sort on several criteria, paginate cleanly (including beyond 10,000 results), and highlight the words found.

In One Picture

Think of the results page of a travel site. You checked "under $200", "departure within the next 12 months": these are ranges. You clicked "sort by rating then by number of reviews": that is sorting. You scroll through pages 1, 2, 3: that is pagination, and the site knows that beyond a certain page it is better to offer you "load more" than a direct jump to page 900. Finally, the words you typed appear in yellow in the descriptions: that is highlighting. This lesson gives you exactly these four tools in Elasticsearch, with their traps.

Preview — the rest of the lesson is for enrolled readers.

Already enrolled with a code?

Your access is tied to your account, not to this link. Sign in with the same email you used in class: your course is waiting, no need to enter the code again.

Sign inNo account yet? Create one
This lesson is part of the “Search Like a Pro with Query DSL” module

The first modules of the course are open to everyone. For the rest you have three options: buy this course once and for all, subscribe, or enter the code handed out in class.

Are you a student on this course?

The code is tied to your account: sign in or create an account and it will be applied automatically when you come back.

No account yet? Create one