From 67b09bd627b632b038c64250c4a6a893b25cccff Mon Sep 17 00:00:00 2001 From: William Au Date: Fri, 2 Oct 2009 16:19:50 +0000 Subject: [PATCH] SOLR-1481 git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@821076 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 2 ++ .../org/apache/solr/request/PHPSerializedResponseWriter.java | 3 +++ 2 files changed, 5 insertions(+) diff --git a/CHANGES.txt b/CHANGES.txt index 3fca114ca29..a4c7853bbe2 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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 ---------------------- diff --git a/src/java/org/apache/solr/request/PHPSerializedResponseWriter.java b/src/java/org/apache/solr/request/PHPSerializedResponseWriter.java index 4e0a1fbe984..7d1fa3c718e 100755 --- a/src/java/org/apache/solr/request/PHPSerializedResponseWriter.java +++ b/src/java/org/apache/solr/request/PHPSerializedResponseWriter.java @@ -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()); }