|
Home > Archive > Commerce Server Catalog > July 2006 > Exact match search
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 |
Exact match search
|
|
| Johnny 2006-07-21, 1:20 am |
| CS2002 FP1
Com+ Interface
I have tried everything I can think of to get the search to do an
'exact phrase' match. Here is my code. For example, say I want
"monster mash".
When m_SearchPhrase is "monster mash", the search does an implicit
'OR'.
When I try "monster and mash", I get no results at all.
I have tried "'monster' and 'mash'", "monster 'and' mash"
Nothing works
Set rs = m_objManager.Search(, _
m_SearchPhrase, _
m_ObjCatalog.CatalogName, _
cscProductClass Or cscProductFamilyClass, _
PROPERTIES_TO_RETURN, _
PROPERTIES_TO_SORT_ON, _
False, _
nStartingRecord, _
m_ProductListPageSize, "en-us", _
t _
)
Thank you for your help.
_john
| |
| Vinayak Tadas[MSFT] 2006-07-21, 1:20 am |
| This is not possible in Commerce Server 2002
This feature was added in Commerce Server 2007
In case you are interested
http://blogs.msdn.com/vinayakt/arch.../18/635896.aspx
Thanks
Vinayak Tadas
Microsoft
http://blogs.msdn.com/vinayakt
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
--------------------
From: "Johnny" <johnnycougarflats@hotmail.com>
Newsgroups: microsoft.public.commerceserver.catalog
Subject: Exact match search
Date: 20 Jul 2006 13:35:59 -0700
Organization: http://groups.google.com
Lines: 28
Message-ID: <1153427758.892366.224430@75g2000cwc.googlegroups.com>
NNTP-Posting-Host: 68.15.44.109
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1153427764 22156 127.0.0.1 (20 Jul 2006
20:36:04 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 20 Jul 2006 20:36:04 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
NET CLR 1.1.4322),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: 75g2000cwc.googlegroups.com; posting-host=68.15.44.109;
posting-account=KQxj-g0AAAC_Ck8nKSIRn7BC8tuPcYzw
Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTFEEDS02.phx.gbl!msrtrans!n
ews-spur1.maxwell.syr.edu!news.maxwell.syr.edu!postnews.google.com!75g2000cw
c.googlegroups.com!not-for-mail
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.commerceserver.catalog:6186
X-Tomcat-NG: microsoft.public.commerceserver.catalog
CS2002 FP1
Com+ Interface
I have tried everything I can think of to get the search to do an
'exact phrase' match. Here is my code. For example, say I want
"monster mash".
When m_SearchPhrase is "monster mash", the search does an implicit
'OR'.
When I try "monster and mash", I get no results at all.
I have tried "'monster' and 'mash'", "monster 'and' mash"
Nothing works
Set rs = m_objManager.Search(, _
m_SearchPhrase, _
m_ObjCatalog.CatalogName, _
cscProductClass Or cscProductFamilyClass, _
PROPERTIES_TO_RETURN, _
PROPERTIES_TO_SORT_ON, _
False, _
nStartingRecord, _
m_ProductListPageSize, "en-us", _
t _
)
Thank you for your help.
_john
|
|
|
|
|