Hi David,
I thinking of testing price tapestry as websearch i know it was not designed for this purpose but i have cgi script which is for this purpose but i have over 3.4 million links but the cgi software is so slow and i have 2.8 million products in the price tapestry database price tapestry code is so quick returning searches i was going to try and import the web links I think i will have to disable something some where so it will not check if the price or image is present am I correct in thinking this.
would price tapestry also read the dmoz rdf dump and inport links?
all the best
Darren
PS Just another mad idea?
Hi Darren,
To remove the required field check, you just need to make 2 changes to includes/admin.php Firstly, starting at line 22 you will find the following code:
if (!$fieldName)
{
return "fieldName missing";
}
if (!$fieldBuyURL)
{
return "fieldBuyURL missing";
}
if (!$fieldPrice)
{
return "fieldPrice missing";
}
Simply comment out or delete this block to remove checking for the required fields during registration. Similarly, the following code starting at line 153 performs the same check when importing each individual product:
/* check product record for minimum required fields */
if (!$record[$admin_importFeed["field_name"]] || !$record[$admin_importFeed["field_buy_url"]] || !$record[$admin_importFeed["field_price"]]) return;
Again, just comment out or delete that code and you will then be able to import "products" without the required fields. With regards to the handling the feed - I think you might be able to obtain the DMOZ database in chunks, which would certainly make life easier. Either way, I wouldn't want to wait for the auto-detection to take place when registering the feed, so I would study the XML format and then register the feed manually using the command line script register.php:
http://www.pricetapestry.com/node/8
Alternatively, if you can get hold of a very small sample, then you could register that via auto-detection, and then replace it with the main feed afterwards. Again though, I would recommend importing via the command line script import.php so that you can monitor progress.
I am sure you will appreciate that this is way outside the intended purpose of the script so I will be very limited to as to what help I can provide through the forum if you try to do this, but this should get you off in the right direction!
Cheers,
David.