Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Matt Barlow | jacker.io 164 posts 740 karma points c-trib
    Jan 16, 2019 @ 23:10
    Matt Barlow | jacker.io
    0

    Adding PDF content or other media content to the Internal Examine Indexer?

    Is there a way of adding PDF or other media section document content to the internal indexer?

    So if i have a PDF that contains a keyword, then when I search in the back office (not the front end) then the search picks up the media item with that content? eg. if I search for "specific" ?

    enter image description here

  • Marc Goodson 2133 posts 14273 karma points MVP 8x c-trib
    Jan 18, 2019 @ 10:31
    Marc Goodson
    100

    Hi Matt

    The default backoffice search for the media section is just using the name of the Umbraco item, which is why its not matching on other properties or contents of the PDF.

    As of Umbraco 7.7, you can implement your own logic for the backoffice searches by implementing a class that implements ISearchableTree (an interface defining the contract that the backoffice search uses) and then on application start up, switch the ISearchableTree implementation to use your implementation (that would search other properties and pdfs) instead of the default provider for searching media by title.

    Have a look at this page in the docs for an example/better explanation:

    https://our.umbraco.com/documentation/extending/section-trees/Searchable-Trees/

    The Media section has TreeAlias: 'media'

    regards

    marc

  • Matt Barlow | jacker.io 164 posts 740 karma points c-trib
    Jan 18, 2019 @ 17:02
    Matt Barlow | jacker.io
    0

    Great, thanks, will give it a go.

Please Sign in or register to post replies

Write your reply to:

Draft