Now that we've got RSS feed fetching (#2) and are able to print "results", it's time to look at implementing the logic used to search within a feed.
The original script iterates through entries checking
- Whether the search term exists in the page title
- Whether the term exists in the "similar" section (we won't be able to do that, at least for now)
- Whether the term exists in keywords
- Whether the term exists in the primary language (again, can't do that for now)
It also supports applying some filters:
- Has the title only flag been passed?
- Is there a specific language match required?
Those are both out of scope for this issue (and probably v0.1)
Activity
27-Sep-24 10:03
assigned to @btasker
27-Sep-24 10:06
mentioned in commit 3cbb9bdb75b74ed84e4967c66df9bce8ade4ab45
Message
chore: move feed iteration to dedicated function ready for search implementation (utilities/snippets_cli_go#4)
27-Sep-24 10:14
mentioned in commit 57df12e9a9694f978a1caffdb094f13b052ea185
Message
feat: enforce search criteria against results (utilities/snippets_cli_go#4)
27-Sep-24 10:14
The commit above implements support for matching against title and keywords/tags.
There isn't currently an ID for it to pass through, so we continue to set it to 1. I think we probably need to look at that next