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: 1122
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 1050 times
—Crevez, chiens, si vous n'étes pas contents!

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

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 712 times
Mod Portal Recently Updated.png
Mod Portal Recently Updated.png (174.08 KiB) Viewed 712 times
Mod Portal Downloads.png
Mod Portal Downloads.png (218.19 KiB) Viewed 712 times

User avatar
vinzenz
Factorio Staff
Factorio Staff
Posts: 183
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: 181
Joined: Mon Jan 19, 2015 7:48 am
Contact:

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: 61
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: 183
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: 181
Joined: Mon Jan 19, 2015 7:48 am
Contact:

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: 16
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: 183
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 189 times
bringing the oops to devops

Xorimuth
Filter Inserter
Filter Inserter
Posts: 627
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: Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Remote Configuration | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings

User avatar
SpeckledFleebeedoo
Burner Inserter
Burner Inserter
Posts: 16
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: 3157
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: 2596
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

Post Reply

Return to “Mod portal Discussion”