View Full Version : Limit search to this path returns no results

05-23-2005, 12:23 PM
Congrats on this wonderful application. It took quite a bit of work to get it fully configured, and working with external binaries to scan other doc types, but it is a dream once it is working properly.

In testing the search capabilities, I came across this 'bug'. It appears there is a problem with spaces in an address. The function works for most of the links, but paths with spaces in them return 0 results. Considering I am clicking on an actual results, you would think at least it would be returned.

This returns 0 results:

"limit search to this path : www/training/docs/training/Module 21 ver2.0/"


This returns results:

"limit search to this path : docs/implementation/Security/"



05-26-2005, 09:23 AM
Try the following and let me know if it worked...

In search_function.php find:

if (($path) && (strlen($path) > 0)) {
$wherepath = "AND spider.path like '$my_path' ";

And replace with:

if (($path) && (strlen($path) > 0)) {
$my_path = str_replace(" ","\%20",$my_path);
$wherepath = "AND spider.path like '$my_path' ";

05-30-2005, 10:24 PM
That seemed to do the trick. :)

Thank you for that.