Open Bug 1940356 Opened 1 month ago Updated 11 days ago

Results ranking should take both word boundaries into account when a word is followed by a space

Categories

(Firefox :: Address Bar, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: billdillensrevenge, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Attached image redditURLfirefox.png

Example: open a new tab and type "red" into the URL bar. In my case, all the results are reddit, which is correct and makes sense, but then I hit spacebar after "red", that means reddit results should no longer come up or at least be prioritized below things that say "red" (you can see in the screenshot that Firefox is still bolding the "red" in "Reddit" even though I hit the spacebar). When I hit the spacebar, I believe URL's such as https://www.red.com/v-raptor-x-black?quantity=1&vxpackage=3 should have shown up (I had this URL bookmarked).

Noticing the same problem when search "red " in the Library window (bookmarks manager and history manager). Not sure if this should be file as a separate bug or not.

Sorry for another follow up comment but I did a bit of a clumsy job of explaining: of course in the type of result I'm saying should come up is https://www.red.com/v-raptor-x-black?quantity=1&vxpackage=3 , there is no space after the "red", it's "red.com". I'm not suggesting it literally exactly match spaces, what I'm saying is that spacebar acts as a separator of sorts. If it exactly matched spaces, https://www.red.com/v-raptor-x-black?quantity=1&vxpackage=3 would not come up in the results, which would be bad.

If you just visit https://www.red.com/ the tab's title is "RED Digital Cinema | Professional Cameras", which includes "red " - with a space. It did not show up in my test ahead of reddit matches, as you expect it in this ticket.

Currently results are just matched and then sorted based on how commonly the user uses that web site. Historically the system moved towards fuzzier searches.
I think your expectations are not wrong anyway, but there's risk of pushing up something that is not particularly relevant to the user.
We could run a first search on boundaries... though that's exactly what we do, but red is on the start boundary of reddit. So we'd need a previous search for an exact word in this case, and a relevancy threshold.

Severity: -- → N/A
Priority: -- → P3
Summary: Results should take spacebar into account → Results ranking should take both word boundaries into account when a word is followed by a space
Attached image whole words.png

When I hit the spacebar after "red", that should have made "reddit" matches/results get prioritized below pure "red" matches/results like https://www.red.com/v-raptor-x-black?quantity=1&vxpackage=3 . Basically, hitting the spacebar should almost be the equivalent of checking the "Whole Words" option in the Find in page bar.

Btw, the search within the Library window (when searching in History or Bookmarks) has the same problem. Would that be a separate bug or would that be considered the same as this bug?

it's ok to file a separate bug and add a See Also to this one. Under the hood they are using the same matching anyway.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: