DEV Community

DEV.to internal search is... bad?

I remember the dev.to search being super useful, but it ain't so anymore

Compare a search for Sprint interview questions
https://dev.to/search?q=spring%20interview%20questions

Alt Text

Versus Google

Alt Text

Top comments (6)

Collapse
 
moopet profile image
Ben Sinclair

I've put in a bug report for this already here:
forem/issues/13746

I think it's doing a full text search of the post content but not the title.

Collapse
 
grahamthedev profile image
GrahamTheDev • Edited

That seems like a fair assessment, I might have a gander at the query and see if I can offer any suggestions.

Normally I would do a weighted search based on exact match, all words, some words and one word and then a further weighting on whether it is in the title (higher weight) or number of occurrences in the body.

But given the size of dev.to database that would be a really slow query!

Collapse
 
abhinav1217 profile image
Abhinav Kulshreshtha

I believe there should be option for advance search included. Personally, There are times where I remember parts of title of a post I read in past, and now when I need another look for that, I can't search for it. An advance search where I can just choose to run full-text-search on titles only, will make my life easier.

Collapse
 
adam_cyclones profile image
Adam Crockett πŸŒ€

I think comparing Google search to Dev.to search is like comparing the international space station to a potato πŸ₯”

Collapse
 
shaijut profile image
Shaiju T

Yes the search is not working properly. Search is very important feature. Sometime i want search my own comments and its not possible.

@ben

Collapse
 
mikehtmlallthethings profile image
Mikhail Karan

Yah, essentially useless :(