Search help
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Search help

 
Post new topic   Reply to topic    Windows Server Forum Index -> Commerce Server
Author Message
darkomi
Guest





Posted: Fri Aug 12, 2005 12:51 am    Post subject: Search help Reply with quote

I need to find strings with an especial characters like á é í ó ú i
usin

CatalogSearch catalogSearch = new CatalogSearch()
CatalogSearchOptions searchOptions = new CatalogSearchOptions()
searchOptions.ClassTypes = CatalogClassTypes.ProductClass
CatalogClassTypes.ProductFamilyClass
CatalogClassTypes.ProductFamilyForVariantsClass

string[] propiedades = new string[]

"ProductID",
"AlbumName",
}

searchOptions.PropertiesToReturnArray = propiedades
catalogSearch.SearchOptions = searchOptions
catalogSearch.CatalogNames = "cat"

if (upc!=null && upc!=""

catalogSearch.FreeTextSearchPhrase = upc
specificProductSearch = true

els

if (s.Length==1
s = s + "*"
catalogSearch.FreeTextSearchPhrase = s



anybody have any idea how can i find those special character

if a type union i must find unión and vicevers
Back to top
Vinayak Tadas[MSFT]
Guest





Posted: Fri Aug 12, 2005 8:52 pm    Post subject: RE: Search help Reply with quote

The Catalogsystem uses the sql fulltext search engine to perform freetext
searches.
I am not sure but you can try using an appropriate wordbreaker for your
catalog.
Try posting this question to the sql server newsgroup.

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


--------------------
NNTP-Posting-Date: Thu, 11 Aug 2005 19:43:04 -0500
Subject: Search help
From: darkomi@hotmail-dot-com.no-spam.invalid (darkomi)
Newsgroups: microsoft.public.commerceserver.general
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
User-Agent: newsSync (Commerce Server) 6557
Message-ID: <EuKdnWI_Sp8EbWbfRVn_vQ@giganews.com>
Date: Thu, 11 Aug 2005 19:43:05 -0500
Lines: 1
X-Trace:
sv3-Zpr2f5jENBRTSl0+NYq0GtQkmx6ON4KNtc52VitTKsQsvoVzuTMXB86xGsYMz77ricFgknQU
y0n0rd1!gBwxh6xS0mUuFM6cm3+iPpZsKcsT175LYGlDadFH8WHCzirGtDohUceO7cp+
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
complaint properly
X-Postfilter: 1.3.32
Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTFEED02.phx.gbl!tornado.fastwebnet.it!tiscali!ne
wsfeed1.ip.tiscali.net!news.maxwell.syr.edu!newscon02.news.prodigy.com!prodi
gy.net!nx01.iad01.newshosting.com!newshosting.com!216.196.98.140.MISMATCH!bo
rder1.nntp.dca.giganews.com!local01.nntp.dca.giganews.com!news.giganews.com.
POSTED!not-for-mail
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.commerceserver.general:3181
X-Tomcat-NG: microsoft.public.commerceserver.general

I need to find strings with an especial characters like á é í ó ú im
using

CatalogSearch catalogSearch = new CatalogSearch();
CatalogSearchOptions searchOptions = new CatalogSearchOptions();
searchOptions.ClassTypes = CatalogClassTypes.ProductClass |
CatalogClassTypes.ProductFamilyClass |
CatalogClassTypes.ProductFamilyForVariantsClass;

string[] propiedades = new string[]
{
"ProductID",
"AlbumName",
};

searchOptions.PropertiesToReturnArray = propiedades;
catalogSearch.SearchOptions = searchOptions;
catalogSearch.CatalogNames = "cat";

if (upc!=null && upc!="")
{
catalogSearch.FreeTextSearchPhrase = upc;
specificProductSearch = true;
}
else
{
if (s.Length==1)
s = s + "*";
catalogSearch.FreeTextSearchPhrase = s;

}

anybody have any idea how can i find those special characters

if a type union i must find unión and viceversa
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Commerce Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB