mirror of https://github.com/apache/lucene.git
SOLR-1481
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@821076 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9b7cf7819f
commit
67b09bd627
|
@ -597,6 +597,8 @@ Bug Fixes
|
|||
69. SOLR-1471: Fixed issue with calculating missing values for facets in single valued cases in Stats Component.
|
||||
This is not correctly calculated for the multivalued case. (James Miller, gsingers)
|
||||
|
||||
70. SOLR-1481: Fixed omitHeader parameter for PHP ResponseWriter. (Jun Ohtani via billa)
|
||||
|
||||
|
||||
Other Changes
|
||||
----------------------
|
||||
|
|
|
@ -24,6 +24,7 @@ import java.util.*;
|
|||
import org.apache.lucene.document.Document;
|
||||
import org.apache.lucene.document.Fieldable;
|
||||
import org.apache.lucene.util.UnicodeUtil;
|
||||
import org.apache.solr.common.params.CommonParams;
|
||||
import org.apache.solr.common.util.NamedList;
|
||||
import org.apache.solr.schema.SchemaField;
|
||||
import org.apache.solr.search.DocIterator;
|
||||
|
@ -89,6 +90,8 @@ class PHPSerializedWriter extends JSONWriter {
|
|||
}
|
||||
|
||||
public void writeResponse() throws IOException {
|
||||
Boolean omitHeader = req.getParams().getBool(CommonParams.OMIT_HEADER);
|
||||
if(omitHeader != null && omitHeader) rsp.getValues().remove("responseHeader");
|
||||
writeNamedList(null, rsp.getValues());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue