7. search
Using Relevansii in Wordpress the key features are
- weighting. you can allocate weighting by Post Type, Taxonomy etc
- Index - makes an index to speed up search
- can add some common search results to go to specific pages
- ignore small words list (and stopwords)
- specify "or" "and" etc in search terms (if 'or' can also set Synonyms)
- ajax
- logs searches
Can these be done in PW?
in pw you can specify which fields are included when searching, by default. So if we have a set weighting eg certain fields, then we can use that. We could add a 'tags' field specifically for searches? Or a 'sticky' type checkbox for priority? or both! printing search results can be sorted to show specified post types or posts first. There is a plugin for making an index, not totally sure how it works. (listed in modules below... apparently includes a template order so can use that for weighting results)
Built in
- Admin search https://processwire.com/api/ref/process-page-search/
Modules
- Search Corrections https://processwire.com/modules/search-corrections/
- SearchEngine ProcessWire module (makes index) https://processwire.com/modules/search-engine/
- ElasticSearch for PW https://processwire.com/modules/elastic-search/
- PW site Indexer https://processwire.com/modules/indexer/
- Find Merge https://processwire.com/modules/find-merge/