Package com.yahoo.search.handler
Class SearchHandler
java.lang.Object
com.yahoo.jdisc.AbstractResource
com.yahoo.jdisc.handler.AbstractRequestHandler
com.yahoo.container.jdisc.ThreadedRequestHandler
com.yahoo.container.jdisc.ThreadedHttpRequestHandler
com.yahoo.container.jdisc.LoggingRequestHandler
com.yahoo.search.handler.SearchHandler
- All Implemented Interfaces:
com.yahoo.container.jdisc.HttpRequestHandler,com.yahoo.jdisc.handler.RequestHandler,com.yahoo.jdisc.SharedResource
public class SearchHandler
extends com.yahoo.container.jdisc.LoggingRequestHandler
Handles search request.
- Author:
- Steinar Knutsen, bratseth
-
Nested Class Summary
Nested classes/interfaces inherited from class com.yahoo.container.jdisc.LoggingRequestHandler
com.yahoo.container.jdisc.LoggingRequestHandler.ContextNested classes/interfaces inherited from class com.yahoo.container.jdisc.ThreadedHttpRequestHandler
com.yahoo.container.jdisc.ThreadedHttpRequestHandler.LazyContentChannelNested classes/interfaces inherited from interface com.yahoo.jdisc.SharedResource
com.yahoo.jdisc.SharedResource.Debug -
Field Summary
FieldsFields inherited from class com.yahoo.container.jdisc.ThreadedHttpRequestHandler
CONTENT_TYPEFields inherited from class com.yahoo.container.jdisc.ThreadedRequestHandler
metric, metricUtilFields inherited from interface com.yahoo.jdisc.SharedResource
DEBUG, SYSTEM_PROPERTY_NAME_DEBUG -
Constructor Summary
ConstructorsConstructorDescriptionSearchHandler(com.yahoo.jdisc.Metric metric, com.yahoo.container.handler.threadpool.ContainerThreadPool threadpool, CompiledQueryProfileRegistry queryProfileRegistry, com.yahoo.container.core.ContainerHttpConfig config, com.yahoo.component.provider.ComponentRegistry<com.yahoo.language.process.Embedder> embedders, ExecutionFactory executionFactory, ai.vespa.cloud.ZoneInfo zoneInfo) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateRequestMapping(com.yahoo.slime.Inspector inspector, Map<String, String> map, String parent) Deprecated.com.yahoo.processing.rendering.Renderer<Result>getRendererCopy(com.yahoo.component.ComponentSpecification spec) For internal use onlyOptional<com.yahoo.jdisc.Request.RequestType>final com.yahoo.container.jdisc.HttpResponsehandle(com.yahoo.container.jdisc.HttpRequest request) com.yahoo.container.jdisc.RequestHandlerSpecsearchAndFill(Query query, com.yahoo.component.chain.Chain<? extends Searcher> searchChain) Used from container SDK, for internal use onlyMethods inherited from class com.yahoo.container.jdisc.LoggingRequestHandler
createLoggingCompletionHandler, testOnlyContextMethods inherited from class com.yahoo.container.jdisc.ThreadedHttpRequestHandler
addDateHeader, asHttpRequest, handle, handleRequest, testContextMethods inherited from class com.yahoo.container.jdisc.ThreadedRequestHandler
executor, getTimeout, handleRequest, writeErrorResponseOnOverloadMethods inherited from class com.yahoo.jdisc.handler.AbstractRequestHandler
handleTimeoutMethods inherited from class com.yahoo.jdisc.AbstractResource
currentState, destroy, refer, refer, release, retainCountMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.yahoo.jdisc.handler.RequestHandler
handleRequest, handleTimeoutMethods inherited from interface com.yahoo.jdisc.SharedResource
refer, refer, release
-
Field Details
-
defaultSearchChainName
- See Also:
-
-
Constructor Details
-
SearchHandler
@Inject public SearchHandler(com.yahoo.jdisc.Metric metric, com.yahoo.container.handler.threadpool.ContainerThreadPool threadpool, CompiledQueryProfileRegistry queryProfileRegistry, com.yahoo.container.core.ContainerHttpConfig config, com.yahoo.component.provider.ComponentRegistry<com.yahoo.language.process.Embedder> embedders, ExecutionFactory executionFactory, ai.vespa.cloud.ZoneInfo zoneInfo)
-
-
Method Details
-
handle
public final com.yahoo.container.jdisc.HttpResponse handle(com.yahoo.container.jdisc.HttpRequest request) - Specified by:
handlein classcom.yahoo.container.jdisc.ThreadedHttpRequestHandler
-
getRequestType
- Overrides:
getRequestTypein classcom.yahoo.container.jdisc.ThreadedRequestHandler
-
searchAndFill
public Result searchAndFill(Query query, com.yahoo.component.chain.Chain<? extends Searcher> searchChain) Used from container SDK, for internal use only -
getRendererCopy
public com.yahoo.processing.rendering.Renderer<Result> getRendererCopy(com.yahoo.component.ComponentSpecification spec) For internal use only -
getSearchChainRegistry
-
createRequestMapping
@Deprecated public void createRequestMapping(com.yahoo.slime.Inspector inspector, Map<String, String> map, String parent) Deprecated. -
requestHandlerSpec
public com.yahoo.container.jdisc.RequestHandlerSpec requestHandlerSpec()
-