library
library copied to clipboard
Cross-category search?
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)?
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.
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?