search: refactor parse_query and build methods.

* Eliminate the `parse_query` method.
* Move all the metatag handling logic from the `build` method
  to `metatag_matches` and helper methods.

This is to get all the main metatag handling logic in one place, inside
`metatag_matches`, so that it's easier to add new metatags and to handle
things like negated metatags more consistently.
This commit is contained in:
evazion
2020-04-24 23:32:09 -05:00
parent 627f079e3f
commit 365e3d75af
2 changed files with 277 additions and 671 deletions

File diff suppressed because it is too large Load Diff