SID-01986: %search is not working properly
| Status: |
Answered |
TWiki version: |
5.0.1 |
Perl version: |
|
| Category: |
|
Server OS: |
Linux version 2.6.18-194.11.4.el5 Red Hat 4.1.2-48 |
Last update: |
10 years ago |
I have configured 2 wikis in the same server.
The content in the page is :
%INCLUDE{"LteWowHeaderNew"}% <DO NOT REMOVE THIS ROW>
Managing WoW page status and approvals
This page is used for managing WoW pages metadata and approval information
%TOC{}%
DRAFT pages
%SEARCH{ "Document Status.*?value="\DRAFT\"" scope="text" type="regex" nosearch="on" nototal="on" order="formfield(
WoWPageApprovalRights )" format="| $formfield(
WoWPageApprovalRights) |
$topic | $formfield(Document content owner) | $formfield(Document Status) |" }%
Pages in review
%SEARCH{ "Document Status.*?value="\FOR REVIEW\"" scope="text" type="regex" nosearch="on" nototal="on" order="formfield(
WoWPageApprovalRights )" format="| $formfield(
WoWPageApprovalRights) |
$topic | $formfield(Document content owner) | $formfield(Document Status) |" }%
Pages in approval
%SEARCH{ "Document Status.*?value="\FOR APPROVAL\"" scope="text" type="regex" nosearch="on" nototal="on" order="formfield(
WoWPageApprovalRights )" format="| $formfield(
WoWPageApprovalRights) |
$topic | $formfield(Document content owner) | $formfield(Document Status) |" }%
Approved
%SEARCH{ "Document Status.*?value="\APPROVED\"" scope="text" type="regex" nosearch="on" nototal="on" order="formfield(
WoWPageApprovalRights )" format="| $formfield(
WoWPageApprovalRights) |
$topic | $formfield(Document content owner) | $formfield(Document Status) |" }%
No approval needed
%SEARCH{ "Document Status.*?value="\NO APPROVAL NEEDED\"" scope="text" type="regex" nosearch="on" nototal="on" order="formfield(
WoWPageApprovalRights )" format="| $formfield(
WoWPageApprovalRights) |
$topic | $formfield(Document content owner) | $formfield(Document Status) |" }%
OUTDATED
%SEARCH{ "Document Status.*?value="\OUTDATED\"" scope="text" type="regex" nosearch="on" nototal="on" order="formfield(
WoWPageApprovalRights )" format="| $formfield(
WoWPageApprovalRights) |
$topic | $formfield(Document content owner) | $formfield(Document Status) |" }%
All pages by used form
See
AllPagesbyUsedForm
It should find all topics using META FORM with value
Meta form is :
| Name |
Type |
Size |
Values |
Tooltip message |
Attributes |
| Document content owner |
text |
10 |
| WoWPageApprovalRights |
select |
8 |
Please select correct process area, CpdWowApproval, ProgramsWoWApproval, SpecAndArchWoWApproval, SwClusterWoWApproval, TestingClusterWoWApproval, GovernanceWoWApproval, QualityWoWApproval, CrossProcessAreaWoWApproval |
| Document Status |
radio |
6 |
DRAFT,FOR REVIEW, FOR APPROVAL, APPROVED, NO APPROVAL NEEDED, OUTDATED |
| Approved revision |
text |
5 |
| Approved by |
text |
50 |
| Approval date |
date |
15 |
| Review/approval comments |
textarea |
And the problem is that it doesn’t find any topics, page is empty
The same process is working fine in another Wiki
Please Advise.
--
Sriharsha Panja - 2014-10-31
Discussion and Answer
If it is working in one TWiki installation and not working in another TWiki installation, then the reason is more likely to be in the installations than in the
SEARCH function.
You write "page is empty" - may I assume that the headings are there, and it's just the searches that don't return results? If so, please check the following items:
- Does your TWiki account have access to the pages you want to search?
SEARCH returns only pages which can be seen by the current user.
- Are the topics you expect to find in the correct place ( web in TWiki language, directory on the system)?
- Are there different Linux access permissions / ownerships in your installations?
Hope this helps,
--
Harald Jörg - 2014-10-31
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
Peter Thoeny - 2015-12-03
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.