···11+---
22+title: "Search Results"
33+sitemap:
44+ priority : 0.1
55+layout: "search"
66+---
77+88+99+This file exists solely to respond to /search URL with the related `search` layout template.
1010+1111+No content shown here is rendered, all content is based in the template layouts/page/search.html
1212+1313+Setting a very low sitemap priority will tell search engines this is not important content.
1414+1515+This implementation uses Fusejs, jquery and mark.js
1616+1717+1818+## Initial setup
1919+2020+Search depends on additional output content type of JSON in config.toml
2121+\```
2222+[outputs]
2323+ home = ["HTML", "JSON"]
2424+\```
2525+2626+## Searching additional fileds
2727+2828+To search additional fields defined in front matter, you must add it in 2 places.
2929+3030+### Edit layouts/_default/index.JSON
3131+This exposes the values in /index.json
3232+i.e. add `category`
3333+\```
3434+...
3535+"contents":{{ .Content | plainify | jsonify }}
3636+{{ if .Params.tags }},
3737+"tags":{{ .Params.tags | jsonify }}{{end}},
3838+"categories" : {{ .Params.categories | jsonify }},
3939+...