Making a field non-searchable?? |
Post Reply | Page <1 234 |
Author | |
njessen42
Groupie Joined: 12-November-2007 Location: Spokane, WA Status: Offline Points: 0 |
Post Options
Thanks(0)
|
Well I am sure you guys can figure out what is wrong with the link above, how about this.
http://shop.rings-things.com/cart/pc/viewCategories.asp |
|
njessen42
Groupie Joined: 12-November-2007 Location: Spokane, WA Status: Offline Points: 0 |
Post Options
Thanks(0)
|
I think its the products.details. The field in my dbo.products table that I don't want searchable is details. This might help a ton, thanks a bunch.
Here is our site with over 18,000 products if you want to check it out, any suggestions would also be helpful. http://https://shop.rings-things.com/cart/pc/viewCategories.asp |
|
Hamish
Admin Group Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
Post Options
Thanks(0)
|
If your happy to do this yourself that's great - please post the definitive answer here - just in case others wish to do so.
Actually - I think the best line to comment out is a touch further down - strSQL=strSQL & " OR " & tmpSQL2 Line 475 in my copy. Or perhaps the line above that one. I'll have to look elsewhere to confirm which one. - Or you could just try it & see :-) |
|
Hamish
Admin Group Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
Post Options
Thanks(0)
|
Yep - No problem - Look for code like :
tmpSQL="(products.details LIKE " tmpSQL2="(products.description LIKE " tmpSQL3="(products.sDesc LIKE " It occurs a few times & I don't recall off the top of my head which one you need to knock out - I would think it's products.description. |
|
njessen42
Groupie Joined: 12-November-2007 Location: Spokane, WA Status: Offline Points: 0 |
Post Options
Thanks(0)
|
That is exactly what I want to do Hammish. Hide the long description from the built in search. We of course still want customers to still see it and google to index it. So the file to edit would be the SearchResults.asp. Thank you very much.
|
|
Hamish
Admin Group Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
Post Options
Thanks(0)
|
Hi,
I just re-read your post - I think I misunderstood it last time. Do you just wish to "hide" the long description field from the built in search facility? If so a mildly customized version of SearchResults.asp will be needed to drop that field. It won't stop Google etc from finding & indexing that text - or customers from copying the words etc though of course. |
|
njessen42
Groupie Joined: 12-November-2007 Location: Spokane, WA Status: Offline Points: 0 |
Post Options
Thanks(0)
|
Is there a way to make the [Details]/long description field non-searchable? We use this field for a lot of information and want to make sure customers aren't grabbing KW's out of it.
|
|
Post Reply | Page <1 234 |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |