No attachments appear in search results

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

You mean this here?

  '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):
  • if I remove f_type, I got 10 results for result type “document” and 10 results for result type attachement :grimacing:
  • → 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.