The Wax search gallery expects faceted fields have their values separated by a vertical bar | but if we were to run the search task to regenerate the search index, they would be separated either by commas or semicolons. I believe this ultimately comes from the keywords.csv data. For example:
pid: d0005
label: Pedro, Maria, and Bautista Sue for Freedom
keywords: freedom suit,manumission,Indian slavery,resistance,mixed-race,kinship,race
This will produce the page _keywords/d0005.md with data snippet:
Updating the original keywords.csv to change the commas in this field to |, then rerunning each of the tasks should produce "correct" data in all of the derivatives.
Recommended updates
Update CSV data to use vertical bar (|) delimiter for multivalue columns instead of , or ;
Remove everything in the _keywords/ folder
Run bundle exec rake wax:pages keywords to generate the _keywords/ pages again
Run bundle exec rake wax:search main to update the search index
The Wax search gallery expects faceted fields have their values separated by a vertical bar
|
but if we were to run the search task to regenerate the search index, they would be separated either by commas or semicolons. I believe this ultimately comes from thekeywords.csv
data. For example:This will produce the page
_keywords/d0005.md
with data snippet:Which then will produce this search index snippet:
Updating the original
keywords.csv
to change the commas in this field to|
, then rerunning each of the tasks should produce "correct" data in all of the derivatives.Recommended updates
|
) delimiter for multivalue columns instead of,
or;
_keywords/
folderbundle exec rake wax:pages keywords
to generate the_keywords/
pages againbundle exec rake wax:search main
to update the search index