Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross-category search? #286

Open
rakuzen25 opened this issue Aug 12, 2021 · 2 comments
Open

Cross-category search? #286

rakuzen25 opened this issue Aug 12, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@rakuzen25
Copy link
Contributor

Problem Description

This is probably a follow-up of #222 and #242 - once file shortcuts are properly implemented, would it be possible to search for pages in different categories/folders?

Feature

I was a MediaWiki user and really liked the "incategory" filter provided in CirrusSearch. I understand that searching in Google Drive is drastically different, but what I'm hoping to achieve is something similar to infolder:"Movies for children" infolder:"Movies for adults", and it would show me the pages that are present in both "Movies for children" and "Movies for adults" (i.e. the page "Foo" in this case).

.
├── Movies for children/
│   ├── Foo
│   └── Bar
└── Movies for adults/
    ├── Foo (shortcut)
    └── Foobar

Additional Information

I acknowledge that there might be folders with the same name. For example:

.
├── Children/
│   └── Movies/
│       ├── Foo
│       └── Bar
└── Adults/
    └── Movies/
        ├── Foo (shortcut)
        └── Foobar

In this case, perhaps the query string can be refined to infolder:"Children/Movies" infolder:"Adults/Movies" (relative to the root folder)?

@rakuzen25 rakuzen25 added the enhancement New feature or request label Aug 12, 2021
@afischer
Copy link
Member

Hey @leranjun — thanks for the issue!

I think this work can certainly be a part of/precursor to #242. Having a text-based way to scope (like your infolder suggestion) could be a good way to start building a scoped search without having to to think about UI right away.

I don't think this necessarily requires #222 to be done, but would be a nice addition.

@rakuzen25
Copy link
Contributor Author

Having a text-based way to scope (like your infolder suggestion) could be a good way to start building a scoped search without having to to think about UI right away.

I totally agree! In fact, although both Google Drive and Gmail have a graphical interface for filtering files/emails, ultimately it still generates a text-based query (e.g. owner:me type:shortcut in Drive). Perhaps instead of filtering the search result on the fly with JS, the filter can just be part of the query?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants