wax:search
Wax:search is the task responsible for generating a search index for your site to use.
You can run the task with:
bundle exec rake wax:search SEARCH_NAME
This will:
-
Look for the
searchconfiguration you set up in your_config.ymlfile. (See: Updating your configuration), and find the one withSEARCH_NAME, .e.g.main. -
For each collection you gave the
search, it will look for the markdown pages and add thefieldsand/orcontentfrom each page to the index. -
It will write the index as a JSON file to the filename you gave (
index).