Commerce Server General - Search help

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > August 2005 > Search help





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 Search help
darkomi

2005-08-11, 8:48 pm

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

Vinayak Tadas[MSFT]

2005-08-12, 5:57 pm

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+NYq0GtQkmx6ON4KNtc52VitT
KsQsvoVzuTMXB86xGsYMz77ricFgknQU
y0n0rd1!gBwxh6xS0mUuFM6cm3+iPpZsKcsT175L
YGlDadFH8WHCzirGtDohUceO7cp+
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


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com