mirror of https://github.com/apache/lucene.git
SOLR-2445: remove standard request handler and change the default qt to blank in form.jsp
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1086821 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9d1854b390
commit
787b6019bf
|
@ -234,7 +234,8 @@ Optimizations
|
|||
Bug Fixes
|
||||
----------------------
|
||||
|
||||
* SOLR-2445: Register "standard" search handler. (koji)
|
||||
* SOLR-2445: Change the default qt to blank in form.jsp, because there is no "standard"
|
||||
request handler unless you have it in your solrconfig.xml explicitly. (koji)
|
||||
|
||||
Other Changes
|
||||
----------------------
|
||||
|
|
|
@ -71,18 +71,6 @@ final class RequestHandlers {
|
|||
|
||||
public RequestHandlers(SolrCore core) {
|
||||
this.core = core;
|
||||
register(DEFAULT_HANDLER_NAME, getStandardHandler());
|
||||
}
|
||||
|
||||
private SolrRequestHandler getStandardHandler(){
|
||||
SolrRequestHandler standard = core.createRequestHandler(SearchHandler.class.getName());
|
||||
NamedList defParams = new NamedList();
|
||||
defParams.add(CommonParams.HEADER_ECHO_PARAMS, EchoParamStyle.EXPLICIT.toString());
|
||||
defParams.add(CommonParams.ROWS, 10);
|
||||
NamedList nl = new NamedList();
|
||||
nl.add("defaults", defParams);
|
||||
standard.init(nl);
|
||||
return standard;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
<strong>Query Type</strong>
|
||||
</td>
|
||||
<td>
|
||||
<input name="qt" type="text" value="standard">
|
||||
<input name="qt" type="text">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
Loading…
Reference in New Issue