On trunk, A simple search via WebSearch can produce multiple hits for the same topic. For example: http://trunk.foswiki.org/Community/WebSearch?search=virtual+beer&scope=all&web=Community lists VirtualBeer twice.

Search:
%SEARCH{"virtual beer" type="word" scope="all" web="Community" format="   * $web.$topic" nonoise="on"}%
Sample result: Live:

It turns out that type="word" is important. Here is the same search with type="literal" (the doccoed default) :

and again, with type=keyword: (stemming 'and-ed' word search)

-- Foswiki:Main.MichaelTempest - 03 Jun 2010

ok, taking a break from windowsisms - looking into this

things of import:
  1. literal searches for the exact string
  2. word will 'and' together a search for each of the words, separated by spaces (tho the docco is vague as a peasouper)
  3. keyword is a stemming version of word

these are pretty moronic names for the types, but, that's legacy.

testing

word

keyword

literal

-- SvenDowideit - 29 Jun 2010

wow. the reason BrandNameQuestionnaireTalk matches in literal and keyword, but not word is that the text in there is him the virtual beers he deser which needs the stemming of 'keyword'

search for 'virtual beers' type=word=

-- SvenDowideit - 29 Jun 2010

I'm writing a couple more nit tests just to see if there are any other things that turn up - this one is cos we didn't have any tests that searched for multiple things :/

-- SvenDowideit - 29 Jun 2010
 

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads