JankariTech / blog

Blogposts from JankariTech
https://blog.jankaritech.com
GNU General Public License v3.0
10 stars 3 forks source link

Search results can be empty even with valid search keywords #124

Closed nabim777 closed 4 months ago

nabim777 commented 5 months ago

Description

Valid search keywords are unable to give any search results in some cases, providing users with an empty result. This might be problem for the user, especially if they encounter difficulty in using the search features effectively

Steps to reproduce

Step-1: Go to the search bar

Step-2: Search by author, assuming artur. It will work properly and show the results. image

Step-3: Search again with the word arturs, the search result will be empty, showing the message Sorry, no results found for "arturs" as shown in the image. image

Step-4: But when we remove the s from the word arturs using key backspace and become artur in the search results, then the search result will be empty, showing the message Sorry, no results found for "artur" as shown in the image. image

Screen record

Screencast from 04-25-2024 12:34:00 PM.webm

Expected

image

Actual

image

koebel commented 5 months ago

it seems like this only applies to https://blog.jankaritech.com, on https://dev.to/jankaritech the search seems to work properly

When trying to reproduce this error in Chrome on Mac I also noticed that in our blog search only works for titles, it doesn't even take authors or tags into account...

SagarGi commented 4 months ago

it seems like this only applies to https://blog.jankaritech.com, on https://dev.to/jankaritech the search seems to work properly

When trying to reproduce this error in Chrome on Mac I also noticed that in our blog search only works for titles, it doesn't even take authors or tags into account...

@koebel It does filter according to tags and author. And on default the search is by title. But for better user experience lets add filter by title as default filter in search? I will make an issue for that.

SagarGi commented 4 months ago

Hi @koebel I have created an issue here https://github.com/JankariTech/blog/issues/127. Please check if its feasible to you!