Interface WebSearchEngine

  • All Implemented Interfaces:

    
    public interface WebSearchEngine
    
                        

    Represents a web search engine that can be used to perform searches on the Web in response to a user query.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      WebSearchResults search(String query) Performs a search query on the web search engine and returns the search results.
      abstract WebSearchResults search(WebSearchRequest webSearchRequest) Performs a search request on the web search engine and returns the search results.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • search

         WebSearchResults search(String query)

        Performs a search query on the web search engine and returns the search results.

        Parameters:
        query - the search query
        Returns:

        the search results

      • search

         abstract WebSearchResults search(WebSearchRequest webSearchRequest)

        Performs a search request on the web search engine and returns the search results.

        Parameters:
        webSearchRequest - the search request
        Returns:

        the web search results