• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.
In my topic I have defined a search for RIA. But the search also finds topics with variable. This shouldn't be with type=keyword.


That is a question how to define "keyword". For TWiki it is any set of number of characters, separated by space. A number of characters is anywhere in a word, not just at word boundaries.

This is an enhancement IMHO. Could be done with a new type=word to keep it compatible.

Renamed summary from "Search finds topics it should not find" to "Add new type=word search to search on word boundaries"

-- PTh

Rest of discussion is moved to TWiki:Codev.KeywordSearch. Also a first stab at the implementation.


New documentation for VarSEARCH:

Control how the seach is performed when searching in topic texts (with scope="text" or scope="all")
keyword search: use Google-like controls as in soap "web service" -shampoo; searches word parts: using the example, topics with "soapsuds" will be found as well, but topics with "shampoos" will be excluded
word search: identical to keyword but searches whole words: topics with "soapsuds" will not be found, and topics with "shampoos" will not be excluded
literal search: search for the exact string, like web service
regex search: use a RegularExpression search like soap;web service;!shampoo; to search on whole words use \bsoap\b
%SEARCHVAR- DEFAULTTYPE% preferences setting (literal)

-- TWiki:Main.ArthurClemens - 02 May 2007

re-enable unit test

-- TWiki:Main.SvenDowideit - 07 May 2007

The test runs fine with me.

-- TWiki:Main.ArthurClemens - 07 May 2007

argh - the above should read "I re-enabled the unit test with commit 13649"

-- SvenDowideit - 13 May 2007

Summary Add new type=word search to search on word boundaries
ReportedBy TWiki:Main.ArthurClemens
Codebase 4.0.0, 4.0.1, 4.0.2, ~twiki4
SVN Range Wed, 12 Apr 2006 build 9798
AppliesTo Engine

Priority Enhancement
CurrentState Closed

Checkins TWikirev:13489 TWikirev:13490 TWikirev:13494 TWikirev:13495 TWikirev:13606 TWikirev:13607 TWikirev:13649
TargetRelease minor
ReleasedIn 4.2.0
Edit | Attach | Watch | Print version | History: r31 < r30 < r29 < r28 < r27 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r31 - 2008-01-22 - KennethLavrsen
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback