j***@usmint.treas.gov
2006-11-29 16:37:38 UTC
Right now we are using an out of the box search that is searching with searchTermScope=3, meaning that the following columns are searched:
CATENTDESC.NAME
CATENTDESC.SHORTDESCRIPTION
CATENTDESC.LONGDESCRIPTION
and the results are ordered by CATENTDESC.NAME.
What I would LIKE to do, is to return first the matches from CATENTDESC.NAME then the matches from CATENTDESC.SHORTDESCRIPTION and finally the matches from CATENTDESC.LONGDESCRIPTION. So that if there is a product named "Wilson Soccer Ball" and another product named "Abbott Ball" with a description that includes the text "This is a fine example of a Wilson Soccer Ball" then the product that is named "Wilson Soccer Ball" is still returned first from a search where the search text is "Wilson Soccer Ball".
What is happening now is that the product "Abbott Ball" is returned first, since there is a match in the description ("This is a fine example of a Wilson Soccer Ball") and because they are sorted by product name.
Any ideas?
CATENTDESC.NAME
CATENTDESC.SHORTDESCRIPTION
CATENTDESC.LONGDESCRIPTION
and the results are ordered by CATENTDESC.NAME.
What I would LIKE to do, is to return first the matches from CATENTDESC.NAME then the matches from CATENTDESC.SHORTDESCRIPTION and finally the matches from CATENTDESC.LONGDESCRIPTION. So that if there is a product named "Wilson Soccer Ball" and another product named "Abbott Ball" with a description that includes the text "This is a fine example of a Wilson Soccer Ball" then the product that is named "Wilson Soccer Ball" is still returned first from a search where the search text is "Wilson Soccer Ball".
What is happening now is that the product "Abbott Ball" is returned first, since there is a match in the description ("This is a fine example of a Wilson Soccer Ball") and because they are sorted by product name.
Any ideas?