You are here: Foswiki>Tasks Web>Item14100 (27 Jun 2016, GeorgeClark)Edit Attach

Item14100: Bad search attribute in Consultants app

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Web Site
Component:
Branches:
Reported By: VickiBrown
Waiting For:
Last Change By: GeorgeClark
%SEARCH% does not have a scope="topic" option; however, the search at /Support/WikiConsultants has this attribute set.

%SEARCH{
  "form.name~'*WikiConsultantForm' and State != 'passive'"
  web="Support"
  nonoise="on"
  sort="on"
  excludetopic="WikiConsultantTemplateTopic,Consultant"
  order="topic"
  type="query" 
  scope="topic"
  format="<div class='consultant'>
  ...

The search is working... (it shouldn't be working).

I discovered this when I borrowed some of the code for an app of my own and decided to use

  type="regex"
instead of
  type="query" 

When I did that, my SEARCH stopped working. When I fixed the scope variable, my SEARCH worked again.

Perhaps
  type="query" 
either ignores scope or just tests that it's not title. (type is documented as controlling how the search is performed when scope="text" or scope="all" .)

-- VickiBrown - 26 Jun 2016

See distro:feed24596405 - This started out as a typo in the documentation as well.

-- GeorgeClark - 27 Jun 2016

Closed. changed the search to use scope="all"

-- GeorgeClark - 27 Jun 2016
 

ItemTemplate edit

Summary Bad search attribute in Consultants app
ReportedBy VickiBrown
Codebase
SVN Range
AppliesTo Web Site
Component
Priority Normal
CurrentState Closed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic revision: r3 - 27 Jun 2016, GeorgeClark
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