create new tag
, view all tags, tagging instructions

Search form

do not show summaries
do not show total matches
show locked topics
limit result count to

Note that you can redefine this form to suit your current needs, removing the options you don't want

Search through all webs form (suited for top bar)

  <input type="text" name="search" size="32" /> <input type="submit" value="Search" />
  <input type="hidden" name="web" value="all">

Search through current web (suited for left bar)

  <input type="text" name="search" size="32" /> <input type="submit" value="Go" />
  <input type="hidden" name="web"  value="%INCLUDINGWEB%">

Search in WebTopBarBack

Add the following lines to TWiki.WebTopBarBack. Then you have an additional search field in the upper right corner behaving and looking exactly the same as the normal search field there. If you want, you can also replace the existing search field with this one.
   * <form name="kinosearch" form action="%SCRIPTURLPATH%/kinosearch%SCRIPTSUFFIX%/%INTURLENCODE{"%INCLUDINGWEB%"}%/">
  %IF{" '%URLPARAM{"search" encode="entity" scope="topic"}%' = '' " then="<input type=\"text\" class=\"twikiInputField patternFormFieldDefaultColor\" name=\"search\" value=\"%MAKETEXT{"Search Index"}%\" size=\"14\" onfocus=\"clearDefaultandCSS(this);\" onblur=\"setDefaultText(this);\" />" else="<input type=\"text\" class=\"twikiInputField\" name=\"search\" value=\"%URLPARAM{ "search" encode="entity" scope="topic" }%\" size=\"14\" />"}%</form>

Query syntax

  • To search for a word, just put that word into the Search box. (Alternatively, add the prefix text: before the word.)
  • To search for a phrase, put the phrase in "double quotes".
  • Use the + and - operators, just as in Google query syntax, to indicate required and forbidden terms, respectively.
  • To search on metadata, prefix the search term with field: where <field> is the field name in the metadata (for instance, author).

Query examples

  • text:kino or just kino
  • text:"search engine" or just "search engine"
  • author:MarkusHesse — note that to search for a TWiki author, use their login name
  • form:WebFormName to get all topics with that form attached.
  • CONTACTINFO:MarkusHesse if you have declared CONTACTINFO as a variable to be indexed
  • type:doc to get all attachments of given type
  • web:Sandbox to get all the topics in a given web
  • topic:WebHome to get all the topics of a given name
  • +web:Sandbox +topic:Test to get all the topics containing "Test" in their titles and belonging to the Sandbox web.

Note: the current version of KinoSearch does not support wildcards.

See also: SearchEngineKinoSearchAddOn

-- TWiki:Main/MarkusHesse - 12 Dec 2007

Topic revision: r2 - 26 Feb 2010 - 17:02:54 - CTSpediaAdmin
Copyright & by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding CTSPedia? Send feedback