alfred-craftdocs-searchindex icon indicating copy to clipboard operation
alfred-craftdocs-searchindex copied to clipboard

Feature request: Multiple spaces

Open herrsilen opened this issue 3 years ago • 4 comments

It would be great to be able to search multiple spaces, perhaps also adding the option to search different spaces with different keywords.

herrsilen avatar Jan 30 '22 19:01 herrsilen

Support for multiple spaces was added in https://github.com/kudrykv/alfred-craftdocs-searchindex/releases/tag/v0.2.0. Granted, it always searches all spaces, so no way to limit it to individual spaces.

One problem with selecting space is that we don't have access to actual space names using the Craft SearchIndex databases. You'd have to pick if you want to search from space FE2E6786-54DA-45C2-B579-4166E93FF08C, 1C0067BF-7AA6-4105-990A-4C0721CE99D8 or E0D9C016-651D-4D3A-8F69-5F6C4D76A17A (etc, not very user friendly).

To get actual space names we'd have to access the Realm databases located in ~/Library/Containers/com.lukilabs.lukiapp/Data/Library/Application\ Support/com.lukilabs.lukiapp/*.realm. But not sure how feasible this would be. I did find one Go library that deals with Realm, but haven't vetted it for this use-case: https://github.com/desteves/realm.

A bonus of accessing the Realm database would be to get original (pretty) document names as well instead of the search optimized ones.

mafredri avatar Jan 30 '22 20:01 mafredri

Just installed the workflow today, thanks! It's great. However, I'm only getting results from my personal space. Is there anything I need to do to configure it for multiple spaces?

davemacdo avatar Sep 19 '22 10:09 davemacdo

@davemacdo, that's weird. It should work out of the box. Do you have all the latest versions? Did you open other Spaces first? The last action is needed for Craft to create search indexes.

kudrykv avatar Sep 20 '22 15:09 kudrykv

For me, entries from my private Space and also from others are displayed.

DFelten avatar Sep 20 '22 16:09 DFelten