Configuration

JoshuaPowell - April 7, 2008 - 21:03
Project:Search Files
Version:6.x-1.2
Component:User interface
Category:support request
Priority:critical
Assigned:Unassigned
Status:active
Description

I have recently downloaded and installed the Search Files module on Drupal.org. I have successfully installed all 6(3) addons cat, pdftotext, catdoc, xls2csv, catppt, and unrtf. And have successfully opened each kind of file from the command line. I am wondering if you could give any further guidance in regard to the setup of the "Directory" or how these "Helpers" get registered into the module without typing them in by hand into the MySQL database.

Is there any configuration you could provide, or screenshots of the http://search_files.mrcomputer.net/drupal-6.1/ configuration of this.

#1

jrglasgow - April 8, 2008 - 02:15

I added a couple of pages to the documentation on the Search Files test site. If you have any more questions let me know.

#2

jrglasgow - April 10, 2008 - 12:47
Status:active» postponed (maintainer needs more info)

Was this added documentation what you needed?

#3

oliau - April 11, 2008 - 03:38

How and when are files actually added to the search_files_files table in the database? I can not seem to get files in there - which in turn means I can't actually make any use of this module since it won't search the files in this location.

#4

jrglasgow - April 11, 2008 - 05:27

The files are added to the table daily when a Cron run happens, is you don't have cron.php running files won't get added to the table. If you have cron runs happening, and you still don't have files being added to your table, then we have a problem.

#5

oliau - April 11, 2008 - 06:52

I've tried to manually run the cron.php but it's not indexing those files. I guess that means we "have a problem".

I've confirmed that apache can read the files (in fact apache user account owns them now) so I am not sure what else I need to do to get this working.

The error log doesn't really show anything of any use either.

What can I do next?

#6

jrglasgow - April 11, 2008 - 10:06

Does your log list "Cron run completed"?
On the page 'admin/settings/search' what is your setting for 'Number of items to index per cron run:'?
When you run cron manually is it completing, or is it timing out?
Can you check the database manually, to see if there are any rows in the 'search_files_files' table?

I have added some more log entries when adding files into 'search_files_files' table in the latest Release 6.x-1.4 It will log what directory it is listing files from, then when it is finished with that directory it will tell you how many files had been added to the 'search_files_files' table.

If you could also tell me what Operating System you are using, PHP version, MySQL Version. I would also like to know the full path os the directory as listed on 'admin/settings/search_files/directories'.

I want to help you, this is my first project of my own and I want it to be a success. I will be able to help you for the net 18 hours or so, but then I am leaving town and I don't know if I will be of much for the next week. If we don't get it working before I leave, please be patient.

#7

JoshuaPowell - April 11, 2008 - 21:17

This is exactly what I needed, thank you for being so prompt. Works great.

#8

oliau - April 14, 2008 - 01:47

Firstly: I just updated the module to the latest version you've provided, then ran the update.php script, re-indexed the site, ran the cronjob and then it started working.

I had this module setup to use pdftotext to scan a single directory named "pdfs" in the root of my drupal directory.

Secondly, I wanted to change this configuration so that it would search the following directory "sites/default/files". I did this so that I could allow users to upload pdfs attached to nodes which would then be indexed by this module.

I changed the module configuration to reflect these new settings then (as instructed) cleaned up the two tables with phpMyAdmin after adjusting the module's settings. After re-indexing the site my "search_files_files" table is now completely empty and I can't seem to get the module to scan this document at all now.

To answer your questions "Cron run completed" is shown on the log page after I run it. I've tried all the different numbers of items to index per cron run. Cron run is not timing out, it is running completely. I have checked the database manually and it is not filling the "search_files_files" table at all.

I am using Centos 4.4 with PHP 5.1.6 and MySQL 5.0.27. The full path being searched is:
/home/web.domainname.org/public_html/loco2/sites/default/files

Any more help is appreciated! Thanks in advance.

#9

jrglasgow - April 21, 2008 - 17:04

When you changed the directory you are indexing did you remove the directory, and add another one in the settings, or did you just edit the current settings. My goal with Search Files is to allow you to index multiple directories.

Deleting a directory from the list should remove all reference to the directory in the tables including the search_dataset table.

After you add a directory to be searched it will take up to a day to start indexing, this needs to be fixed in the next version.

Now that I am back from vacation I will be more available to help you with your problems.

#10

Richhh - April 22, 2008 - 12:42

When i access the search settings page i get the following error

user warning: Table 'drupaldb.search_files_files' doesn't exist query: SELECT COUNT(*) as `count` FROM search_files_files in C:\Inetpub\wwwroot\drupal\sites\all\modules\search_files\search_files.module on line 754.

user warning: Table 'drupaldb.search_files_files' doesn't exist query: SELECT COUNT(*) AS `count` FROM search_files_files LEFT JOIN ( SELECT * FROM search_dataset WHERE `type` = 'search_files' ) AS `dataset` ON search_files_files.`id` = `dataset`.`sid` WHERE ( `dataset`.`reindex` IS NULL OR `dataset`.`reindex` != 0 ) in C:\Inetpub\wwwroot\drupal\sites\all\modules\search_files\search_files.module on line 775.

It seems the database table is not created ??? Please help me out, this is just what i am looking for

#11

jrglasgow - April 22, 2008 - 15:43

Richhh, could you please add a new issue for this problem. I will be more than happy to help you with problems, but we need to have a separate issue for each problem. You can click here to create an issue

#12

RamMohanSakhamuri - July 29, 2008 - 10:55

These above 2 links are not opening, please tell me how to configure this Search Files Module

Thanks,
RaamU

#13

RamMohanSakhamuri - July 31, 2008 - 04:41

Hi ,

I'm unable to store the data into search_files_files table, though i've ran cron successfuly and also indexed. here i created index10.
can u please guide us- How to give directory path and inserting values into search_files_files table.

please check the following attachments for my attached files and all...

Thanks in advance,
RaamU

AttachmentSize
1.jpg 137.78 KB
2.jpg 143.5 KB
3.jpg 214.58 KB

#14

squinternata - October 23, 2008 - 09:56

i have the same problem..nothing in the search_file_files_table how to configure the path??and where i have to put pdftotext.exe??
thank you

#15

squinternata - November 4, 2008 - 09:29
Priority:normal» critical
Status:postponed (maintainer needs more info)» active

someone can tell me how to configurate in correct way the helper file?cause it does'nt find anything when i search but the files are indexed...
thank you

#16

com2 - December 17, 2008 - 19:39

Link to documentation on http://search_files.mrcomputer.net/drupal-6.1/node/2 is broken

#17

Tamil - April 10, 2009 - 10:26

did u find soln for this

#18

Tamil - May 15, 2009 - 11:18

someone can tell me how to configurate in correct way the helper file?cause it does'nt find anything when i search.

#19

jadowd - May 20, 2009 - 23:12

I do not see where the CRON hook is implemented in this module. Is it possible that this is missing? Maybe there is an include file that is missing from the build? this module is not being run from CRON! Is there a manual command that can be called?

Thanks,

#20

jrglasgow - May 21, 2009 - 17:54

from http://api.drupal.org/api/function/hook_update_index/6

Update Drupal's full-text index for this module.

Modules can implement this hook if they want to use the full-text indexing mechanism in Drupal.

This hook is called every cron run if search.module is enabled. A module should check which of its items were modified or added since the last run. It is advised that you implement a throttling mechanism which indexes at most 'search_cron_limit' items per run (see example below).

You should also be aware that indexing may take too long and be aborted if there is a PHP time limit. That's why you should update your internal bookkeeping multiple times per run, preferably after every item that is indexed.

Per item that needs to be indexed, you should call search_index() with its content as a single HTML string. The search indexer will analyse the HTML and use it to assign higher weights to important words (such as titles). It will also check for links that point to nodes, and use them to boost the ranking of the target nodes.

#21

Moophz - October 26, 2009 - 07:04

Hello, i also have the same problem.
Cron run successfully, Indexing done 100%, Files uploaded

But still have the table empty and search unable to find any result in search server files.

OS : UBUNTU 8

Thank you

 
 

Drupal is a registered trademark of Dries Buytaert.