| adam23 2006-02-08, 5:54 pm |
| I have a catalog that contains books. Each book can have multiple authors so
I had to create an author table and a table that links CatalogProducts with
Author. Does anyone have a suggestions on how searching by author should be
implimented while using Commerce Server catalog search. I currently have it
set up to first query the author with a list of all the ProductIDs by the
particuliar author. I then modify the SQLWhereClause of the CatalogSearch
object by looping through the list of ProductIDs and concatenating each
ProductID to the clause similiar to
ProductID = 'A' or
ProductID = 'B' or
ProductID = 'C' or
This works until until an author has too many books and the sql string gets
too complex. The only thing I can think of is to join the 3 tables which
means I can't use CatalogSearch. Anyone have any other suggestions?
|