[MGNLPER-129] JcrSearchResultSupplier ignores root path if fulltext search is enabled Created: 10/Mar/20  Updated: 17/Mar/20  Resolved: 17/Mar/20

Status: Closed
Project: Periscope
Component/s: None
Affects Version/s: 1.1.1
Fix Version/s: 1.2

Type: Bug Priority: Neutral
Reporter: Roman Kovařík Assignee: Roman Kovařík
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 20m
Time Spent: 5.45h
Original Estimate: Not Specified

Issue Links:
Relates
relates to MGNLUI-5693 Support findbar search in new framewo... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Sprint: UI Framework 20
Story Points: 3

 Description   

The query looks like:

SELECT * FROM [nt:base] AS t WHERE ((lower(LOCALNAME()) LIKE '%hiddenapps%' AND ISDESCENDANTNODE('/modules/multisite/config/sites')) AND (t.[jcr:primaryType] = 'mgnl:content' OR t.[jcr:primaryType] = 'mgnl:contentNode') OR CONTAINS(t., '*hiddenapps'))

Whereas it should be rather:

SELECT * FROM [nt:base] AS t WHERE (((lower(LOCALNAME()) LIKE '%hiddena%' OR CONTAINS(t., '*hiddenapps')) AND ISDESCENDANTNODE('/modules/multisite/config/sites')) AND (t.[jcr:primaryType] = 'mgnl:content' OR t.[jcr:primaryType] = 'mgnl:contentNode'))


Generated at Mon Feb 12 10:29:00 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.