You are here: Symbol Reference > dtSearch.Engine Namespace > Classes > WordListBuilder Class > WordListBuilder Methods > SetFilter Method
Close
dtSearch .NET Standard API 2024.02
WordListBuilder.SetFilter Method

Limit results of ListMatchingWords or ListFieldValues to the documents in a SearchFilter

public void SetFilter( SearchFilter searchFilter );

ListWords is not affected by SetFilter. Only ListMatchingWords and ListFieldValues limit their results to the items in the filter. 

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-2023 dtSearch Corp. All rights reserved.