Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Other Technologies / Full-Text Search / November 2008

Tip: Looking for answers? Try searching our database.

Hit Highlighting/Snippeting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
superware - 13 Oct 2008 12:24 GMT
Hello,

I'm trying to use SQL Server 2008 Express to index large quantities of
documents, it seems to work very well.

My problem started when I tried to use the same word-breaker used by
SQL Server in order to highlight the search terms from C#. With SQL
Server 2005 I simply used the same word-breaker found in the Binn
folder, which implemented IWordBreaker, but with 2008 it seems to use
NaturalLanguage6.dll (and NlsData*.dll, NlsLexicons*.dll) but this one
doesn't implement any interface that I know. So... can someone please
help me? how can I word-break from C#?

Thanks,
Superware
Michael Coles - 15 Oct 2008 19:45 GMT
All word breakers implement the IWordBreaker interface:
http://msdn.microsoft.com/en-us/library/ms691079(VS.85).aspx.  I don't know
if there are any .NET wrappers available for these, they're COM components,
so you may have to create your own COM interop wrappers.

> Hello,
>
[quoted text clipped - 11 lines]
> Thanks,
> Superware
superware - 20 Oct 2008 23:22 GMT
Are you sure about this? I know word-breakers supplied by/for SQL
Server 2005 implemented IWordBreaker. It seems NaturalLanguage6.dll
doesn't but rather implement ILexicon, ITextContext ITextChunk, ect...
any ideas?

On Oct 15, 8:45 pm, "Michael Coles" <michaelcoAToptonlineDOTnet>
wrote:
> All word breakers implement the IWordBreaker interface:http://msdn.microsoft.com/en-us/library/ms691079(VS.85).aspx.  I don't know
> if there are any .NET wrappers available for these, they're COM components,
> so you may have to create your own COM interop wrappers.
Michael Coles - 25 Nov 2008 04:26 GMT
I'm not familiar with the ILexicon, ... interfaces.  I have written word
breakers for SQL Server 2008 using the documented IWordBreaker.  I also have
heard that some folks have written .NET word breakers, though I haven't
written any in .NET myself.  You should be able to create wrappers around
IWordBreaker without too much trouble, but I think the main issue would be
performance...

Signature

========
Michael Coles
"Pro T-SQL 2008 Programmer's Guide"
http://www.amazon.com/T-SQL-2008-Programmer-rsquo-Guide/dp/143021001X

Are you sure about this? I know word-breakers supplied by/for SQL
Server 2005 implemented IWordBreaker. It seems NaturalLanguage6.dll
doesn't but rather implement ILexicon, ITextContext ITextChunk, ect...
any ideas?

On Oct 15, 8:45 pm, "Michael Coles" <michaelcoAToptonlineDOTnet>
wrote:
> All word breakers implement the IWordBreaker
> interface:http://msdn.microsoft.com/en-us/library/ms691079(VS.85).aspx. I
> don't know
> if there are any .NET wrappers available for these, they're COM
> components,
> so you may have to create your own COM interop wrappers.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.