[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pecl-cvs
Subject:    [PECL-CVS] com =?UTF-8?Q?pecl/search=5Fengine/solr=3A=20update=20package=2Exml=3Afil?= =?UTF-8?Q?es=
From:       Omar Shaban <omars () php ! net>
Date:       2015-11-29 10:44:36
Message-ID: php-mail-76f444b3719e46781eebdf7c460d88c01150256558 () git ! php ! net
[Download RAW message or body]

Commit:    2bb4415b1c93719c6cf7548144154804f7d6f7c1
Author:    Omar Shaban <omars@php.net>         Sun, 29 Nov 2015 12:44:29 +0200
Parents:   fa75d38c0f34e0712fe14e797d276600c50da5dd
Branches:  master

Link:       http://git.php.net/?p=pecl/search_engine/solr.git;a=commitdiff;h=2bb4415b1c93719c6cf7548144154804f7d6f7c1


Log:
update package.xml:files + added fixtures

Changed paths:
  M  package.xml
  A  tests/files/response_xml.3.xml
  A  tests/files/response_xml.4.xml


Diff:
diff --git a/package.xml b/package.xml
index c6d5c14..0a17bed 100644
--- a/package.xml
+++ b/package.xml
@@ -24,10 +24,10 @@ PECL Solr 2+ is only compatible with Apache Solr Server 4.0+
 		<email>omars@php.net</email>
 		<active>yes</active>
 	</lead>
-	<date>2015-09-27</date>
+	<date>2015-11-29</date>
 	<version>
-		<release>2.2.1</release>
-		<api>2.2.1</api>
+		<release>2.3.0</release>
+		<api>2.3.0</api>
 	</version>
 	<stability>
 		<release>stable</release>
@@ -38,7 +38,7 @@ PECL Solr 2+ is only compatible with Apache Solr Server 4.0+
 	<!-- Notes for the latest release -->
 	<notes>
 		<![CDATA[
-- Fix windows build
+
 ]]>
 	</notes>
 	
@@ -117,15 +117,29 @@ PECL Solr 2+ is only compatible with Apache Solr Server 4.0+
 				<file role="test" name="011.solrclient_phps_response.phpt" />
 				<file role="test" name="012.solrclient_getById.phpt" />
 				<file role="test" name="013.solrclient_getByIds.phpt" />
+        
 				<file role="test" name="020.solrdocument_adding_fields.phpt" />
 				<file role="test" name="021.solrdocument_iterator.phpt" />
 				<file role="test" name="022.solrdocument_getInputDocument.phpt" />
 				<file role="test" name="023.solrdocument_merge.phpt" />
+                <file role="test" name="024.solrdocument_addchilddocument.phpt" />
+                <file role="test" name="025.solrdocument_getchilddocuments.phpt" />
+                <file role="test" name="026.solrdocument_hasChildDocuments.phpt" />
+                <file role="test" name="027.solrinputdocument_serialization.phpt" />
+                <file role="test" name="028.solrdocument_child_doc_response.phpt" />
+                <file role="test" name="029.solrdocument_child_fetch.phpt" />
+                <file role="test" \
name="030.solrdocument_child_doc_response_solrdoc.phpt" /> +                <file \
role="test" name="031.solrdocument_haschilddocuments.phpt" /> +                <file \
role="test" name="032.solrdocument_getchilddocscount.phpt" /> +                <file \
role="test" name="033.solrdocument_getinputdocument_children.phpt" /> +               \
<file role="test" name="034.solr_update_document_block.phpt" />         +        
 				<file role="test" name="040.solrobject_xmlresponse.phpt" />
 				<file role="test" name="041.solrobject_illegal_operation.phpt" />
 				<file role="test" name="042.solrobject_magic_property.phpt" />
 				<file role="test" name="043.solrobject_magic_properties.phpt" />
 				<file role="test" name="044.solrobject_dimension_access_properties.phpt" />
+        
 				<file role="test" name="060.solrquery_comon_query_params.phpt" />
 				<file role="test" name="061.solrquery_simpleFacetParameters.phpt" />
 				<file role="test" name="062.solrquery_date_facet_parameters.phpt" />
@@ -138,6 +152,7 @@ PECL Solr 2+ is only compatible with Apache Solr Server 4.0+
 				<file role="test" name="069.solrquery_GroupParameters.phpt" />
 				<file role="test" name="070.solrquery_collapse.phpt" />
 				<file role="test" name="071.solrquery_expand.phpt" />
+        
 				<file role="test" name="080.solrutils_escapequerychars.phpt" />
 				<file role="test" name="081.solrutils_digest_json_response.phpt" />
 				<file role="test" name="090.solrserverexception_xml.phpt" />
@@ -173,6 +188,9 @@ PECL Solr 2+ is only compatible with Apache Solr Server 4.0+
 					<file role="test" name="bug67394.json" />
 					<file role="test" name="bug67394.xml" />
 					<file role="test" name="response_xml.1.xml" />
+                    <file role="test" name="response_xml.2.xml" />
+                    <file role="test" name="response_xml.3.xml" />
+                    <file role="test" name="response_xml.4.xml" />
 				</dir> <!-- tests/files -->
 			</dir> <!-- tests -->
 			<file role="src" name="config.m4"/>
diff --git a/tests/files/response_xml.3.xml b/tests/files/response_xml.3.xml
new file mode 100644
index 0000000..7c95565
--- /dev/null
+++ b/tests/files/response_xml.3.xml
@@ -0,0 +1,41 @@
+<response>
+
+  <result name="response" numFound="3" start="0">
+    <doc>
+      <str name="id">parent_1</str>
+      <arr name="title">
+        <str>Solr adds block join support</str>
+      </arr>
+      <doc>
+        <str name="id">CHILD_1_1</str>
+        <arr name="comment_t">
+          <str>SolrCloud supports it too!</str>
+        </arr>
+      </doc>
+    </doc>
+    <doc>
+      <str name="id">parent_2</str>
+      <doc>
+        <str name="id">CHILD_2_1</str>
+        <arr name="comment_t">
+          <str>Cool features</str>
+        </arr>
+      </doc>
+      <doc>
+        <str name="id">CHILD_2_2</str>
+        <arr name="comment_t">
+          <str>Cool features</str>
+        </arr>
+      </doc>
+    </doc>
+    <doc>
+      <str name="id">parent_3</str>
+      <doc>
+        <str name="id">CHILD_3_1</str>
+        <arr name="comment_t">
+          <str>Cool features</str>
+        </arr>
+      </doc>
+    </doc>
+  </result>
+</response>
\ No newline at end of file
diff --git a/tests/files/response_xml.4.xml b/tests/files/response_xml.4.xml
new file mode 100644
index 0000000..efa6fd2
--- /dev/null
+++ b/tests/files/response_xml.4.xml
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<response>
+  <lst name="responseHeader">
+    <int name="status">0</int>
+    <int name="QTime">0</int>
+    <lst name="params">
+      <str name="q">*:*</str>
+      <str name="start">0</str>
+      <str name="rows">2</str>
+      <str name="wt">xml</str>
+    </lst>
+  </lst>
+  <result name="response" numFound="40" start="0">
+    <doc>
+      <str name="id">GB18030TEST</str>
+      <arr name="name">
+        <str>Test with some GB18030 encoded characters</str>
+      </arr>
+      <arr name="features">
+        <str>No accents here</str>
+        <str>这是一个功能</str>
+        <str>This is a feature (translated)</str>
+        <str>这份文件是很有光泽</str>
+        <str>This document is very shiny (translated)</str>
+      </arr>
+      <arr name="price">
+        <double>0.0</double>
+      </arr>
+      <arr name="inStock">
+        <bool>true</bool>
+      </arr>
+      <long name="_version_">1513324811722424320</long>
+    </doc>
+    <doc>
+      <str name="id">SP2514N</str>
+      <arr name="name">
+        <str>Samsung SpinPoint P120 SP2514N - hard drive - 250 GB -
+          ATA-133</str>
+      </arr>
+      <arr name="manu">
+        <str>Samsung Electronics Co. Ltd.</str>
+      </arr>
+      <str name="manu_id_s">samsung</str>
+      <arr name="cat">
+        <str>electronics</str>
+        <str>hard drive</str>
+      </arr>
+      <arr name="features">
+        <str>7200RPM, 8MB cache, IDE Ultra ATA-133</str>
+        <str>NoiseGuard, SilentSeek technology, Fluid Dynamic Bearing
+          (FDB) motor</str>
+      </arr>
+      <arr name="price">
+        <double>92.0</double>
+      </arr>
+      <arr name="popularity">
+        <long>6</long>
+      </arr>
+      <arr name="inStock">
+        <bool>true</bool>
+      </arr>
+      <date name="manufacturedate_dt">2006-02-13T15:26:37Z</date>
+      <arr name="store">
+        <str>35.0752,-97.032</str>
+      </arr>
+      <long name="_version_">1513324812366249984</long>
+    </doc>
+  </result>
+</response>
\ No newline at end of file


--
PECL CVS Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic