dtSearch Text Retrieval Engine -- Java API
SearchFilter Class Members
SearchFilter Class | Legend
Members
Methods
Method 
Description 
Add an index to the filter, returning an integer that can be used to identify the index in the selection functions. 
and 
Combine this filter with another filter in a logical "AND" operation. Only documents included in both filters will be included in this filter following an AND. 
Combine this filter with another filter in a logical "AND NOT" operation. Only documents NOT included in the other filter will be included in this filter following an AND. 
Free memory allocated for the filter 
Compare two filters for equality 
Get number of indexes in this filter 
Get index path for an index in this filter 
Get doc ids of documents in this filter 
or 
Combine this filter with another filter in a logical "OR" operation. All documents included in either filter will be included in this filter following an OR. 
read 
Read the search filter from a disk file. Returns 0 if the file was read successfully, or non-zero if an error occurred. 
Read a series of search filters from disk files. The filenames list is a single string containing a list of quoted filenames. Returns the number of search filters read successfully. All of the search filters are logically combined with an "OR" operation. 
Select all of the documents in the index. 
Set the selection state of a range of document ids, from firstId to lastId, to the selection state indicated by fSelected. 
Set the selection state of all documents in an index that match search request. Returns the number of documents that matched the search, or a negative value if the search failed. The searchRequest can contain File Conditions (such as filename or date searches) in addition to text searches. 
Select no documents in the index. By default, no documents are selected when a search filter is created, so there is no need to call selectNone to initialize the filter. 
Save the search filter to a disk file. Returns 0 if the file was created successfully, or non-zero if an error occurred. 
You are here: Classes > SearchFilter Class
Copyright (c) 1998-2008 dtSearch Corp. All rights reserved.