Interface SearchEngine

All Known Implementing Classes:
AbstractSearchEngine, VSMSearchEngine

public interface SearchEngine
Interface defining the methods for a search engine.
  • Method Summary

    Modifier and Type Method Description
    java.util.Map<java.lang.Integer,​java.lang.Double> search​(FreqVector termFreq)
    Searches from a term frequency vector.
    java.util.Map<java.lang.Integer,​java.lang.Double> search​(java.lang.String query)
    Searches from a query.
  • Method Details

    • search

      java.util.Map<java.lang.Integer,​java.lang.Double> search​(FreqVector termFreq) throws java.io.IOException
      Searches from a term frequency vector.
      Parameters:
      termFreq - the term frequency vector.
      Returns:
      a map containing the results of the search.
      Throws:
      java.io.IOException - if something fails while searching.
    • search

      java.util.Map<java.lang.Integer,​java.lang.Double> search​(java.lang.String query) throws java.io.IOException
      Searches from a query.
      Parameters:
      query - the query.
      Returns:
      a map containing the results of the search.
      Throws:
      java.io.IOException - if something fails while searching.