- January 24, 2023 at 5:44 am #41069
Our site uses the Mai Lifestyle theme on WP 6.1.1
I have successfully indexed several hundred pdf and docx files in my WP Media folder
and have selected “Index table engine” as the Search engine.
The following are Enabled:
-Index PDF file contents
-Index Office Word document contents
-Show description contents in results
-Display the description context
-Highlight search text in live results
-Highlight search text on single results pages
-Highlight search text on the search results page
ASP is finding the indexed text in the files just fine and lists the file Titles in the live results box & on the results page.
The problem is that I can’t get the “Description Context” to appear for these indexed files, as it does for search results of Posts or Pages using the Regular engine.
According to the Media “File Search” example on your site, ASP is certainly able to do this, but I can’t get it to work, despite adjusting numerous settings. Our website users really need to see results in context.
Thanks for your help.
JimJanuary 24, 2023 at 1:51 pm #41072
Make sure to use the media service feature to index the document contents. That will extract a very accurate content from the files and store them locally. The built-in parsers can’t do that unfortunately, it is not possible to do within PHP only.
After reindexing via the media parser, the context should start appearing for most of the results. It is still far from perfect, but should work for most of them.Best,
If you like my products, don't forget to rate them on codecanyon :)
You must be logged in to reply to this topic.