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:
- literal searches for the exact string
- word will 'and' together a search for each of the words, separated by spaces (tho the docco is vague as a peasouper)
- keyword is a stemming version of word
these are pretty moronic names for the types, but, that's legacy.
testing
word
- Topics with the word virtual: AgendaSecondGeneralAssembly, AgendaThirdGeneralAssembly, AssociationArticlesDraft, AssociationArticlesTranscriptEnglish, AssociationBoardMinutes20120120, AssociationBylawsTaskTeam, BrandNameQuestionnaireTalk, CommunityDecisionSystemTalk, DescriptionsOfFoswiki, FossyTweetsTalk, FoswikiCeBIT2012, MarketingTeamMeetings, NutsAndBolts, Community.Solutions, Community.Testimonials, VirtualBeer, VirtualMarketingSprint, VirtualUpgradingParties, Community
- Topics with the word beer: FossyTweetsTalk, FoswikiMeetup2009, VirtualBeer
keyword
- Topics with the word virtual: AgendaSecondGeneralAssembly, AgendaThirdGeneralAssembly, AssociationArticlesDraft, AssociationArticlesTranscriptEnglish, AssociationBoardMinutes20120120, AssociationBylawsTaskTeam, BrandNameQuestionnaireTalk, CommunityDecisionSystemTalk, DescriptionsOfFoswiki, FossyTweetsTalk, FoswikiCeBIT2012, InfrastructureTaskTeam, MarketingCalendar, MarketingHub, MarketingTeamMeetings, NutsAndBolts, Community.Solutions, Community.Testimonials, VirtualBeer, VirtualMarketingSprint, VirtualUpgradingParties, Community, WebStatistics, WebStatistics2009
- Topics with the word beer: BrandNameQuestionnaireTalk, FossyTweetsTalk, FoswikiMeetup2009, VirtualBeer, WebStatistics, WebStatistics2009
literal
- Topics with the word virtual: AgendaSecondGeneralAssembly, AgendaThirdGeneralAssembly, AssociationArticlesDraft, AssociationArticlesTranscriptEnglish, AssociationBoardMinutes20120120, AssociationBylawsTaskTeam, BrandNameQuestionnaireTalk, CommunityDecisionSystemTalk, DescriptionsOfFoswiki, FossyTweetsTalk, FoswikiCeBIT2012, InfrastructureTaskTeam, MarketingCalendar, MarketingHub, MarketingTeamMeetings, NutsAndBolts, Community.Solutions, Community.Testimonials, VirtualBeer, VirtualMarketingSprint, VirtualUpgradingParties, Community, WebStatistics, WebStatistics2009
- Topics with the word beer: BrandNameQuestionnaireTalk, FossyTweetsTalk, FoswikiMeetup2009, VirtualBeer, WebStatistics, WebStatistics2009
--
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. 
