Sputnik_Johan

I'm currently working on a project in cs2007 starter site where I need to extend the catalog search.

What I need to accomplish is that when a catalog search has been performed I would like to present a number of filter dropdown-controls based on the searchible properties of the products in the search result, to give the user the ability to filter the search.

It should work like the starter-site browse page but I want the filter controls to be generated based on the search result rather than on the selected category.

What is the best way to tackle the problem

How can I generate the dropdown-controls for the filter based on the search result

Regards, Johan.



Re: Commerce Server 2007 Extending catalog search, best practise?

Colin Bowern

Johan,

It sounds like you are attempting to build a guided search. You may want to check out the HOWTO in the documentation on guided search as a starting point.

Cheers,
Colin





Re: Commerce Server 2007 Extending catalog search, best practise?

Sputnik_Johan

Hello Colin,

Thank you for your answer.

I was thinking about using the guided search for a while, but the problem is that I want the search to be recursive, i.e. searching through all child categories of the selected category. I don't think that the guided search can search recursively.


Regards,
Johan.





Re: Commerce Server 2007 Extending catalog search, best practise?

Colin Bowern

Hi Johan,

Have you tried setting the CategoryName and Recursive properties on the CatalogSearch object That should set the search scope to the level you need.

Cheers,
Colin






Re: Commerce Server 2007 Extending catalog search, best practise?

Sputnik_Johan

Hi,

Yes I'm using the catalog search object to perform the search.

To be able to view the available filter options for the search result I rebuilt the freetextsearch (included in starter site) so that it generates the filter combo boxes that is available.

To do this I took some code from the productfilterdatasource and merged it into the new datasource.

/Johan