backdropcms.org icon indicating copy to clipboard operation
backdropcms.org copied to clipboard

Fix Search for "On the Web" module

Open stpaultim opened this issue 7 months ago • 4 comments

Hopefully, fixing for this module will help other modules.

If I search for "On the Web" module, the "On the Web" module comes up near the bottom of the third page of results.

This just feels wrong and unhelpful.

Image

Why does this happen? Can we fix it?

stpaultim avatar Jul 31 '25 03:07 stpaultim

I think this is because the search when presented with multiple words uses an OR construct for the search, i.e. Containing any of the words. If you actually place your search inside quotes "on the web" the search will be for the phrase and it shows as the first item and there are fewer results, only 4 items.

It might be helpful to have some text on the search page explaining this.

izmeez avatar Jul 31 '25 11:07 izmeez

It took me a moment to realize you were referring to the specific page at https://backdropcms.org/modules?s=%22on+the+web%22 where it doesn't show as the first item but there are still only a few items.

The same issue is apparent with any search in Backdrop, for example with the project installer search, where I first went to checkout your question.

izmeez avatar Jul 31 '25 11:07 izmeez

Actually, in the project browser search it is not as bad, even without quotes it is the 6th item that shows up.

On backdrop.org the module search is forcing everything to lower case so I am wondering if it has been configured differently.

izmeez avatar Jul 31 '25 12:07 izmeez

I think this is related to an issue I posted on backdrop-issues (I didn't know where to post my issue): https://github.com/backdrop/backdrop-issues/issues/6988

I kind of have a possible idea to make the search more accurate, but I don't know if I'd be stepping on toes or butting in on an issue that's been settled? I'm still fairly new to Backdrop, but I used D7 for literally everything, and plan to do the same with Backdrop going forward.

swampopus avatar Oct 13 '25 15:10 swampopus