Close
dtSearch Engine API for Java
SearchJob.clear Method

Free memory allocated for SearchResults and the SearchFilter attached to this SearchJob.

Syntax
Java
public void clear();

Use clear() after you are done working with a SearchJob to immediately free memory that was allocated for any SearchResults or SearchFilter objects that are stored in the SearchJob

 

This does not affect other SearchResults or SearchFilter objects even if they were obtained from this SearchJob. The clear() method should be called separately for any SearchResults or SearchFilter objects that you obtained from this SearchJob (for example, by calling getResults() or getFilter()