I would suggest that somebody more familiar with this wiki put some pointers here, to wiki pages with details of how to use the current search features (since searching on "search" turned up a zillion hits and searching on "search syntax" only turned up the wiki patch page for extended search).
Add a search button that searches from google
The searches (Example: on http://www.emacswiki.org) are sometimes very slow. OTOH, google can search much faster. It would be so nice to add a search dialog box that takes some terms and does a google search on site:www.site.org term1 term2 etc. on the terms. -- DeepakGoel
I would like an option to search only the links in a page. Among other things, this would allow true display of backlinks. Currently the backlink display is too broad: pages containing the text "usemod" need not link to the page UseMod; it may be capitalized wrong, or enclosed in <nowiki> tags.
A parameter to control case-sensitivity would partially solve this problem.
There is now a patch to support BackLinking?. See WikiPatches/BackLinks.
I like the way you can search for "wanted pages" with
action=links&exists=0&editlink=1
and for external links with
action=links&url=2
but these would be a lot more useful if there was a way to reverse the results, sort of, so that you would see something like
http://link.to/populartarget ReferringPage1? ReferringPage2? Referringpage3 ... http://link2.com/another/one.html ReferringPage4? ReferringPage5? ...
for the external link search, and something like
MissingPage1? ReferringPage1? ReferringPage2? ReferringPage3? ... MissingPage2? ReferringPage4? ReferringPage5? ...
for the missing page search. Getting the most wanted ones listed at the top makes it easy to find the ones which would e.g. benefit the most from being added as a page to your own Wiki, or be granted a link directly from the start page, or whatever -- in short, this would be a useful tool for managing links within the Wiki.
I don't know if an option to action=link
would be a good
soltion, or if you'd instead like to have something like
action=linktarget
as an orthogonal case (of sorts)
to action=link
.
-- EraEriksson?
Personally, I think it's better to keep the core script as uncomplicated as possible. I'd extract the link analysis to a separate module or script as it is really irrelevant to the core functionality. Notice how on MeatballWiki, MeatBall:WantedPages is a separate script from the core wiki script? -- SunirShah
Suppose I write AlaBama? and someone else writes AlabamA?.
We will miss each other, and end up with two pages on the same topic. This can be solved during a refactor, all of the stuff from the two pages can be combined by someone, and one page setup to forward to the other.
To help that process along, it would be neat to have a page like RecentChanges which would find near misses -- defined as pages which have exactly the same name if we ignore case, for which neither of them forwards to the other.
I haven't read your code yet, CliffordAdams. If you tell me that this would be very difficult, I won't attempt it. If you tell me that it would be very easy, I would appreciate the opportunity to write this code myself and send you the patch. I want to learn more about your code!
As always, of course, there may be some reason why this isn't a good idea anyway. :-) --JimboWales
See MeatBall:WikiNameCanonicalization which is what MeatBall:MetaWiki uses to resolve such collisions during MeatBall:TwinPages matches.
When I search for 'CliffordAdams' I find what I am looking for, namely the CliffordAdams page, and some other pages where he signed his name or someone mentioned him. When I search for 'Clifford Adams' (note the more natural uncrammed spelling), I am somewhat disappointed.
When the user types multiple words in the search engine, perhaps it could search for what they type exactly, as it does now, plus it could cram the words together for them and add those results as well.
There may be some other reason that I haven't seen why this would be unpleasant... I just thought of this now. --JimboWales
See WikiPatches/BetterSearchOutput
In-line searching
MoinMoin also supports an in-line search capability of some kind, making it really easy to create index pages for a group of related pages. Something like @SEARCH "My Search Text"
would do the trick.
-- WillDuquette
A powerful inline search extends the possible uses for a wiki a great deal. Example: The ability to list selected pages (e.g out of a WikiCategory?) makes it possible to use the wiki as a flexible tracking tool (think WikiCategories? such as "UseCase?" or "TaskAssignedTo?"), or one can make a RecentChanges page for a set of pages e.g CategoryPersonRecentChanges?.
A inline search could look something like:
@SEARCH{SEARCHSTRINGS|OPTION=VALUE|OPTION=VALUE ..}
Some search options I put in the word "Powerful" (no particular order):
[NOT] "PATTERN" [AND|OR] [NOT] "PATTERN" [AND|OR] ..
daysago=<days>
(default:BeginingOfTime
;)
scope=all|body|link
(default:all
)
reporttype=link|brief|page|rc
(default:link
)
sort=date|link
(default:link
)
sortorder=asc|desc
(default:asc
)
limit=<num>
casesensitive=yes|no
(default:no
)
regex=yes|no
(default:yes
)
Examples:
A simple search:
@SEARCH{"Some text to search"}
The RecentChanges page could be implemented with this:
@SEARCH{daysago=30 sort=date reporttype=rc}
..and the CategoryPersonRecentChanges? page mentioned above could be implemented with:
@SEARCH{"CategoryPerson" scope=body daysago=30 sort=date reporttype=rc}
(scope=body
will prevent the page name "CategoryPerson?" to be matched, only pages containing the text "CategoryPerson?" matches.)
Ok, I think you get the idea.. Im not completely happy with the reporttype
option, the search output should be very flexible to fit most applications of an inline search and I dont think reporttype
is flexible enough. [TWiki] has a quite good inline search feature, maybe some things could be learned from that [TWiki InlineSearch].
How about just MeatBall:InternalTransclusions, but include such things as the search options? -- SunirShah
I'd like to see actually the [TWiki search] possibilities implemented in UseMod. They are by far the best I know from any wiki sw. There are a lot of possiblities in UseMod already but they are hardly useable for general users since there is no simple tag to include a text box AFAIK, thus you have to know the syntax or search for it. Easy text box inclusion would be really neat for several purposes anyway. -- DavidAndel
Also, when browsing an unknown page, there is faux wiki text saying "Describe the new page here." Perhaps it could also insert a search result for that page name, thus revealing any near-misses in AlabamA?
It's fair to say that the former are likely to be more relevant to the searcher, so perhaps those particular hits could be emphasized in the search list.
Is it possible to detect that the current page is in edit mode and thus have the GetSearchForm sub modify itself to specify target=_blank?
(btw: hooey on W3C deprecation of target=_blank)
(btw2: yes, I'm smartalecky enough to use a bookmarklet to automate a search for selected text, but won't anyone think of the children^H^H^H^H^H^H^Husers!)
Either additionally or optionally let include the "Summaries" to be searched, too. It may happen that you want to search for the editor's comment(s) where he might use other keywords than in the actual document. --RadoS
In case some spammer slips through and his changes drop out of awareness in the recentchanges history or get overwritten by an unaware editor, it would help track it down. --RadoS
Since a lot of wikis are used by technical communities, some options for literal searches or quoted searches might be a good idea, to allow searching on command options (example: "mutt -y", or mutt "-y")
...please feel free to add more...