This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-f6691f5a-f978-45ea-857a-db2a062d101a XWIKI-23504 Open

SolrSearch: Inconsistent search results for documents with or without attachment

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-b01551d1-bee6-4469-9235-dc576f812b67 Uwe Mannl created this issue on 03/Sep/25 07:28
 
Summary: SolrSearch: Inconsistent search results for documents with or without attachment
Issue Type: cid:jira-generated-image-avatar-f6691f5a-f978-45ea-857a-db2a062d101a Bug
Affects Versions: 16.10.10
Assignee: Unassigned
Attachments: SolrSearchConfig.xml, documentsearchtest.xar
Components: Search - Solr
Created: 03/Sep/25 07:28
Priority: cid:jira-generated-image-static-major-98bbbaf3-338a-4d61-8e77-f441d86e0dfd Major
Reporter: Uwe Mannl
Description:

Ticket based on discussion https://forum.xwiki.org/t/no-attachments-appear-in-search-results/8770/6

Steps to reproduce:

1. Replace SolrSearchConfig with file attached - I removed attachment criteries from DOCUMENT fields
2. Import pages from ticket attachment documentsearchtest.xar
3. Make a local search in this pages for "ramalamadingdong" (without quotes) - you can use the local search embedded in the page DocumentSearchTest
4. Check search results. You get 2 results, which is correct (for the 2 sub pages with the keyword in den document content.
5. Remove the check from result type DOCUMENT in the Facets (so you geht document and attachment results)

Actual result:

The number of results for result type DOCUMENT is suddenly 3.
The page "DocumentSearchTest - OnlyAttachment" is shown as result.

Expected result:

The numer of results for type DOCUMENT should still be 2.
The page "DocumentSearchTest - OnlyAttachment" should not be shown, because it results from an attachment and my change in SolrSearchConfig excludes attachments from document searches.