List of usage examples for org.apache.solr.handler.component SearchHandler SearchHandler
SearchHandler
From source file:at.newmedialab.lmf.util.solr.suggestion.service.SuggestionService.java
License:Apache License
public SuggestionService(SolrCore solrCore, NamedList args) { NamedList l = new NamedList(); //set spellcheck component if there is one if (((ArrayList) args.get("first-components")).contains("spellcheck")) { List component = new ArrayList<String>(); component.add("spellcheck"); l.add("first-components", component); spellcheck_enabled = true;/*w w w.j a va 2 s . co m*/ } this.solrCore = solrCore; this.searchHandler = new SearchHandler(); this.searchHandler.init(l); this.searchHandler.inform(solrCore); }
From source file:net.yacy.cora.federate.solr.connector.EmbeddedSolrConnector.java
License:Open Source License
public EmbeddedSolrConnector(EmbeddedInstance instance) { super();/*from ww w. j ava2 s .com*/ this.instance = instance; this.core = this.instance.getDefaultCore(); this.requestHandler = new SearchHandler(); this.requestHandler.init(new NamedList<Object>()); this.requestHandler.inform(this.core); //this.suggestHandler = new SuggestComponent(); //this.suggestHandler.init(new NamedList<Object>()); //this.suggestHandler.inform(this.core); super.init(this.instance.getDefaultServer()); }
From source file:net.yacy.cora.federate.solr.connector.EmbeddedSolrConnector.java
License:Open Source License
public EmbeddedSolrConnector(EmbeddedInstance instance, String coreName) { super();// w w w. j a v a 2s .c o m this.instance = instance; this.core = this.instance.getCore(coreName); this.requestHandler = new SearchHandler(); this.requestHandler.init(new NamedList<Object>()); this.requestHandler.inform(this.core); //this.suggestHandler = new SuggestComponent(); //this.suggestHandler.init(new NamedList<Object>()); //this.suggestHandler.inform(this.core); super.init(this.instance.getServer(coreName)); }