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
search
configuration you set up in your_config.yml
file. (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 thefields
and/orcontent
from each page to the index. -
It will write the index as a JSON file to the filename you gave (
index
).