There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-70299bee-fe8d-49f6-bcf7-c778e0592559 XWIKI-23504 Open

SolrSearch: Inconsistent search results for documents with or without attachment

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-3b5c9553-1c5f-45d0-aade-d667a6ac58ef Changes by Uwe Mannl on 03/Sep/25 07:40
 
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 checkmark from result type DOCUMENT in the Facets facets right (so you geht get 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.