dtsWordListBuilder provides a way to list words, field names, or field values in an index.
File: dts_wlb.h
Method |
Description |
---|---|
Close the currently-open index | |
Create a dtsWordListBuilder | |
Returns the number of items in the list | |
Get the name of the field a word occurs in. | |
Returns WordListBuilderFlags with the options currently in effect. | |
Returns zero if the last operation succeeded, or an ErrorCodes value if the last operation failed | |
Get the text of one word in the list | |
Get the text of one word in the list | |
List all values of an enumerable field. | |
List all fields in the index | |
List all words matching an expression | |
List aRange words around cursorWord in the index. | |
Open an index | |
Set option settings for the WordListBuilder using WordListBuilderFlags | |
Use a search filter (dtsSearchFilter) to limit the items that can be returned from listMatchingWords or listFieldValues. | |
Sort words in the WordListBuilder |
Method |
Description |
---|---|
Close the currently-open index | |
Create a dtsWordListBuilder | |
Returns the number of items in the list | |
Get the name of the field a word occurs in. | |
Returns WordListBuilderFlags with the options currently in effect. | |
Returns zero if the last operation succeeded, or an ErrorCodes value if the last operation failed | |
Get the text of one word in the list | |
Get the text of one word in the list | |
List all values of an enumerable field. | |
List all fields in the index | |
List all words matching an expression | |
List aRange words around cursorWord in the index. | |
Open an index | |
Set option settings for the WordListBuilder using WordListBuilderFlags | |
Use a search filter (dtsSearchFilter) to limit the items that can be returned from listMatchingWords or listFieldValues. | |
Sort words in the WordListBuilder |
dtsWordListBuilder is intended for quick enumeration of words, field names, or field values in an index.
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.
Listing of field values only lists values of fields that were designated as EnumerableFields when the documents were indexed.
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.