This issue has been created
There is 1 comment.
 
 
FAQ Application / cid:jira-generated-image-avatar-2808b629-c45c-42bf-8b6d-3c300b26f321 FAQ-37 Open

Searching using the custom search fails to restrict the results to the specific FAQ

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-4c3b5618-0647-4e91-9308-5c8c3aa52f3f Vincent Massol created this issue on 04/Feb/26 14:46
 
Summary: Searching using the custom search fails to restrict the results to the specific FAQ
Issue Type: cid:jira-generated-image-avatar-2808b629-c45c-42bf-8b6d-3c300b26f321 Bug
Affects Versions: 8.4.1
Assignee: Unassigned
Created: 04/Feb/26 14:46
Priority: cid:jira-generated-image-static-major-274ffea5-e131-488a-8342-af1759f43542 Major
Reporter: Vincent Massol
Description:

To reproduce:

You'll notice that it leads to a URL like http://localhost:8080/xwiki/bin/view/FAQ/FAQSearch?highlight=true&facet=true&r=&text=test&sort=score which loses the space query string parameter. Thus the search is done on the full wiki.

 
 

1 comment

 
cid:jira-generated-image-avatar-4c3b5618-0647-4e91-9308-5c8c3aa52f3f Vincent Massol on 04/Feb/26 14:49
 

The solution is to do what the DocApp does:

The reason it works is because the custom search page reuses solr search macros which automatically create a form that adds hidden inputs by taking the query string parameters starting with "f_".