Item14100: Bad search attribute in Consultants app
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Web Site
Component:
Branches:
%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