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
.
AC
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.
Implemented.
New documentation for
VarSEARCH:
type="keyword" type="literal" type="regex" |
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