Developer forum

Forum » CMS - Standard features » Can I search within Word and PDF using new index?

Can I search within Word and PDF using new index?

Peter Leleulya
Reply

Hi there,

For one of our customers I have an index with a FileIndexBuilder.
In the application I have a search functionality which uses an index query that filters on file name containing the search term. Which works just fine.

Now, as a new feature, they would like to be able to search in Word and pdf content too.
I found this page on DW8 and old indexes: https://doc.dynamicweb.com/documentation-8/how-tos/install-setup/enabling-users-to-search-inside-files-microsoft-search-service

Is there a recomended way to achieve this with DW9 and new indexes?

 

 

 

https://doc.dynamicweb.com/documentation-8/how-tos/install-setup/enabling-users-to-search-inside-files-microsoft-search-service

 


Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply
This post has been marked as an answer

Hi Peter,

You can implement a custom index builder that is able to extract text from Word, PDF, etc. and place it in the index.
Here is an example of how you can do that: https://doc.dynamicweb.com/forum/development/development/index-pdf-content

Best regards,
Morten

Votes for this answer: 1
 
Peter Leleulya
Reply

Thanks for the feedback.
I have some experience with building custom indexbuilders, so it shouldn't be a too big of a problem.
But an example code always helps a lot!
The issue has been dropped back in the backlog though :( , so probably an issue for later ...

But I'm sure I'll run into this request more often ...

 

You must be logged in to post in the forum