Commerce Server General - help with search : by product definition including subcategories

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > March 2004 > help with search : by product definition including subcategories





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author help with search : by product definition including subcategories
drew

2004-03-18, 1:55 pm

I am having trouble using the search objects on a
particular query. I need to be able to search a category
AND it's subcategories by a specific product definition.

I can search a catgory with subcategories using the
Catalog.Category.GetProducts and setting the recursive.

I can do a product definition search by using the
CatalogSearch object and setting the where clause.

I can't find a way to do both in the same method?! Any
ideas would be GREATLY appreciated.

Thanks
Vinayak Tadas [MS]

2004-03-21, 9:34 pm

When you do a Search you can also specify a categoryName
CatalogSearch search ;
search.CatalogNames = "Catalogname";
search.CategoryName = "categoryname"
-- Other code

This will search only the descendants of this category. You can also specify
Recursive or non recursive search

Thanks
Vinayak Tadas
Microsoft

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2002 Microsoft Corporation. All rights
reserved.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Get Secure! For more info visit http://www.microsoft.com/security. Please
reply to the newsgroups only. Thanks


"drew" <anonymous@discussions.microsoft.com> wrote in message
news:d43401c40aa2$9c5fcbc0$a501280a@phx.gbl...
> I am having trouble using the search objects on a
> particular query. I need to be able to search a category
> AND it's subcategories by a specific product definition.
>
> I can search a catgory with subcategories using the
> Catalog.Category.GetProducts and setting the recursive.
>
> I can do a product definition search by using the
> CatalogSearch object and setting the where clause.
>
> I can't find a way to do both in the same method?! Any
> ideas would be GREATLY appreciated.
>
> Thanks



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com