See Also
dtSearch Text Retrieval Engine -- .NET API (.NET 2.0-4.0) 7.70
SearchFilter::SelectItemsBySearch Method

Set the selection state of all documents in an index that match search request.

C#
public long SelectItemsBySearch(long whichIndex, ref String searchRequest, bool isSelected);
Visual Basic
Public Function SelectItemsBySearch(whichIndex As long, ByRef searchRequest As String, isSelected As bool) As long
Parameters
Parameters 
Description 
whichIndex 
Integer identifying the index in this SearchFilter (obtained from AddIndex
searchRequest 
Search request to select documents 
isSelected 
Selection state to assign to documents  
Remarks

You can also use SearchJob.WantResultsAsFilter to create a SearchFilter from the results of a search. Using SearchJob.WantResultsAsFilter is more flexible than SelectItemsBySearch because you can use any of the properties of the SearchJob (search flags, FileConditions, etc.) rather than just a simple search request.

See Also
You are here: dtSearch::Engine Namespace > SearchFilter Class > SearchFilter Methods > SelectItemsBySearch Method
Copyright (c) 1998-2012 dtSearch Corp. All rights reserved.