solr中SearchComponent(查询组件)及其自定义

来源:转载


public class MySearchComponent extends org.apache.solr.handler.component.SearchComponent { // org.apache.solr.handler.component.ResponseBuilder responseBuilder; //default org.apache.solr.handler.component.QueryComponent queryComponent; // "query" org.apache.solr.handler.component.FacetComponent facetComponent; //"facet" org.apache.solr.handler.component.MoreLikeThisComponent moreLikeThisComponent; // "mlt" org.apache.solr.handler.component.HighlightComponent highlightComponent; // "highlight" org.apache.solr.handler.component.StatsComponent statsComponent; // "stats" org.apache.solr.handler.component.DebugComponent debugComponent; // "debug" //others org.apache.solr.handler.component.SpellCheckComponent spellCheckComponent; // "spellcheck" org.apache.solr.handler.component.QueryElevationComponent queryElevationComponent; org.apache.solr.handler.component.TermVectorComponent termVectorComponent; //"tvComponent" org.apache.solr.handler.component.TermsComponent termsComponent; // "terms" org.apache.solr.handler.component.RealTimeGetComponent realTimeGetComponent; org.apache.solr.handler.component.ResponseLogComponent responseLogComponent; //handler org.apache.solr.handler.RequestHandlerBase requestHandlerBase; //extends SolrRequestHandler org.apache.solr.handler.AnalysisRequestHandlerBase analysisRequestHandlerBase; //extends RequestHandlerBase org.apache.solr.handler.ContentStreamHandlerBase contentStreamHandlerBase; //extends RequestHandlerBase org.apache.solr.handler.DocumentAnalysisRequestHandler documentAnalysisRequestHandler; // extends analysisRequestHandlerBase "/analysis/field" org.apache.solr.handler.FieldAnalysisRequestHandler fieldAnalysisRequestHandler; //extends analysisRequestHandlerBase "/analysis/document" // org.apache.solr.handler.DumpRequestHandler dumpRequestHandler; //extends RequestHandlerBase "/debug/dump" org.apache.solr.handler.MoreLikeThisHandler moreLikeThisHandler; org.apache.solr.handler.PingRequestHandler pingRequestHandler; // "/admin/ping" org.apache.solr.handler.ReplicationHandler replicationHandler; // "/replication" org.apache.solr.handler.component.SearchHandler searchHandler; //extends RequestHandlerBase "/select" "/query" "/browse" "/spell" "/suggest" "/tvrh" "/clustering" "/terms" "/elevate" org.apache.solr.handler.StandardRequestHandler standardRequestHandler; //extends SearchHandler org.apache.solr.handler.RealTimeGetHandler realTimeGetHandler; //extends SearchHandler "/get" org.apache.solr.handler.UpdateRequestHandler updateRequestHandler; //extends ContentStreamHandlerBase "/update" "/update/json" "update/csv" org.apache.solr.handler.BinaryUpdateRequestHandler binaryUpdateRequestHandler;//extends updateRequestHandler org.apache.solr.handler.JsonUpdateRequestHandler jsonUpdateRequestHandler; org.apache.solr.handler.XmlUpdateRequestHandler xmlUpdateRequestHandler; org.apache.solr.handler.XsltUpdateRequestHandler xsltUpdateRequestHandler; org.apache.solr.handler.CSVRequestHandler cSVRequestHandler; org.apache.solr.handler.admin.AdminHandlers adminHandlers; org.apache.solr.handler.admin.CollectionsHandler collectionsHandler; org.apache.solr.handler.admin.CoreAdminHandler coreAdminHandler; org.apache.solr.handler.admin.InfoHandler infoHandler; org.apache.solr.handler.admin.LoggingHandler loggingHandler; org.apache.solr.handler.admin.LukeRequestHandler lukeRequestHandler; org.apache.solr.handler.admin.PluginInfoHandler pluginInfoHandler; org.apache.solr.handler.admin.PropertiesRequestHandler propertiesRequestHandler; org.apache.solr.handler.admin.ShowFileRequestHandler showFileRequestHandler; org.apache.solr.handler.admin.SolrInfoMBeanHandler solrInfoMBeanHandler; org.apache.solr.handler.admin.SystemInfoHandler systemInfoHandler; org.apache.solr.handler.admin.ThreadDumpHandler threadDumpHandler; //org.apache.solr.handler.component org.apache.solr.handler.component.ShardHandler shardHandler; //abstract class org.apache.solr.handler.component.HttpShardHandler handler; //extends ShardHandler @Override public void prepare(ResponseBuilder rb) throws IOException { } @Override public void process(ResponseBuilder rb) throws IOException { } @Override public String getDescription() { return ""; } @Override public String getSource() { return ""; }}



分享给朋友:
您可能感兴趣的文章:
随机阅读: