You are here: Foswiki>Tasks Web>Item9099 (29 Jun 2010, SvenDowideit)Edit Attach

Item9099: Duplicate search results without multiple=on

pencil
Priority: Normal
Current State: Closed
Released In: 1.1.0
Target Release: minor
Applies To: Engine
Component: Search
Branches:
Reported By: MichaelTempest
Waiting For:
Last Change By: SvenDowideit
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
 

ItemTemplate edit

Summary Duplicate search results without multiple=on
ReportedBy MichaelTempest
Codebase trunk
SVN Range
AppliesTo Engine
Component Search
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:da9d0f2ff8c0
TargetRelease minor
ReleasedIn 1.1.0
Topic revision: r5 - 29 Jun 2010, SvenDowideit
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy