Scroll to top

06/11/2021


2021/11/06#p1

0 comments: click to leave a comment

I've been trying to rework the regex patterns for search to be more accurate, provide for more edge cases and exclude instances where the search term is just in link and not the actual post text but it's tricky. Consequently, I've (temporarily) broken hashtag searches – I only noticed that last night after posting a new #acid track.

Rather than a straight search on the text in the database I was trying to process the markdown and then strip out HTML tags but something has gone wrong somewhere. It's complicated by the way I run two queries - one to identify the number of items found to set up the results paging and then one to actually return the results.

I'm going to revert back to the original queries and rethink how I'm doing it. I may just have to settle for a non-perfect solution that catches most items.

No comments yet
Leave a reply



You can also:

Click here to reply using email Reply by email Send a webmention Send a Webmention



2021/11/06#p2

0 comments: click to leave a comment

Hashtag search is now working again. I also found some other issues with not urlencoding the query so fixed them as well.

Overall search has been reverted to the original code so may miss certain items. I'll need to have another look at it when I have more time.

No comments yet
Leave a reply



You can also:

Click here to reply using email Reply by email Send a webmention Send a Webmention



Close