PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   Indexing "<word>-<word>"? (http://www.phpdig.net/forum/showthread.php?t=1788)

Charter 02-23-2005 12:53 AM

I'm using v.1.8.7 when testing with you.

djavet 02-23-2005 01:38 AM

:confused: heuuu, I just download a fresh version and reinstall the whole thing, always the same thing...

May I ask you to send me a zip file with your 1.8.7 version? So I can reinstall with your working version to compare with mine?

A lot of thx for your help.
Kindest regards, Dominique

Charter 02-23-2005 02:15 AM

No need, you have what I have. I don't understand why removing the dash works for FaberFedor but not for you. :confused:

djavet 02-23-2005 09:01 PM

Me too I don't understand.
It is possible that you use a feature from PHP and not my host?
-> http://www.john-howe.com/phpinfo.php


Regards, Dom

Charter 02-26-2005 07:29 PM

I don't think PHP is an issue. When I get a chance, I'll do another fresh install of PhpDig v.1.8.7 and see how it works.

djavet 02-27-2005 03:12 AM

Humm I come back for this "-" case. I install Phpdig 1.8.7 localy with the package Easyphp 1.7 (http://www.easyphp.org/). Always the same....
I can't understand wha'ts happend!

Any info, tricks, same experience?

Regards, Dom

Charter 02-27-2005 10:51 PM

Okay, so I did a fresh install of PhpDig v.1.8.7 and the only change I made to the package was this:

In robot_functions.php find the phpdigCleanHtml function, and in this function find:
Code:

//replace foo characters by space
$text = eregi_replace("[*{}()\"\r\n\t-]+"," ",$text);

And replace that with the following:
Code:

//replace foo characters by space
$text = eregi_replace("[*{}()\"\r\n\t]+"," ",$text);

I then indexed http://www.john-howe.com/portfolio/gallery/details.php?image_id=76 from the admin panel textbox and afterwards did a search on ISBN and 0-26-110318-0 with the following search results being shown:

Results 1-1, 1 total, on "ISBN" (0.01 seconds)

1. [100.00 %] :// John Howe :: Illustrator [ Portfolio ] From Hobbiton to Mordor / Gandalf Before the Walls of Minas Tirith
limit to http://www.john-howe.com/, this path : portfolio/gallery/

...994 The Map of Tolkien's Middle-Earth Brian SIBLEY HarperCollinsPublishers ISBN - 0-26-110318-0 September 2, 1994 R****m House Audio: The Two Towers -...


Results 1-1, 1 total, on "0-26-110318-0" (0.01 seconds)

1. [100.00 %] :// John Howe :: Illustrator [ Portfolio ] From Hobbiton to Mordor / Gandalf Before the Walls of Minas Tirith
limit to http://www.john-howe.com/, this path : portfolio/gallery/

... Map of Tolkien's Middle-Earth Brian SIBLEY HarperCollinsPublishers ISBN - 0-26-110318-0 September 2, 1994 R****m House Audio: The Two Towers - CD fro...

Now the PHP eregi_replace function has been around for a while, so I don't think that the issue has anything to do with PHP, and because with the above change, I can get "0-26-110318-0" in the search results, I don't think it's a PhpDig issue either. Maybe it's a permissions issue, but without further information, I cannot be sure why you are having an issue with dashes.

djavet 02-27-2005 11:03 PM

Hello Charter,

I can't see your reply. It's empty...
It's a new feature? :)
Last week I can see your post, but no more now. Do change something into the forum?

I will paid in the future, but I don't like the way you force for the knowlege.
Why do you have change this?
I've planed to make a donation when I finish the site search with a working script.

Regards, Dom

Admin Edit: See http://www.phpdig.net/forum/showthread.php?t=1745

djavet 02-28-2005 03:35 AM

Thx a lot.
I've found a little bug for my case (Phpdig 1.8.7) :banana: .

Find in robot_functions.php, line 190:
Code:

//replace foo characters by space
$text = eregi_replace("[*{}()\"\r\n\t-]+"," ",$text);

and replace with (without "-"):
Code:

//replace foo characters by space
$text = eregi_replace("[*{}()\"\r\n\t-]+"," ",$text);

And the working case:
http://www.john-howe.com/search/...&query_string=barad-d%FBr

A lot of thx for yoru help and time.
Regards, Dom


All times are GMT -8. The time now is 11:21 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.