craftercms / craftercms

Parent project for Crafter CMS. Issue tracking across all repositories and global builds.
GNU General Public License v3.0
280 stars 98 forks source link

Document object is returned in authoring search when the XML content type filter is applied #6701

Open russdanner opened 1 week ago

russdanner commented 1 week ago

Duplicates

Latest version

Describe the issue

When you configure a content type to be a jacket and attach a document, CrafterCMS indexes both the document itself (the static asset) AND the jacket+document

In the authoring search and browse interfaces, if you search for just the XML/jacket (component) content type, you ALSO get the document object in the results. This could lead to the authors choosing a reference to the document rather than the XML/jacket object.

CI: 4861

Steps to reproduce

Steps:

  1. Start with an editorial project
  2. Create and Configure /site/documents to your project
  3. Update feature to include a file picker and file upload data source
  4. In the sidebar configure a cabinet for documents
  5. Add a feature in the documents cabinet
  6. Add a feature to the documents folder and attach a PDF
  7. Open authoring search (or browse)
  8. Filter by content type
  9. Search for a word ONLY in the PDF
  10. Note that the Jacket object AND the PDF shows up

Relevant log output

No response

Screenshots and/or videos

image

sumerjabri commented 1 week ago

Workaround: Limit search by the path to /site for components/jackets/XML in the picker to avoid getting static assets.