moinwiki / moin

MoinMoin Wiki Development (2.0+), unstable, for production please use 1.9.x.
https://moinmo.in/
Other
304 stars 93 forks source link

search query: add some more clickable options #60

Open ThomasWaldmann opened 13 years ago

ThomasWaldmann commented 13 years ago

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.

  1. 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)

  2. if farm wikis share a common index, we maybe could display a list of wikis with checkboxes to limit search to the selected wikis

  3. maybe offer a list of tags to select

ThomasWaldmann commented 12 years ago

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 :)

ThomasWaldmann commented 12 years ago

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!

ThomasWaldmann commented 12 years ago

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

ThomasWaldmann commented 13 years ago

Original comment by hacklab (Bitbucket: hacklab, GitHub: hacklab).


look at index view and mimetype groups

UlrichB22 commented 2 weeks ago

Update to the status of this issue.

Regarding 1: There are groups for contenttypes that can be selected in the Search options section.

image

Regarding 2: We don't have farm support yet. But we can add a list of checkboxes for namespaces.

UlrichB22 commented 2 weeks ago

New topic

  1. 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'