Improving the Mod Portal Search
- NotRexButCaesar
- Smart Inserter
- Posts: 1132
- Joined: Sun Feb 16, 2020 12:47 am
- Contact:
Re: Improving the Mod Portal Search
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.
Ⅲ—Crevez, chiens, si vous n'étes pas contents!
Re: Improving the Mod Portal Search
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 (173.65 KiB) Viewed 2506 times
-
- Mod Portal Recently Updated.png (174.08 KiB) Viewed 2506 times
-
- Mod Portal Downloads.png (218.19 KiB) Viewed 2506 times
Re: Improving the Mod Portal Search
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
Re: Improving the Mod Portal Search
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.vinzenz wrote: ↑Thu Apr 04, 2024 8:19 amHow 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.
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.
- _CodeGreen
- Long Handed Inserter
- Posts: 69
- Joined: Sat Mar 05, 2022 11:30 am
- Contact:
Re: Improving the Mod Portal Search
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
Re: Improving the Mod Portal Search
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"
Index settings for the other options
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.
- 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"],
Code: Select all
"searchableAttributes": ["title", "slug", "owner_username", "summary"],
"rankingRules": ["sort", "words", "typo", "proximity", "attribute", "exactness"],
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
Re: Improving the Mod Portal Search
Looks like things are working much more like I expected now. Thanks!
- SpeckledFleebeedoo
- Burner Inserter
- Posts: 18
- Joined: Thu Nov 26, 2020 3:44 pm
- Contact:
Re: Improving the Mod Portal Search
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
Re: Improving the Mod Portal Search
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 reworkSpeckledFleebeedoo wrote: ↑Sat May 04, 2024 1:03 amIs 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.
- Attachments
-
- Screenshot from 2024-05-04 08-45-17.png (140.21 KiB) Viewed 1983 times
bringing the oops to devops
Re: Improving the Mod Portal Search
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.SpeckledFleebeedoo wrote: ↑Sat May 04, 2024 1:03 amIs 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.
My mods
Content: Lunar Landings | Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings
Content: Lunar Landings | Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings
- SpeckledFleebeedoo
- Burner Inserter
- Posts: 18
- Joined: Thu Nov 26, 2020 3:44 pm
- Contact:
Re: Improving the Mod Portal Search
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
Re: Improving the Mod Portal Search
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.
-
- Smart Inserter
- Posts: 2768
- Joined: Tue Apr 25, 2017 2:01 pm
- Contact:
Re: Improving the Mod Portal Search
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
-
- Inserter
- Posts: 42
- Joined: Sat Dec 14, 2019 3:26 am
- Contact:
Re: Improving the Mod Portal Search
I previously posted a bug report on the mod search portal and was directed to repost it here
Bug report:
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
Bug report:
Full discussion: viewtopic.php?f=189&t=113485the 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
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
Re: Improving the Mod Portal Search
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
Content: Lunar Landings | Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings
Re: Improving the Mod Portal Search
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
Secondly, prioritize fields to search in the following order: title -> tags -> short description -> long description
- Stringweasel
- Filter Inserter
- Posts: 391
- Joined: Thu Apr 27, 2017 8:22 pm
- Contact:
Re: Improving the Mod Portal Search
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.SpeckledFleebeedoo wrote: ↑Sat May 04, 2024 1:03 amIs 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 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
My Mods: Hall of Fame | Better Victory Screen | Fluidic Power | Biter Power | Space Spidertron | Spidertron Dock |
Official Contributor to Space Exploration