Links
dtSearch Text Retrieval Engine Programmer's Reference 7.70
IWordListBuilder Interface
dten600.idl | Interfaces | Legend | Members | Methods | Properties | Send Feedback

WordListBuilder provides a way to list words in an index.

Class Hierarchy
[ object, uuid(697DF02C-B24E-11D3-B57C-00105AA461D0), dual, helpstring("IWordListBuilder Interface"), pointer_default(unique) ]
interface IWordListBuilder : IDispatch;
File
Remarks

WordListBuilder is intended for quick enumeration of words. 

Two ways of listing words are provided, one for listing the words before and after a word in an index, and one for listing words that match a search term in an index. 

The scrolling list of indexed words that updates as a user enters a search request in dtSearch Desktop is implemented using WordListBuilder's ListWords method. The "Browse Words" dialog box in dtSearch Desktop that lists words matching an expression is implemented using the ListMatchingWords method. 

For speed, WordListBuilder does not actually enumerate the references for each word and instead relies on counts incrementally stored in the index. Therefore, the reported counts may include artifacts of the indexing process such as reindexed or removed documents, so the counts may be higher than the actual count of references in the index. Compressing an index will remove these extra references.

Group
Methods
Method 
Description 
Close the index that was opened by OpenIndex
Get the text of a word in the word list. 
Get the number of times this word occurs in the index 
Get the number of documents in which this word occurs 
If the dtsWlbListFields flag was set in ListMatchingWords, you can call GetNthWordField to get the field in which a word occurred 
List all fields in the index 
List all field values in the index that match an expression @param field The name of the field to enumerate. @param toMatch Wildcard expression to match in the field. @param nLimit Maximum number of values to obtain.
@return The number of values found. 
List all words in the index that match toMatch, using the specified searchFlags and fuzziness, up to nLimit words. 
Updates the word list with a new cursor word, which is the word in the middle of the list. 
Open the index at IndexPath and return 0 if the index was opened successfully, or non-zero if the index could not be opened. 
Limit results of ListMatchingWords or ListFieldValues to the documents in a SearchFilter 
Sort 
Sort the word list by document count or term  
Properties
Property 
Description 
Number of words in the list 
Legend
 
Property 
 
read only 
 
Method 
Links
You are here: COM Interface > Interfaces > IWordListBuilder Interface
Copyright (c) 1995-2012 dtSearch Corp. All rights reserved.