QuickSearch - Launch Games and Run Commands by Search - Printable Version +- Playnite Forums (https://playnite.link/forum) +-- Forum: Extension Database (https://playnite.link/forum/forum-3.html) +--- Forum: Generic Extensions (https://playnite.link/forum/forum-6.html) +--- Thread: QuickSearch - Launch Games and Run Commands by Search (/thread-677.html) |
RE: QuickSearch - Launch Games and Run Commands by Search - felixkmh - 05-09-2022 Try this version https://www.dropbox.com/s/vvwrh3qi8lsrhm7/felixkmh_QuickSearch_Plugin_2_19_0_DEBUG.pext?dl=0 This should log how long it takes to create the index. Maybe its an performance issue, 57.000 items are a lot. RE: QuickSearch - Launch Games and Run Commands by Search - Mellified - 05-09-2022 (05-09-2022, 09:44 PM)felixkmh Wrote: Try this version https://www.dropbox.com/s/vvwrh3qi8lsrhm7/felixkmh_QuickSearch_Plugin_2_19_0_DEBUG.pext?dl=0 09-05 16:49:46.850|INFO |QuickSearch#SearchPlugin:Updated index with 57431 items from 7 sources. RE: QuickSearch - Launch Games and Run Commands by Search - felixkmh - 05-09-2022 (05-09-2022, 09:55 PM)Mellified Wrote:(05-09-2022, 09:44 PM)felixkmh Wrote: Try this version https://www.dropbox.com/s/vvwrh3qi8lsrhm7/felixkmh_QuickSearch_Plugin_2_19_0_DEBUG.pext?dl=0 I know, that was on purpose. This way the search window only opens when the index is ready. So after that, I guess searching should work, but probably also takes a long time. And you say with the previous version search worked just fine? Can you try again? https://github.com/felixkmh/QuickSearch-for-Playnite/releases/download/v2.18.0/felixkmh_QuickSearch_Plugin_2_18_0.pext Also, do you really have over 57,000 games in your library? RE: QuickSearch - Launch Games and Run Commands by Search - Mellified - 05-09-2022 (05-09-2022, 10:07 PM)felixkmh Wrote: I know, that was on purpose. This way the search window only opens when the index is ready. So after that, I guess searching should work, but probably also takes a long time. And you say with the previous version search worked just fine? Can you try again?I went back version by version to 2.15.0 - none of them worked. So best guess is my library grew and went over some limit. I do have 57,000+ games in my library. Lots of emulation. [attachment=2250] RE: QuickSearch - Launch Games and Run Commands by Search - felixkmh - 05-09-2022 (05-09-2022, 10:23 PM)Mellified Wrote:(05-09-2022, 10:07 PM)felixkmh Wrote: I know, that was on purpose. This way the search window only opens when the index is ready. So after that, I guess searching should work, but probably also takes a long time. And you say with the previous version search worked just fine? Can you try again?I went back version by version to 2.15.0 - none of them worked. So best guess is my library grew and went over some limit. I guess my current approach does not really work with that many items, depending on the system. I tried some optimizations, like caching the search items. This way only the first time should take that long: https://www.dropbox.com/s/wf9v2r6claszue0/felixkmh_QuickSearch_Plugin_2_19_0.pext?dl=1 (try waiting a few seconds before typing when opening the search window for the first time) Also setting the threshold to a higher value, disabling filters, lowering the maximum number of results (> 0), setting the min acronym length to 0, and ignoring hidden games might make it usable. RE: QuickSearch - Launch Games and Run Commands by Search - Mellified - 05-10-2022 I decided to delete most of my emulation games out of Playnite. I have them all in another launcher with full media. I was never entirely happy having them in Playnite anyway. So my library is down to ~20,000 items. Unfortunately QuickSearch is still not returning any results. I tried restarting Playnite, adjusting the settings to return more results but... nothing. I notice you pulled down the debug versions. Might be worth trying one again? RE: QuickSearch - Launch Games and Run Commands by Search - felixkmh - 05-11-2022 I made a version that uses a proper search engine: https://www.dropbox.com/s/omg8gcohbh3jme0/felixkmh_QuickSearch_Plugin_2_19_0_DEBUG.pext?dl=0 Maybe that works. Right now only the search bar inside StartPage uses the new engine, so try if this gives you any results. RE: QuickSearch - Launch Games and Run Commands by Search - felixkmh - 05-11-2022 Forgot to deactivate the old index https://www.dropbox.com/s/744dw01repf0hlq/felixkmh_QuickSearch_Plugin_2_19_0_DEBUG.pext?dl=0 RE: QuickSearch - Launch Games and Run Commands by Search - Mellified - 05-13-2022 (05-11-2022, 09:44 AM)felixkmh Wrote: Forgot to deactivate the old indexSorry, for some reason the forum didn't notify me of your replies! This is what I'm seeing with the latest debug version: 13-05 08:59:11.638|INFO |QuickSearch#SearchPlugin:Updated Index in 0.003 seconds. So if I'm reading this right, the index is updating much faster. My database is about half the size. But for some reason it's coming up with 0 results? I'm testing with terms like "halo" and "forza" - which I know are in my games list. RE: QuickSearch - Launch Games and Run Commands by Search - felixkmh - 05-13-2022 (05-13-2022, 02:06 PM)Mellified Wrote:(05-11-2022, 09:44 AM)felixkmh Wrote: Forgot to deactivate the old indexSorry, for some reason the forum didn't notify me of your replies! The new approach is currently only used when using the StartPage search bar, did you also try that? Also, I played around with it some more: https://www.dropbox.com/s/g3oru2pbdhgy9zp/felixkmh_QuickSearch_Plugin_2_19_0_DEBUG.pext?dl=0 Just keep in mind that creating the index might still take up to a few seconds (starts when focusing the search bar). But searching should be much faster. RE: QuickSearch - Launch Games and Run Commands by Search - Mellified - 05-14-2022 OK, this latest version works on the StartPage search - only. [attachment=2252] RE: QuickSearch - Launch Games and Run Commands by Search - felixkmh - 05-14-2022 (05-14-2022, 12:29 AM)Mellified Wrote: OK, this latest version works on the StartPage search - only. Great, I only applied the changes to that search bar, not the regular one opened via the shortcut, so that why this still behaves like before. This version uses the same apporach for both search bars. Also, the search bar opened via the shortcut will indicate whether its done indexing with the loading icon when its opened. https://www.dropbox.com/s/uxeo6znlpk29nsi/felixkmh_QuickSearch_Plugin_2_19_0.pext?dl=0 RE: QuickSearch - Launch Games and Run Commands by Search - Mellified - 05-15-2022 So after several seconds I start getting results using the search dialog and StartPage. However, sometimes the results don't update until I escape out of the search dialog - or click out of the search in StartPage. The results update as expected when I go back into the search though. RE: QuickSearch - Launch Games and Run Commands by Search - felixkmh - 05-15-2022 This version caches the game index the first time a search window is used/opened. So after that, search should be quicker whenever its opened again. https://www.dropbox.com/s/odhqz9b9e9n2gln/felixkmh_QuickSearch_Plugin_2_20_0.pext?dl=1 RE: QuickSearch - Launch Games and Run Commands by Search - felixkmh - 05-16-2022 I released a new version with the new approach, but it has the same version number as the last version I posted. So you should update manually by re-installing it using the QuickSearch Add-On Browser or via this link https://playnite.link/addons.html#felixkmh_QuickSearch_Plugin. RE: QuickSearch - Launch Games and Run Commands by Search - Mellified - 05-17-2022 It works once the index is created and loaded, but that definitely takes a handful of minutes. RE: QuickSearch - Launch Games and Run Commands by Search - felixkmh - 05-17-2022 (05-17-2022, 03:21 PM)Mellified Wrote: It works once the index is created and loaded, but that definitely takes a handful of minutes. May I ask what CPU you are running? I only have around 3600 games, which takes less than a second to index. Even with your previous 58000 games, in theory, this wouldn't take longer than 16 seconds. One last thing I can do is to make the game index persist through restarts. This way, it should be ready almost immediately. RE: QuickSearch - Launch Games and Run Commands by Search - Mellified - 05-17-2022 I have an AMD 5950X - I don't think it's the CPU. Plenty of RAM too. RE: QuickSearch - Launch Games and Run Commands by Search - felixkmh - 05-17-2022 (05-17-2022, 07:07 PM)Mellified Wrote: I have an AMD 5950X - I don't think it's the CPU. Plenty of RAM too. This does not seem to be the bottleneck here. Try this one: https://www.dropbox.com/s/b5tibup1r7n59pp/felixkmh_QuickSearch_Plugin_2_20_1_DEBUG.pext?dl=1 The index is reused after each restart of Playnite (only if the option for keeping the game index in memory is disabled). Also, the extensions.log should give some insights into which step takes what time. RE: QuickSearch - Launch Games and Run Commands by Search - Mellified - 05-18-2022 Here's the output in the logs from the latest version... 18-05 12:33:06.683|INFO |QuickSearch#SearchPlugin:Start of GameSearchSource.GetItems(). |