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" ?
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:
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" ?
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
Great, thanks, will give it a go.
is working on a reply...