Class Search

java.lang.Object
com.logicaldoc.core.searchengine.Search
Direct Known Subclasses:
FolderSearch, FulltextSearch, TagSearch

public abstract class Search extends Object
This class executes a search against the full-text indexes
Author:
Michael Scholz
  • Method Details

    • get

      public static Search get(SearchOptions opt)
    • newOptions

      public static SearchOptions newOptions(int type)
    • search

      public final List<Hit> search() throws SearchException
      Perform the search
      Returns:
      The list of hits
      Throws:
      SearchException - raised in case of error during the search
    • getHits

      public List<Hit> getHits()
    • isMoreHitsPresent

      public boolean isMoreHitsPresent()
    • setMoreHitsPresent

      public void setMoreHitsPresent(boolean moreHitsPresent)
    • getEstimatedHitsNumber

      public long getEstimatedHitsNumber()
    • getExecTime

      public long getExecTime()
      Query execution time in milliseconds
      Returns:
      the execution time expressed in milliseconds
    • getOptions

      public SearchOptions getOptions()
    • setOptions

      public void setOptions(SearchOptions options)