Skip to content

Commit

Permalink
Item1773: SEARCH separator between last result and the footer is trou…
Browse files Browse the repository at this point in the history
…blesome.

I am starting the implementation by adding some comments in the SEARCH code so
we all can have a chance of seeing what is going on


git-svn-id: http://svn.foswiki.org/trunk@7012 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
KennethLavrsen authored and KennethLavrsen committed Mar 31, 2010
1 parent f329d05 commit 57cd2e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/lib/Foswiki/Search.pm
Expand Up @@ -339,15 +339,15 @@ sub searchWeb {
$params{groupby} = 'web';
}

###################the search
################### Perform The Search
my $query = $this->parseSearch( $searchString, \%params );

#setting the inputTopicSet to be undef allows the search/query algo to use
#the topic="" and excludetopic="" params and web Obj to get a new list of topics.
#this allows the algo's to customise and optimise the getting of this list themselves.
my $infoCache = Foswiki::Meta::query( $query, undef, \%params );

###################the rendering
################### Do the Rendering
if (not $infoCache->hasNext()) {
if (not $zeroResults) {
return '';
Expand Down Expand Up @@ -419,6 +419,7 @@ sub searchWeb {
}
$params{newline} = $newLine;

# We now format the results.
my ( $numberOfResults, $web_searchResult ) =
$this->formatResults( $query, $infoCache, \%params );

Expand Down

0 comments on commit 57cd2e9

Please sign in to comment.