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:
William Au 2009-10-02 16:19:50 +00:00
parent 9b7cf7819f
commit 67b09bd627
2 changed files with 5 additions and 0 deletions

View File

@ -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
----------------------

View File

@ -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());
}