A quick scan of the chapter shows that the text references code/search/portfolio/themes/basic/static/js/search.js as shown in the following screenshot:
code/search/portfolio/themes/basic/static/js/search.js
You will find that code in the search directory within themes/basic/static.
search
themes/basic/static