I know this approach wasn't meeting your desideratum of not mixing up with
full-text search that would retrieve based on normal contents. Your
workaround of having "funny names" for the keywords might work; you might
need to test if the underscores are handled as part of the word in the
search facility. (It seems to me that hyphens are not ... I was marking
things with "to-do" and never retrieved it.)
Our reason for using a template was merely to shield users from needing
to type the HTML comment syntax, which some have never encountered, and
which some others (including me!) forgetfully get wrong sometimes. If
these are not issues for your user base, skipping the template and
entering the comment directly would no doubt work the same.
Would you want to leave them visible, and by convention put some kind of
distinct box at the bottom of articles just giving the keywords for that
article? I'm thinking of that as something to do manually and enforce a
convention, but the experienced MW developers may be able to suggest a way
of creating a namespace (or something ...) for Keywords which would be
displayed much like Categories -- distinctive appearance and at the bottom
of a page no matter where the Category (or now the Keyword) was entered in
the body of the Wikitext.
Good luck,
== Mitch
On Thu, 6 Jul 2006, popov wrote:
Thanks for your answer.
My problem with your solution lies in the fact that I can't do a search
based only on the keywords: if other pages have the word 'fibre' (to
take your example) not in their keywords list but in the plain text,
those pages will nevertheless be retrieved, something I would like not.
There's the possibility to prefix each keywords with some letters (like
keyw_fiber, keyw_fibre), so that the whole keyword is unlikely to exist
as is in other pages, then when doing a search, use keyw_ to prefix what
you want to search for...
As an aside: do we need a template here ? if we use plain html comment
<!-- keyw_fiber, ... --> in the page, I think this comment should be
full-text searched too when performing a search (?).
Mitch Marks wrote:
I was trying to cobble together something related
to this, though not as
ambitious. I define a Template:HiddenKeywords like this:
<!--
{{{1|}}}
-->
Then on a page to be marked, enter for example
{{HiddenKeywords|fiber fibre 1000BaseF}}
Because of the HTML comment-marking, nothing from that template will show
up on the normally viewed page. However, the terms are in the page text
in the DB and will (sometimes ... not always?) get that page retrieved
when doing an ordinary full-text search from the left navbar.
== Mitch Marks
On Thu, 6 Jul 2006, Evgeni Popov wrote:
(sorry if posted to the wrong list - tried the
forum
www.mwusers.com but with no
luck)
Hi,
I would like to be able to tag articles with one or more keywords, then in the
search page I would like to have a mode where articles can only be searched
based on those keywords (and not in a full text search mode).
Is it possible with mediawiki (or with additionnal modules) ? I looked for
information, but could not find any. I found Semantic Mediawiki
(
http://wiki.ontoworld.org/index.php/Help:Semantics), but that's not really
what I need (you can add attributes to articles - a name+a value+a type, not
simple keywords - a raw text).
Thanks.
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
--
Mitchell Marks
CUIP & WIT Tech Coordinator
CUIP: Chicago Public Schools / Univ. of Chicago Internet Project
WIT: Web Institute for Teachers
http://cuip.net/cuip http://tech.cuip.net/ http://wit.uchicago.edu/wit
5640 S Ellis Ave AAC-007, Univ of Chgo, Chgo IL 60637
Phones: Area 773 (O) 702-6041 (F) 702-8212 (H) 241-7166 (C) 620-6744
Email: Primary address: mitchell(a)cuip.net
CPS: mmarks(a)cps.k12.il.us
Alternate UofC addresses (use especially to report problems with CUIP\WIT mail!):
mitchell(a)cs.uchicago.edu and mmar(a)midway.uchicago.edu
Off-campus (ISP) address: mmarks(a)pobox.com
Say What You Mean And Mean What You Say