You are here: Foswiki>Tasks Web>Item12585 (19 Nov 2013, GeorgeClark)Edit Attach

Item12585: Missing configuration of {files_without_match} parameter/option in

Priority: Urgent
Current State: Closed
Released In: 1.1.9
Target Release: patch
Applies To: Engine
Component: SEARCH
Branches: Release01x01 trunk
Reported By: ChristianKoehn
Waiting For:
Last Change By: GeorgeClark
-- ChristianKoehn - 18 Sep 2013


Using the search it may happen that the {files_without_match} option/parameter used in the search engine (Native/Fork etc.) is not properly set. This result e.g. for WebRss searches in processing each line of all topics instead of only one time per topic.

Proposed fix by CrawfordCurrie:
[11:46] <@CDot> Index:
[11:46] <@CDot> ===================================================================
[11:46] <@CDot> --- (revision 16728)
[11:46] <@CDot> +++ (working copy)
[11:46] <@CDot> @@ -253,6 +253,7 @@
[11:46] <@CDot>      my $format = $params{format};
[11:46] <@CDot>  
[11:46] <@CDot>      $params{multiple} = Foswiki::isTrue( $params{multiple} );
[11:46] <@CDot> +    $params{files_without_match} = not $params{multiple};
[11:46] <@CDot>      $params{nonoise}  = Foswiki::isTrue( $params{nonoise} );
[11:46] <@CDot>      $params{noempty}  = Foswiki::isTrue( $params{noempty}, $params{nonoise} );
[11:46] <@CDot>  ###    $params{zeroresults} = Foswiki::isTrue( ( $params{zeroresults} ), $params{nonoise} );
Regards, Christian

The problem seems to be a result of the refactoring Sven did for result sets. That passes the responsibility for multiple="on" to the result formatter, but the passing of files_without_match is necessary to stop a huge memory blob from forming during the basic search. Arguably this fix should be in the search algorithm (and NativeSearchContrib)

-- CrawfordCurrie - 18 Sep 2013

After inspecting the code I discovered that Func uses files_without_match so it's part of the search engine spec and has to be set in

-- CrawfordCurrie - 19 Sep 2013


ItemTemplate edit

Summary Missing configuration of {files_without_match} parameter/option in
ReportedBy ChristianKoehn
Codebase 1.1.8, trunk
SVN Range
AppliesTo Engine
Component SEARCH
Priority Urgent
CurrentState Closed
Checkins distro:48468f920616 distro:7265c3247d8f
TargetRelease patch
ReleasedIn 1.1.9
CheckinsOnBranches Release01x01 trunk
trunkCheckins distro:7265c3247d8f
Release01x01Checkins distro:48468f920616
Topic revision: r7 - 19 Nov 2013, GeorgeClark - This page was cached on 16 Oct 2020 - 14:17.

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