Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-4975

Non-pdf attachments are returned by search

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Released
    • Icon: Must have Must have
    • 2.29
    • None
    • 2
    • Search
    • Sprint #130
    • atlas

      When performing any search, images are returned in the search results, which is not intended. Images are attachments in WordPress, and so are PDFs. We only want PDFs in the search results, but it's including all attachments.

      The fix is the apply an OR filter on all results: 
      either a result is not of type `attachment`
      or the result is of type `attachment` and has mime type `application/pdf`.

      Tasks:

      • Remove existing filters in multiple places, one of which was not working.
      • Add above single filter for all results.

            pvincent Pieter Vincent
            pvincent Pieter Vincent
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: