Closed (fixed)
Project:
Swish-E Indexer
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Oct 2008 at 09:22 UTC
Updated:
26 Nov 2008 at 09:32 UTC
After having installed and configured swish-e and having attached a doc-file to a node I thought that searching for some content of this document would deliver a result. Unfortunately I got no result. Any ideas what wight have gone wrong. By the way: all filter programs have been installed.
And: how can I find out, if swish-e has indexed the content.
P.R.
Comments
Comment #1
squinternata commentedHI,
you have to run your cron if you didn't run yet..and you should check in swish_fulltext table if you have some record about your file.
anyway i have records in table so i think my content has indexed but it doesn't work..
i m working on windows vista and i put in the helpers path the following:
Swish-E Path: c:\\swish-e\\bin\\swish-e.exe
Microsoft Word Filter Path: c:\\swish-e\\bin\\catdoc.exe
PDF Filter Path: c:\\xpdf\\pdftotext.exe
and it doesn't give me any error...so i suppose it's correct.
so someone can help us??
Homo_sapiens could you tell me your OS to understand if could be my OS problem??
thanks
Comment #2
squinternata commentedhi,
i fixed my problem it was a problem relating to my OS, as i imagined.
so if you also are using windows change these code rows below and it will work i hope.
In File: swish.integration.inc
Line 13 find
$file_path = getcwd() .'/' . file_directory_path();
and replace with:
$file_path = getcwd() .'\\' . file_directory_path();
Line 59 find
$swish_indx_cmd .= " -f $file_path/my_swish_index"; // save the index to the files directory
and replace with:
$swish_indx_cmd .= " -f $file_path\my_swish_index"; // save the index to the files directory
Line 60 find
exec (escapeshellcmd($swish_indx_cmd), $results, $rv);
and replace with:
exec ($swish_indx_cmd, $results, $rv);
In File: swish.module
Line 61 find
$swish_index = getcwd() .'/' . file_directory_path().'/'. 'my_swish_index';
and replace with:
$swish_index = getcwd() .'\\' . file_directory_path().'\\'. 'my_swish_index';
Line 78 find
$swish_command = variable_get("swish_path","/usr/local/bin/swish-e") . escapeshellcmd(" -m 50 -f $swish_index -w ").$words;
and replace with:
$swish_command = variable_get("swish_path","/usr/local/bin/swish-e") . " -m 50 -f $swish_index -w ".$words;