There is a Windows version of the Swish-e indexer available. Would it be possible to get windows support into this module? I notice all the paths to executables are hardcoded, would changing these to windows paths still work?

How about doing some PHP platform autodetection magic? and having the swish-e files under the module directory this would allow some full cross-platform stuff to happen.

Thanks
Adam

p.s. Asking my company to switch to a unix variant would be the equivalent of me trying to straighten the leaning tower of pisa by hand.

CommentFileSizeAuthor
#2 swish_2.module11.86 KBcpotter
#1 swish_0.module11.75 KBcooperaj

Comments

cooperaj’s picture

StatusFileSize
new11.75 KB

Ok so the paths weren't hard coded. I'd looked at the code before even loading the module and read it wrong. :-/.

But I have had to change the code a fair bit to get it to work on windows. I've had to replace a lot of the paths with double backslashes '\\' and remove all the 'escapeshellcommand' calls as these remove all the slashes on windows.

I've also added ppt parsing support and changed the format of the config file creation code so that I can use different programs (xlhtml, rtf2txt).

Attached is the version as it stands. I can't seem to get .doc parsing to work, catdoc does not run as it cannot seem to find it charset files. But other then that I have ppt, xls, rtf, and pdf support.

cpotter’s picture

Assigned: Unassigned » cpotter
Category: feature » bug
Status: Active » Needs review
StatusFileSize
new11.86 KB

Had to make other changes to your file. This is for people like me that have Drupal in a directory with spaces ie "C:\Program files\...."

Indexing works and create the "my_swish_index" and "my_swish_index.prop" files.

However after indexing the files, when I do a search, i have no results

regards,
christopher

cooperaj’s picture

If everyones happy I'm going to close this issue and call it a day. It's for a very old unsupported Drupal version and the changes made were very platform specific.

I'll check back in a week or so and close it then.

cooperaj’s picture

Status: Needs review » Closed (won't fix)

There's been no movement on this marking as won't fix.