Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There are already issues about my question in this page, but anyway there is no clear answer except a non-working suggestion.
Does this module support Windows or not? If yes, how to configure the path of helper applications?
Thanks
Arda
Comments
Comment #1
bander2 CreditAttribution: bander2 commentedArda,
I am using Windows 2003 and IIS6, and I got it to work.
helper path: D:\xpdf\pdftotext.exe %file% -
Directory: D:/root_site_folder/files
I am running 5.x and I noticed in another issue someone suggested using escape characters like this: D:\\xpdf\\pdftotext.exe %file% - but I didn't have to do that. And you do need to give your internet guest account access to cmd.exe.
Also, the helper application is dificult to set up, so you should test that separatly to make sure it works. I had trouble because pdftotext came with instructions for linux/apache.
Maybe 6.x is different from 5.x, but I think it will work.
Brendan
Comment #2
leszek.hanusz CreditAttribution: leszek.hanusz commentedSorry if it is a stupid question but how can i give the internet guest account access to cmd.exe ?
I am using apache on windows.
Comment #3
leszek.hanusz CreditAttribution: leszek.hanusz commentedI finally got it to work on apache on Windows(with version 6.x-1.6 of search_files)
My main problem was that the function shell_exec didn't return anything for me so I had to use WshShell->Exec
I had to modify the hook_update_index function as follow:
Once you have replaced this function in the search_files.module file, you have to:
Comment #4
peter85 CreditAttribution: peter85 commentedHi, I want to use the search file module with drupal6.9 on windows
Installed it. The search of pdf attachments works.
But i want to search .doc and .xls files, too.
This doesnt work.
The helpers for doc or xls are not for windows.
Is there a solution for Windows?
Comment #5
Dinis CreditAttribution: Dinis commentedThere are a number of helpers for Windows/DOS, have you found the ones you need?
Comment #6
yuva_mind CreditAttribution: yuva_mind commentedany one plz tell me how to install helpers(pdf,doc,xls,ppt,rtf) files in windows machine . give detail link or document. thanks in advance.
rgds
Yuva
Comment #7
dgarciad CreditAttribution: dgarciad commentedHi
This is my configuration:
Directory list (absolute path):
D:/xampp/htdocs/observatorios/sites/default/files
Helpers:
PDF:
D:\xampp\htdocs\helpapps\pdftotext.exe %file% -
DOC:
D:\xampp\htdocs\helpapps\catdoc.exe %file%
XLS:
D:\xampp\htdocs\helpapps\xls2csv.exe %file%
PPT:
D:\xampp\htdocs\helpapps\catppt.exe %file%
In the case of PPT, DOC and XLS helper apps, be very careful to avoid using directory names with spaces or longer than 8 characters (i.e ../helperapps/.. instead of ../helpapps/...) because they cause troubles.
Regards
Comment #8
hackia CreditAttribution: hackia commentedIm confused, so i cant just have the helper files on my website directory uder "/drupal/default/files/"helperfile"" and have it find the doc and pdf words in search?
Keep in mind it would not be on the localhost at all but hosted with Dreamhost.
Comment #9
conradio CreditAttribution: conradio commentedHi I wonder if you can help me PLEASE, I installed the search files module under windows what I need to do is be able to search a directory with txt files for a persons name or info in the document and return the results (files) for a person to open, my txt helper is as follows c:\\windows\\system32\\cmd.exe type %file% and my directory C:\xampp\htdocs\dot\sites\all\files the problem is that it is not returning any results.
At the point that it returns results we will have a report viewer that will open with an interpretor and display the reports in PDF.
Please help.
Comment #10
dgarciad CreditAttribution: dgarciad commentedHi
I undestand the settings should be something like this:
Directory list (absolute path):
C:\xampp\htdocs\dot\sites\all\files
Helper apps:
Why are you using "c:\\windows\\system32\\cmd.exe %file%". Shoudn't you use catdoc if you want to search into txt files?
Instead, I would use the following TXT helperapp, (using your actual path):
D:\xampp\htdocs\helpapps\catdoc.exe %file%
The first thing to check is if your helperapp is working. To do so, install catdoc, open a cmd window and type the following command to check if you get back some results (using your actual path).
e.g.
D:\xampp\htdocs\helpapps\catdoc.exe C:\xampp\htdocs\dot\sites\all\files\example.txt
Hope it helps
PD. I am no longer using Search files. I have switched to solr + solr attachement.
Comment #11
dgarciad CreditAttribution: dgarciad commentedHi
I haven't been able to make (catdoc/catppt/catxls) work until I have changed the path using names of eight characters. In the case of pdftotext, as it is a more recent application, it causes no problems.
Regards
Comment #12
livingegg CreditAttribution: livingegg commentedsubscribing
Comment #13
thl CreditAttribution: thl commentedayyurek,
please try 6.x-2.x-beta4, it has been tested on WAMP, see #559414: search_files compatibility with Windows AMP
Also the helper configuration described at #340013: configuring helpers on Windows environment comment #7 works well.
Comment #15
poobalu CreditAttribution: poobalu commentedI installed the search files module and also installed the pdftotext helper application for windows in
C:\xampp\htdocs\helpapps\pdftotext.exe %file%
and the Directory path
C:/xampp/htdocs/websites/epicdev/sites/default/files
but nothing is working for me..
Could anybody please help me to solve this problem. I don't know where I went wrong.
Comment #16
dgarciad CreditAttribution: dgarciad commentedTry adding a '-' after your pdftotext path:
C:\xampp\htdocs\helpapps\pdftotext.exe %file% -
Regards
Comment #17
Lazzo CreditAttribution: Lazzo commentedThanks for the information concerning how to configure windows helpers here.
I've followed your instructions installed the pdftotext helper on my Windows 2003 server. Have also confirmed that its working using windows CMD prompt - the content in any PDF are showing in the CMD window when i enter the pdftotext path and the path to a pdf file.
I've also installed WAMP 2.0,Drupal 6.14 and the module search_files 6.x-1.6 on the server. The module is activated and have been given user rights. (the option "server files" are showing when you search on the site.
Also activated the search_files index function using manually start of cron in drupal admin. The problem is that I got no hits for any content in the PDF files when searching...
To isolate the error I've checked the database - and could see that there exists file data in table search_files_files, full_path = "C: wamp www sites default files/Anstallningsbekr_arb_0.pdf" and index_attemps=1. However the column for searchable content (search_dataset.data) are empty for all records of type file_search.
Configuration
pdf path
C:\wamp\www\helpapps\pdftotext.exe %file% -
Directory path (same as used by attached items)
C:\wamp\www\sites\default\files
Any advices? Is it possible to activate som kind of error log for the search_files index process? Seems like something goes wrong here and the result are empty rows in the search_dataset.data coulmn.
Comment #18
hannanxp CreditAttribution: hannanxp commentedFinaly I found an error in this code:
it should be like this:
focus on this chunk of code : `dataset`.`reindex` = 0
i hope this can help your question.
Thnx.
Comment #19
bahalabs CreditAttribution: bahalabs commentedWow!! Good Job. Its very good solution. The problem is solved now. Thank you...
Comment #20
T-MaK CreditAttribution: T-MaK commentedHi there!
I've tried to configure search_module by following your instructions but no files are indexed.
I really don't understand why...
First I installed search_module 6.x-1.6
Then I download and unpacked xpdf-3.02pl4-win32
I configure module with :
pdf path
C:\wamp\www\website\sites\default\files\pdftotext.exe %file% -
Directory path (same as used by attached items)
C:\wamp\www\website\sites\default\files
Finally I cleared cache & ran cron.
Did I missed something?
Comment #21
hannanxp CreditAttribution: hannanxp commentedNope, just try another helper for windows, i found catdoc is works well both for .doc an .txt.
here my configs:
- .doc
D:/xampp/htdocs/helpapps/catdoc.exe %file%
- .txt
D:/xampp/htdocs/helpapps/catdoc.exe %file%
and note that windows helpers do not compromise file name more than 8 chars long.
if it doesn't work (cause i forgot where is another bugs exactly), you can try my alternate new module at http://drupal.org/node/800664#comment-2980354
finaly, let me know if my module works for you.
thank you.