Class SearchInvoker

    • Constructor Detail

      • SearchInvoker

        protected SearchInvoker​(Optional<Node> node)
    • Method Detail

      • search

        public Result search​(Query query,
                             Execution execution)
                      throws IOException
        Retrieve the hits for the given Query. If the search is run on multiple content nodes, the provided Execution may be used to retrieve document summaries required for correct result windowing.
        Throws:
        IOException
      • sendSearchRequest

        protected abstract Object sendSearchRequest​(Query query,
                                                    Object context)
                                             throws IOException
        Parameters:
        query - the query to send
        context - a context object that can be used to pass context among different invokers, e.g for reuse of preserialized data.
        Returns:
        an object that can be passed to the next invocation of sendSearchRequest
        Throws:
        IOException
      • responseAvailable

        protected void responseAvailable()