Page 1 of 1

Searching content of Microsoft Word documents

Posted: 26 Jul 2022 00:25
by TedL1972
I ran a search in a directory that has .txt files, excel documents,PDFs and Microsoft Word docs with .docx extension (MS Word 2016).

The "content search" does find a string in the .txt file and in an excel document but didn't find it in the Word .docx ones.

I ran several similar searches testing different type of contents that were clearly and obviously in the .docx files but what I get is always "the view is empty" serach result.

I tried this using both, the quicksearch (F3) and the form search (F12) - the results are always the same.

So, I don't know if this is the right section to post this because I cannot tell whether this is a "bug" or my lack of understanding on how the search work.

Pls enlighten me. Thanks.

Re: Searching content of Microsoft Word documents

Posted: 26 Jul 2022 10:22
by admin
Select one of those DOCX files in the file list, then run either of these script lines through the XYplorer address bar (paste there and press ENTER):

Code: Select all

text extracttext(<curitem>, 32, 1); //32-bit; suppress IFilter errors

Code: Select all

text extracttext(<curitem>, 64, 1); //64-bit; suppress IFilter errors
Does any of them or both return text?

Re: Searching content of Microsoft Word documents

Posted: 26 Jul 2022 14:19
by Horst
DOCX files are searched for text content fine here.
For my system without a Word installation the following iFilter is used:
WordpadFilter.dll Wordpad DOCX Filter WordPad Search Filters 10.0.22000.653 (WinBuild.160101.0800) 10.0.22000.653 Microsoft Corporation C:\Program Files\Windows NT\Accessories\WordpadFilter.dll {698A4FFC-63A3-4E70-8F00-376AD29363FB} {3037B4CD-A40B-401B-B676-2017EE8FAFF4} 05.06.2021 15:11:04

Re: Searching content of Microsoft Word documents

Posted: 27 Jul 2022 18:19
by TedL1972
To answer the admin question:

the code below returnes the entire content of the docx file on focus:

text extracttext(<curitem>, 64, 1); //64-bit; suppress IFilter errors

The first code returns an empty window.

Re: Searching content of Microsoft Word documents

Posted: 27 Jul 2022 18:43
by admin
In that case you should tick this box: Configuration | Other | Shell Integration | 64-bit Windows | Use 64-bit IFilters for content search

Re: Searching content of Microsoft Word documents

Posted: 28 Jul 2022 02:23
by TedL1972
I did and content search works for MS Word docs now.

Thank you.