# No attachments appear in search results

**URL:** <https://forum.xwiki.org/t/no-attachments-appear-in-search-results/8770>\
**Category:** Help / Discuss\
**Tags:** search\
**Created:** [May 19, 2021, 6:30pm UTC](https://forum.xwiki.org/t/no-attachments-appear-in-search-results/8770 "2021-05-19T18:30:55Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![business-tomcat](https://forum.xwiki.org/user_avatar/forum.xwiki.org/business-tomcat/32/7863_2.png) [@business-tomcat](https://forum.xwiki.org/u/business-tomcat)\
**Post date:** [September 2, 2025, 10:56am UTC](https://forum.xwiki.org/t/no-attachments-appear-in-search-results/8770/6 "2025-09-02T10:56:11Z")

</div>

Okay, so it is not facetQuery, what I’m looking for …

You mean this here?

```auto
  'queryFields': {
    'DOCUMENT': 'title^10.0 name^10.0
                 doccontent^2.0
                 objcontent^0.4 filename^0.4 attcontent^0.4 doccontentraw^0.4
                 author_display^0.08 creator_display^0.08
                 comment^0.016 attauthor_display^0.016 spaces^0.016',
    'ATTACHMENT': 'filename^5.0 attcontent attauthor_display^0.2',
    'OBJECT': 'objcontent',
    'OBJECT_PROPERTY': 'propertyvalue'
  },

```

I deleted “filename^0.4 attcontent^0.4” from DOCUMENT and now, there is a complete strange behaviour:

- when using f\_type=DOCUMENT, I got 2 results (was 10 before, seems to be fine):  
 ![image](https://forum.xwiki.org/uploads/default/original/2X/4/4cf3c224222bceb973f7ede06abb342b5887260b.png)
- if I remove f\_type, I got 10 results for result type “document” and 10 results for result type attachement 😬  
 ![image](https://forum.xwiki.org/uploads/default/original/2X/d/df468583c10ea02091854c1ca93cf8c3fca66871.png)
- → it should also be 2 for document type in that case … ?!

PS: Do I need to delete the fields also from phraseFields, bigramPhraseFields and so on?  
I don’t understand, what the entries phaseFields (and so on) stands for.

---

_[View the full topic](https://forum.xwiki.org/t/no-attachments-appear-in-search-results/8770)._
