utilities/snippets_cli_go#4: Filtering RSS feed by search term



Issue Information

Issue Type: issue
Status: closed
Reported By: btasker
Assigned To: btasker

Milestone: v0.1
Created: 27-Sep-24 10:03



Description

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)



Toggle State Changes

Activity


assigned to @btasker

verified

mentioned in commit 3cbb9bdb75b74ed84e4967c66df9bce8ade4ab45

Commit: 3cbb9bdb75b74ed84e4967c66df9bce8ade4ab45 
Author: B Tasker                            
                            
Date: 2024-09-27T11:05:57.000+01:00 

Message

chore: move feed iteration to dedicated function ready for search implementation (utilities/snippets_cli_go#4)

+19 -10 (29 lines changed)
verified

mentioned in commit 57df12e9a9694f978a1caffdb094f13b052ea185

Commit: 57df12e9a9694f978a1caffdb094f13b052ea185 
Author: B Tasker                            
                            
Date: 2024-09-27T11:14:09.000+01:00 

Message

feat: enforce search criteria against results (utilities/snippets_cli_go#4)

+25 -2 (27 lines changed)

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