Playnite Forums
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)

Pages: 1 2 3 4


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
This should log how long it takes to create the index. Maybe its an performance issue, 57.000 items are a lot.
09-05 16:49:46.850|INFO |QuickSearch#SearchPlugin:Updated index with 57431 items from 7 sources.
09-05 16:49:46.868|INFO |QuickSearch#SearchPlugin:Updated Index in 153.978 seconds.
Note that this version causes Playnite to lock up when I try to start a search with CTRL+F or CTRL+ALT+F.


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
This should log how long it takes to create the index. Maybe its an performance issue, 57.000 items are a lot.
09-05 16:49:46.850|INFO |QuickSearch#SearchPlugin:Updated index with 57431 items from 7 sources.
09-05 16:49:46.868|INFO |QuickSearch#SearchPlugin:Updated Index in 153.978 seconds.
Note that this version causes Playnite to lock up when I try to start a search with CTRL+F or CTRL+ALT+F.

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?
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?
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?
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?
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.

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 index
https://www.dropbox.com/s/744dw01repf0hlq/felixkmh_QuickSearch_Plugin_2_19_0_DEBUG.pext?dl=0
Sorry, 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.
13-05 08:59:38.321|INFO |QuickSearch#SearchPlugin:Updated index with 24746 items from 7 sources.
13-05 08:59:38.733|INFO |QuickSearch#SearchPlugin:Starting search with 0 candidates.
13-05 08:59:38.733|INFO |QuickSearch#SearchPlugin:Search results:

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 index
https://www.dropbox.com/s/744dw01repf0hlq/felixkmh_QuickSearch_Plugin_2_19_0_DEBUG.pext?dl=0
Sorry, 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.
13-05 08:59:38.321|INFO |QuickSearch#SearchPlugin:Updated index with 24746 items from 7 sources.
13-05 08:59:38.733|INFO |QuickSearch#SearchPlugin:Starting search with 0 candidates.
13-05 08:59:38.733|INFO |QuickSearch#SearchPlugin:Search results:

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.

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().
18-05 12:33:06.683|INFO |QuickSearch#SearchPlugin:Retrieved game actions in 0ms.
18-05 12:33:06.727|INFO |QuickSearch#SearchPlugin:Build game index in 42ms.
18-05 12:33:27.057|INFO |QuickSearch#SearchPlugin:Created Game filters in 20330ms.
18-05 12:33:27.057|INFO |QuickSearch#SearchPlugin:End of GameSearchSource.GetItems() reached after 20374ms.
18-05 12:33:27.845|INFO |QuickSearch#SearchPlugin:Updated Index in 21.17 seconds.
18-05 12:33:31.162|INFO |QuickSearch#SearchPlugin:Start of GameSearchSource.GetItems().
18-05 12:33:31.162|INFO |QuickSearch#SearchPlugin:Retrieved game actions in 0ms.
18-05 12:33:45.039|INFO |QuickSearch#SearchPlugin:Created Game filters in 13875ms.
18-05 12:33:45.039|INFO |QuickSearch#SearchPlugin:End of GameSearchSource.GetItems() reached after 13875ms.
18-05 12:33:45.705|INFO |QuickSearch#SearchPlugin:Updated Index in 14.556 seconds.
18-05 12:34:04.468|INFO |QuickSearch#SearchPlugin:Start of GameSearchSource.GetItems().
18-05 12:34:04.842|INFO |QuickSearch#SearchPlugin:Retrieved game actions in 0ms.
18-05 12:34:14.370|INFO |QuickSearch#SearchPlugin:Updated Index in 0.028 seconds.
18-05 12:34:16.567|INFO |QuickSearch#SearchPlugin:Created Game filters in 11724ms.
18-05 12:34:16.567|INFO |QuickSearch#SearchPlugin:End of GameSearchSource.GetItems() reached after 11725ms.
18-05 12:34:16.567|INFO |QuickSearch#SearchPlugin:Start of GameSearchSource.GetItems().
18-05 12:34:16.567|INFO |QuickSearch#SearchPlugin:Retrieved game actions in 0ms.
18-05 12:34:16.567|INFO |QuickSearch#SearchPlugin:Updated Index in 12.198 seconds.
18-05 12:34:28.495|INFO |QuickSearch#SearchPlugin:Created Game filters in 11927ms.
18-05 12:34:28.495|INFO |QuickSearch#SearchPlugin:End of GameSearchSource.GetItems() reached after 11927ms.
18-05 12:34:28.495|INFO |QuickSearch#SearchPlugin:Start of GameSearchSource.GetItems().
18-05 12:34:28.495|INFO |QuickSearch#SearchPlugin:Retrieved game actions in 0ms.
18-05 12:34:28.495|INFO |QuickSearch#SearchPlugin:Updated Index in 20.426 seconds.
18-05 12:34:41.348|INFO |QuickSearch#SearchPlugin:Created Game filters in 12851ms.
18-05 12:34:41.348|INFO |QuickSearch#SearchPlugin:End of GameSearchSource.GetItems() reached after 12851ms.
18-05 12:34:41.348|INFO |QuickSearch#SearchPlugin:Start of GameSearchSource.GetItems().
18-05 12:34:41.348|INFO |QuickSearch#SearchPlugin:Retrieved game actions in 0ms.
18-05 12:34:41.348|INFO |QuickSearch#SearchPlugin:Updated Index in 26.952 seconds.
18-05 12:34:56.003|INFO |QuickSearch#SearchPlugin:Created Game filters in 14653ms.
18-05 12:34:56.003|INFO |QuickSearch#SearchPlugin:End of GameSearchSource.GetItems() reached after 14653ms.
18-05 12:34:56.003|INFO |QuickSearch#SearchPlugin:Start of GameSearchSource.GetItems().
18-05 12:34:56.003|INFO |QuickSearch#SearchPlugin:Retrieved game actions in 0ms.
18-05 12:34:56.003|INFO |QuickSearch#SearchPlugin:Updated Index in 37.269 seconds.
18-05 12:35:07.882|INFO |QuickSearch#SearchPlugin:Created Game filters in 11877ms.
18-05 12:35:07.882|INFO |QuickSearch#SearchPlugin:End of GameSearchSource.GetItems() reached after 11878ms.
18-05 12:35:07.882|INFO |QuickSearch#SearchPlugin:Start of GameSearchSource.GetItems().
18-05 12:35:07.882|INFO |QuickSearch#SearchPlugin:Retrieved game actions in 0ms.
18-05 12:35:07.882|INFO |QuickSearch#SearchPlugin:Updated Index in 37.466 seconds.
18-05 12:35:18.651|INFO |QuickSearch#SearchPlugin:Created Game filters in 10768ms.
18-05 12:35:18.651|INFO |QuickSearch#SearchPlugin:End of GameSearchSource.GetItems() reached after 10769ms.
18-05 12:35:18.651|INFO |QuickSearch#SearchPlugin:Start of GameSearchSource.GetItems().
18-05 12:35:18.651|INFO |QuickSearch#SearchPlugin:Retrieved game actions in 0ms.
18-05 12:35:18.651|INFO |QuickSearch#SearchPlugin:Updated Index in 44.949 seconds.
18-05 12:35:28.827|INFO |QuickSearch#SearchPlugin:Created Game filters in 10174ms.
18-05 12:35:28.827|INFO |QuickSearch#SearchPlugin:End of GameSearchSource.GetItems() reached after 10174ms.
18-05 12:35:28.827|INFO |QuickSearch#SearchPlugin:Start of GameSearchSource.GetItems().
18-05 12:35:28.827|INFO |QuickSearch#SearchPlugin:Retrieved game actions in 0ms.
18-05 12:35:28.829|INFO |QuickSearch#SearchPlugin:Updated Index in 46.538 seconds.
18-05 12:35:39.721|INFO |QuickSearch#SearchPlugin:Created Game filters in 10892ms.
18-05 12:35:39.721|INFO |QuickSearch#SearchPlugin:End of GameSearchSource.GetItems() reached after 10893ms.
18-05 12:35:39.721|INFO |QuickSearch#SearchPlugin:Start of GameSearchSource.GetItems().
18-05 12:35:39.721|INFO |QuickSearch#SearchPlugin:Retrieved game actions in 0ms.
18-05 12:35:39.721|INFO |QuickSearch#SearchPlugin:Updated Index in 55.057 seconds.
18-05 12:35:50.560|INFO |QuickSearch#SearchPlugin:Created Game filters in 10837ms.
18-05 12:35:50.560|INFO |QuickSearch#SearchPlugin:End of GameSearchSource.GetItems() reached after 10838ms.
18-05 12:35:50.560|INFO |QuickSearch#SearchPlugin:Start of GameSearchSource.GetItems().
18-05 12:35:50.560|INFO |QuickSearch#SearchPlugin:Retrieved game actions in 0ms.
18-05 12:35:50.560|INFO |QuickSearch#SearchPlugin:Updated Index in 62.118 seconds.
18-05 12:36:01.111|INFO |QuickSearch#SearchPlugin:Created Game filters in 10548ms.
18-05 12:36:01.111|INFO |QuickSearch#SearchPlugin:End of GameSearchSource.GetItems() reached after 10549ms.
18-05 12:36:01.793|INFO |QuickSearch#SearchPlugin:Updated Index in 70.128 seconds.