Stoplists Property

This read-only property specifies a collection of files (IStoplists interfaces) containing words that Search ignores while building a catalog.

Syntax

ISearchSchema.Stoplists

Remarks

If multiple stoplist files are created for different sublanguages of a particular primary language, it is advised that all the files for that primary language be identical, or queries may fail when the query sublanguage does not match the inferred document sublanguage.

Example

The following example displays the stop lists available for all catalogs.

Option Explicit 
On Error Resume Next

Dim objSearchAdmin, objBuildServer, objCatalogs, objCatalog, objSchema, Stoplists, Stoplist

Set objSearchAdmin = CreateObject("Search.SearchAdmin.1")
Set objBuildServer = objSearchAdmin.BuildServer
Set objCatalogs = objBuildServer.BuildCatalogs 

For Each objCatalog in objCatalogs
  Wscript.Echo "Stop lists available For " & objCatalog.Name & " catalog"
  Set objSchema    = objCatalog.objSchema
  Set Stoplists = objSchema.Stoplists
  Wscript.Echo ""
   
  For Each Stoplist in Stoplists
    Wscript.Echo "  " & Stoplist.Name
   Next
  Wscript.Echo ""
Next

'Release objects 
Set Stoplist  = Nothing
Set Stoplists = Nothing 
Set objSchema    = Nothing
Set objCatalog   = Nothing 
Set objCatalogs  = Nothing 
Set objBuildServer  = Nothing 
Set objSearchAdmin  = Nothing 
 

See Also

Columns, IStoplists


© 1997-1998 Microsoft Corporation. All rights reserved.