Improving the Mod Portal Search

A place to talk about the official Factorio mod portal (https://mods.factorio.com)
User avatar
NotRexButCaesar
Smart Inserter
Smart Inserter
Posts: 1132
Joined: Sun Feb 16, 2020 12:47 am
Contact:

Re: Improving the Mod Portal Search

Post by NotRexButCaesar »

The new search should replace all the other panels in my opinion: instead of having the trending &c. icons below "explore", just replace the icons above with various ways to sort your search using the current explore interface.

New Search Mockup mods.factorio.png
New Search Mockup mods.factorio.png (111.09 KiB) Viewed 2844 times
—Crevez, chiens, si vous n'étes pas contents!

Nemoricus
Fast Inserter
Fast Inserter
Posts: 202
Joined: Mon Jan 19, 2015 7:48 am

Re: Improving the Mod Portal Search

Post by Nemoricus »

Right now I'm having an issue where the sort features don't seem to work as expected. I've attached a few pictures where I've tried to sort the portal by different options and the results remain displayed in the same order. Is there a bug here?
Attachments
Mod Portal Relevance.png
Mod Portal Relevance.png (173.65 KiB) Viewed 2506 times
Mod Portal Recently Updated.png
Mod Portal Recently Updated.png (174.08 KiB) Viewed 2506 times
Mod Portal Downloads.png
Mod Portal Downloads.png (218.19 KiB) Viewed 2506 times

User avatar
vinzenz
Factorio Staff
Factorio Staff
Posts: 301
Joined: Mon Aug 02, 2021 6:45 pm
Contact:

Re: Improving the Mod Portal Search

Post by vinzenz »

Nemoricus wrote:
Thu Jan 25, 2024 11:18 pm
Right now I'm having an issue where the sort features don't seem to work as expected. I've attached a few pictures where I've tried to sort the portal by different options and the results remain displayed in the same order. Is there a bug here?
Sorry for the late response, I'm just now getting back to mod portal work.

The ranking of search results gives the highest priority to matching your query terms. As soon as you have more than one word in your query this likely outweighs the sort order for the first page of results. For Downloads, Recently updated and Trending we use the default ranking described here: https://www.meilisearch.com/docs/learn/ ... /relevancy

For Relevance we use this ranking

Code: Select all

["exactness", "words", "typo", "proximity", "attribute", "sort", "downloads_count:desc"]

How would you expect the sort order to work when using longer queries like "Resource Marker". E.g. when sorting by "Recently updated" would you prefer to have results without the word "Marker" ranked higher if they have a more recent update than results that match both words but are older? Currently sort order is more like a tie breaker between similar ranking results.
bringing the oops to devops

Nemoricus
Fast Inserter
Fast Inserter
Posts: 202
Joined: Mon Jan 19, 2015 7:48 am

Re: Improving the Mod Portal Search

Post by Nemoricus »

vinzenz wrote:
Thu Apr 04, 2024 8:19 am
How would you expect the sort order to work when using longer queries like "Resource Marker". E.g. when sorting by "Recently updated" would you prefer to have results without the word "Marker" ranked higher if they have a more recent update than results that match both words but are older? Currently sort order is more like a tie breaker between similar ranking results.
I would expect the sorting to prioritize on the option I chose. IE, if I am sorting by update date, the one with the most recent update date comes first, period. This is particularly important when I am specifically looking for recently updated mods, or if I'm looking to see which one is most popular based on download count.

Having relevance get priority over the search option I chose is confusing and gets in the way of searching based on the criteria I'm actually interested in. Especially since "Relevance" is itself a search option, and if I've chosen a different option, it's because I don't think "Relevance" is the option that best serves my needs at that time.

It'd be nice if I could prioritize those criteria individually, but as it is, there's just the set search options.

User avatar
_CodeGreen
Long Handed Inserter
Long Handed Inserter
Posts: 69
Joined: Sat Mar 05, 2022 11:30 am
Contact:

Re: Improving the Mod Portal Search

Post by _CodeGreen »

It's almost impossible to search for multiple words at once currently, for the example "Resource Marker" I would want both of those words to have the same priority in a match, so if something was most recently updated that had just the word "resource", that would show up first, and then if the second most recently updated thing had just the word "marker" I would want to see that second. We already have the relevance tab to get results that are *most* relevant to our queries, recently updated and downloads should focus more on their respective sort orders rather than result relevance. Also: As previously mentioned in this thread, I think it's time for the different tabs to be merged into one tab since the Explore tab covers all of it now (besides highlighted mods).
My Mods | If you can't make it perfect, make it adjustable

User avatar
vinzenz
Factorio Staff
Factorio Staff
Posts: 301
Joined: Mon Aug 02, 2021 6:45 pm
Contact:

Re: Improving the Mod Portal Search

Post by vinzenz »

I updated the index settings for the explore page.

- Swapped the priority between name and title matches, previously name matches had the highest priority which caused LogisticTrainNetwork to be ranked lower than e.g LtnManager when searching for LTN.

- Updated the ranking order for Downloads, Recently updated and Trending to use sort order as the highest ranking metric

Index settings for "Relevance"

Code: Select all

"searchableAttributes": ["title", "slug", "owner_username", "summary"],
"rankingRules": ["exactness", "words", "typo", "proximity", "attribute", "sort", "downloads_count:desc"],
Index settings for the other options

Code: Select all

"searchableAttributes": ["title", "slug", "owner_username", "summary"],
"rankingRules": ["sort", "words", "typo", "proximity", "attribute", "exactness"],
You can read more about ranking rules here: https://www.meilisearch.com/docs/learn/ ... /relevancy

The ranking rules are configured per index and IIRC can't be overridden per search request, so adding them to the explore page isn't feasible I'm afraid.
bringing the oops to devops

Nemoricus
Fast Inserter
Fast Inserter
Posts: 202
Joined: Mon Jan 19, 2015 7:48 am

Re: Improving the Mod Portal Search

Post by Nemoricus »

Looks like things are working much more like I expected now. Thanks!

User avatar
SpeckledFleebeedoo
Burner Inserter
Burner Inserter
Posts: 18
Joined: Thu Nov 26, 2020 3:44 pm
Contact:

Re: Improving the Mod Portal Search

Post by SpeckledFleebeedoo »

Is Recently Updated supposed to be the default sort order? I found myself having to go through multiple pages to find anything somewhat relevant to my search before I noticed it was sorting by Recently Updated.
Locomotive aficionado. Also known as Train Tech

User avatar
vinzenz
Factorio Staff
Factorio Staff
Posts: 301
Joined: Mon Aug 02, 2021 6:45 pm
Contact:

Re: Improving the Mod Portal Search

Post by vinzenz »

SpeckledFleebeedoo wrote:
Sat May 04, 2024 1:03 am
Is Recently Updated supposed to be the default sort order? I found myself having to go through multiple pages to find anything somewhat relevant to my search before I noticed it was sorting by Recently Updated.
Did you start your search on the mod portal front page? It shows recently updated mods, so searching there takes you to the explore page with "Recently Updated" sort order. I guess that it's not very intuitive and with the new ranking can be confusing. It's good point for the frontpage rework :)
Attachments
Screenshot from 2024-05-04 08-45-17.png
Screenshot from 2024-05-04 08-45-17.png (140.21 KiB) Viewed 1983 times
bringing the oops to devops

Xorimuth
Filter Inserter
Filter Inserter
Posts: 673
Joined: Sat Mar 02, 2019 9:39 pm
Contact:

Re: Improving the Mod Portal Search

Post by Xorimuth »

SpeckledFleebeedoo wrote:
Sat May 04, 2024 1:03 am
Is Recently Updated supposed to be the default sort order? I found myself having to go through multiple pages to find anything somewhat relevant to my search before I noticed it was sorting by Recently Updated.
Agreed. I like the front page default view being “Recently updated” but every single time I search then have to remember to switch to “Relevance”, which is which annoying.
My mods
Content: Lunar Landings | Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings

User avatar
SpeckledFleebeedoo
Burner Inserter
Burner Inserter
Posts: 18
Joined: Thu Nov 26, 2020 3:44 pm
Contact:

Re: Improving the Mod Portal Search

Post by SpeckledFleebeedoo »

I did indeed start on the front page. Having the results after a search be sorted by recently updated is extremely unintuitive. Seeing recently updated mods is not what I use the search bar for.
Locomotive aficionado. Also known as Train Tech

Bilka
Factorio Staff
Factorio Staff
Posts: 3299
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Improving the Mod Portal Search

Post by Bilka »

I like that the search bar on the recently updated page now finally sorts by recently updated. One of my use cases is to see mods that modify a specific mod and if they recently updated. Now I can just search for the mod name and find that.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

FuryoftheStars
Smart Inserter
Smart Inserter
Posts: 2768
Joined: Tue Apr 25, 2017 2:01 pm
Contact:

Re: Improving the Mod Portal Search

Post by FuryoftheStars »

It is good that you can sort searches by recently updated. I just question the merits behind making it the default. I don't think a lot of people are going to realize this and it could burry the results they're looking for. Both methods I think have their pluses and minuses, but I think I do lean a bit more toward the expected relevant sorting as the default. :?
My Mods: Classic Factorio Basic Oil Processing | Sulfur Production from Oils | Wood to Oil Processing | Infinite Resources - Normal Yield | Tree Saplings (Redux) | Alien Biomes Tweaked | Restrictions on Artificial Tiles | New Gear Girl & HR Graphics

-DeadlyKitten
Inserter
Inserter
Posts: 42
Joined: Sat Dec 14, 2019 3:26 am
Contact:

Re: Improving the Mod Portal Search

Post by -DeadlyKitten »

I previously posted a bug report on the mod search portal and was directed to repost it here

Bug report:
the search bar on https://mods.factorio.com/ does not always pull up the right mod at the top.

examples:
search "Milestones" and the top result is chinese (the mod "Milestones" is in slot 3)
search "Spidertron Enhancements" and the mod "Spidertron Enhancements" is not even on screen

fix?
the search should probably put more weigh on results with distinct words instead of more instances of the same word, it should also probably put more weight behind matches in the title and in the proportion of the document spent on the searched word
Full discussion: viewtopic.php?f=189&t=113485

Edit: after skimming this discussion and reading the other discussion, I think this may be an issue with the fact the the default sort order is "recently updated" instead of having a default of "Relevence" which would be the expected sort order if the user has not manually changed it

Xorimuth
Filter Inserter
Filter Inserter
Posts: 673
Joined: Sat Mar 02, 2019 9:39 pm
Contact:

Re: Improving the Mod Portal Search

Post by Xorimuth »

Bilka wrote:
Sat May 04, 2024 7:20 pm
I like that the search bar on the recently updated page now finally sorts by recently updated. One of my use cases is to see mods that modify a specific mod and if they recently updated. Now I can just search for the mod name and find that.
Interesting. Whilst I like that the home page is "Recently updated", I have never once wanted my search to be sorted by "Recently updated", and it annoys me every time I search, wonder why I'm not getting what I searched for, then click on "Relevance".
My mods
Content: Lunar Landings | Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings

User avatar
Hares
Fast Inserter
Fast Inserter
Posts: 244
Joined: Sat Oct 22, 2022 8:05 pm
Contact:

Re: Improving the Mod Portal Search

Post by Hares »

First of all, sort by relevance first by default (not by updated date).
Secondly, prioritize fields to search in the following order: title -> tags -> short description -> long description

curiosity
Filter Inserter
Filter Inserter
Posts: 433
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Improving the Mod Portal Search

Post by curiosity »

Hares wrote:
Thu Jul 18, 2024 10:10 am
Secondly, prioritize fields to search in the following order: title -> tags -> short description -> long description
And mod name above them all.

User avatar
Hares
Fast Inserter
Fast Inserter
Posts: 244
Joined: Sat Oct 22, 2022 8:05 pm
Contact:

Re: Improving the Mod Portal Search

Post by Hares »

curiosity wrote:
Thu Jul 18, 2024 2:49 pm
Hares wrote:
Thu Jul 18, 2024 10:10 am
Secondly, prioritize fields to search in the following order: title -> tags -> short description -> long description
And mod name above them all.
That's what I called title. :D

curiosity
Filter Inserter
Filter Inserter
Posts: 433
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Improving the Mod Portal Search

Post by curiosity »

Hares wrote:
Thu Jul 18, 2024 3:49 pm
That's what I called title. :D
So you don't want the actual title searched, or what?

User avatar
Stringweasel
Filter Inserter
Filter Inserter
Posts: 391
Joined: Thu Apr 27, 2017 8:22 pm
Contact:

Re: Improving the Mod Portal Search

Post by Stringweasel »

SpeckledFleebeedoo wrote:
Sat May 04, 2024 1:03 am
Is Recently Updated supposed to be the default sort order? I found myself having to go through multiple pages to find anything somewhat relevant to my search before I noticed it was sorting by Recently Updated.
I also get frustrated with the search sort order to be Recently Updated almost every time I use search. I search for something then I care about relevancy, and almost never the last updated date. Not some "redux forked continued fixed improved" mod, which is usually at the top.

I do like that it shows Recently Updated as the home page though.
Alt-F4 Author | Factorio Modder
My Mods: Hall of Fame | Better Victory Screen | Fluidic Power | Biter Power | Space Spidertron | Spidertron Dock | Weasel's Demolition Derby
Official Contributor to Space Exploration

Post Reply

Return to “Mod portal Discussion”