Re: [WebDNA] Search Problem
This WebDNA talk-list message is from 2011
It keeps the original formatting.
numero = 107308
interpreted = N
texte = If you want this to work, just inside the founditems of the search(which sounds like it can be over-inclusive but not under) I'd trysomething like:[founditems][listwords words=3D[region]&delimiter=3D;][showif [word]=3D.com][/showif][/listwords][/founditems]BillOn Thu, Sep 1, 2011 at 3:54 AM, Stuart Tremain
wrote:> Hi Guys> I have a product db that sells different product to different regions.> The db looks something like this> SKU =A0 =A0 =A0PRODUCTNAME =A0 =A0 =A0REGION> 1 =A0 =A0 =A0 =A0 =A0 =A0red =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ==A0 =A0 =A0 =A0 =A0.com;> 2 =A0 =A0 =A0 =A0 =A0 =A0blue =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0.com;.com.au;> 3 =A0 =A0 =A0 =A0 =A0 =A0green =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ==A0 =A0 =A0 =A0.com.au;> 4 =A0 =A0 =A0 =A0 =A0 =A0yellow =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ==A0 =A0 =A0 .co.uk> As you can see I am determining the regions from the HTTP_HOST> -=A0[ListMIMEHeaders name=3DHTTP_HOST][value][/ListMIMEHeaders]> I am having a bit of a problem with the search though> This works OK due to .co.uk> [SEARCH> db=3D^data/celmecproducts.db&woREGIONSdatarq=3D.co.uk®IONword=3Dww®=IONSwbrk=3D;]> But if I use .com the green product also shows ( I should only get red &> blue)> I could do the db in a different format but it would be nice to get this =to> work.> Any ideas ??> Thanks :)> Stuart Tremain> IDFK Web Developments> AUSTRALIA> webdna@idfk.com.au>>>> --------------------------------------------------------- This message is> sent to you because you are subscribed to the mailing list . To unsubscri=be,> E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug> Reporting: support@webdna.us
Associated Messages, from the most recent to the oldest:
If you want this to work, just inside the founditems of the search(which sounds like it can be over-inclusive but not under) I'd trysomething like:[founditems][listwords words=3D[region]&delimiter=3D;][showif [word]=3D.com][/showif][/listwords][/founditems]BillOn Thu, Sep 1, 2011 at 3:54 AM, Stuart Tremain wrote:> Hi Guys> I have a product db that sells different product to different regions.> The db looks something like this> SKU =A0 =A0 =A0PRODUCTNAME =A0 =A0 =A0REGION> 1 =A0 =A0 =A0 =A0 =A0 =A0red =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ==A0 =A0 =A0 =A0 =A0.com;> 2 =A0 =A0 =A0 =A0 =A0 =A0blue =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0.com;.com.au;> 3 =A0 =A0 =A0 =A0 =A0 =A0green =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ==A0 =A0 =A0 =A0.com.au;> 4 =A0 =A0 =A0 =A0 =A0 =A0yellow =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ==A0 =A0 =A0 .co.uk> As you can see I am determining the regions from the HTTP_HOST> -=A0[ListMIMEHeaders name=3DHTTP_HOST][value][/ListMIMEHeaders]> I am having a bit of a problem with the search though> This works OK due to .co.uk> [SEARCH> db=3D^data/celmecproducts.db&woREGIONSdatarq=3D.co.uk®IONword=3Dww®=IONSwbrk=3D;]> But if I use .com the green product also shows ( I should only get red &> blue)> I could do the db in a different format but it would be nice to get this =to> work.> Any ideas ??> Thanks :)> Stuart Tremain> IDFK Web Developments> AUSTRALIA> webdna@idfk.com.au>>>> --------------------------------------------------------- This message is> sent to you because you are subscribed to the mailing list . To unsubscri=be,> E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug> Reporting: support@webdna.us
William DeVaul
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
cannot delete last admin (1999)
Hello??? (1997)
Stopping bad HTML propagation ? (1997)
[WebDNA] Character encoding / entity database? (2009)
different show next (1997)
method of payment (1997)
WebCat2 - [include] tags (1997)
NetSplat and WebCat2 (1997)
Merging databases (1997)
[append] and SSL (1997)
(1997)
passing large amount of text in post form (2005)
Extended [ConvertChars] (1997)
FlushDatabase Suggestion (1998)
FYI: virus alert (1996)
Bug alert! (1997)
Search Engine questions ... (2002)
Web Catalog 2 demo (1997)
killer-format in cart (1998)
[dos] command and [math] (1998)