You are here: Symbol Reference > dtSearch.Engine Namespace > WordListBuilder Class > WordListBuilder Methods > ListFieldValues Method
dtSearch .NET Standard API 2021.02
WordListBuilder.ListFieldValues Method

List all field values in the index that match an expression

public int ListFieldValues( string Field, string toMatch, int nLimit );
The expression to match
Maximum number of words to find
The field to enumerate (the field must have been designated as an EnumerableField when the index was built)

Number of words found.

A SearchFilter can be used with ListFieldValues to limit the results to values in a set of documents. Use SetFilter to attach a SearchFilter to the WordListBuilder

When a SearchFilter is used, all counts returned by WordListBuilder are document counts. For example, if a word occurs 20 times in 7 documents, the count returned will be 7 for both GetNthWordCount and GetNthWordDocCount.

Copyright (c) 1998-2022 dtSearch Corp. All rights reserved.