wincent / masochist

⛓ Website infrastructure for over-engineers
MIT License
78 stars 26 forks source link

Add ability to scope full-text search to a specific content type(s) #55

Closed wincent closed 7 years ago

wincent commented 8 years ago

Given that we don't have any ranking, we need to provide other tools for reducing the scope of the search results. So, checkboxes or similar to scope to wiki, blog etc.

wincent commented 7 years ago

Or instead of checkboxes: add support by preprocessing the search string. If have "type:blog" in the string, use -- content/blog pathspec on git-grep call. I think these can be additive (OR-style) searches, so "type:blog type:wiki" would look in both "content/blog" and "content/wiki".