search query: add some more clickable options
Original report by Thomas Waldmann (Bitbucket: thomaswaldmann, GitHub: thomaswaldmann).
currently the search is most powerful if you know how to enter the correct queries into the search field.
maybe we want to have some clickable stuff also (see also moin 1.9 FindPage), e.g.
-
what contenttypes to search in (usually it searches in all types) - use groups of stuff so that a normal user understands it (see index page)
-
if farm wikis share a common index, we maybe could display a list of wikis with checkboxes to limit search to the selected wikis
-
maybe offer a list of tags to select
Original comment by Don Lebowski (Bitbucket: onthefly, GitHub: onthefly).
Hey thanks vice versa, but right now i have to learn the ropes so plz be patient :)
Original comment by Thomas Waldmann (Bitbucket: thomaswaldmann, GitHub: thomaswaldmann).
The search view code starts there:
http://hg.moinmo.in/moin/2.0/file/12053b28483d/MoinMoin/apps/frontend/views.py#l237
For any kind of "selection widgets", you maybe want to look at the widgets done by xiaq (currently mostly used by the ticket and blog related views).
Thanks for helping!
Original comment by Don Lebowski (Bitbucket: onthefly, GitHub: onthefly).
Hey there, i would try to solve this one. But at least i would need a leverage to know where to start, so a directory path in the repo would be a nice hint. I would appreciate it. Thanks
Original comment by hacklab (Bitbucket: hacklab, GitHub: hacklab).
look at index view and mimetype groups
Update to the status of this issue.
Regarding 1: There are groups for contenttypes that can be selected in the Search options section.
Regarding 2: We don't have farm support yet. But we can add a list of checkboxes for namespaces.
New topic
-
There should be checkboxes to include or exclude the trash in search. At the moment items from trash are included in the search results. Items from trash are usually only listed in the history but not in the index for normal users. So I would not expect to see deleted items in my search results by default.
To exclude deleted items you can add 'NOT trash:True' to the query. This will give the correct result but an additional hint
'Common words omitted from query: not'