ソースを参照

updated to 1.2

Bachir Soussi Chiadmi 11 年 前
コミット
d8237ffb99
100 ファイル変更2541 行追加16175 行削除
  1. 64 0
      CHANGELOG.txt
  2. 45 48
      INSTALL.txt
  3. 44 9
      README.txt
  4. 0 367
      SolrPhpClient/Apache/Solr/Document.php
  5. 0 50
      SolrPhpClient/Apache/Solr/Exception.php
  6. 0 89
      SolrPhpClient/Apache/Solr/HttpTransport/Abstract.php
  7. 0 198
      SolrPhpClient/Apache/Solr/HttpTransport/Curl.php
  8. 0 196
      SolrPhpClient/Apache/Solr/HttpTransport/CurlNoReuse.php
  9. 0 216
      SolrPhpClient/Apache/Solr/HttpTransport/FileGetContents.php
  10. 0 94
      SolrPhpClient/Apache/Solr/HttpTransport/Interface.php
  11. 0 255
      SolrPhpClient/Apache/Solr/HttpTransport/Response.php
  12. 0 79
      SolrPhpClient/Apache/Solr/HttpTransportException.php
  13. 0 50
      SolrPhpClient/Apache/Solr/InvalidArgumentException.php
  14. 0 50
      SolrPhpClient/Apache/Solr/NoServiceAvailableException.php
  15. 0 50
      SolrPhpClient/Apache/Solr/ParserException.php
  16. 0 247
      SolrPhpClient/Apache/Solr/Response.php
  17. 0 1181
      SolrPhpClient/Apache/Solr/Service.php
  18. 0 914
      SolrPhpClient/Apache/Solr/Service/Balancer.php
  19. 0 26
      SolrPhpClient/COPYING
  20. 0 342
      SolrPhpClient/ChangeLog
  21. 0 32
      SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_Document.html
  22. 0 33
      SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_Exception.html
  23. 0 31
      SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_HttpTransportException.html
  24. 0 196
      SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_HttpTransport_Abstract.html
  25. 0 336
      SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_HttpTransport_Curl.html
  26. 0 279
      SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_HttpTransport_CurlNoReuse.html
  27. 0 309
      SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_HttpTransport_FileGetContents.html
  28. 0 260
      SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_HttpTransport_Interface.html
  29. 0 298
      SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_HttpTransport_Response.html
  30. 0 29
      SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_InvalidArgumentException.html
  31. 0 29
      SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_NoServiceAvailableException.html
  32. 0 29
      SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_ParserException.html
  33. 0 621
      SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_Response.html
  34. 0 40
      SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_Service.html
  35. 0 178
      SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_Service_Balancer.html
  36. 0 28
      SolrPhpClient/phpdocs/Apache/Solr/_Document.php.html
  37. 0 63
      SolrPhpClient/phpdocs/Apache/Solr/_Exception.php.html
  38. 0 28
      SolrPhpClient/phpdocs/Apache/Solr/_HttpTransport---Abstract.php.html
  39. 0 29
      SolrPhpClient/phpdocs/Apache/Solr/_HttpTransport---Curl.php.html
  40. 0 29
      SolrPhpClient/phpdocs/Apache/Solr/_HttpTransport---CurlNoReuse.php.html
  41. 0 29
      SolrPhpClient/phpdocs/Apache/Solr/_HttpTransport---FileGetContents.php.html
  42. 0 29
      SolrPhpClient/phpdocs/Apache/Solr/_HttpTransport---Interface.php.html
  43. 0 28
      SolrPhpClient/phpdocs/Apache/Solr/_HttpTransport---Response.php.html
  44. 0 63
      SolrPhpClient/phpdocs/Apache/Solr/_HttpTransportException.php.html
  45. 0 63
      SolrPhpClient/phpdocs/Apache/Solr/_InvalidArgumentException.php.html
  46. 0 63
      SolrPhpClient/phpdocs/Apache/Solr/_NoServiceAvailableException.php.html
  47. 0 63
      SolrPhpClient/phpdocs/Apache/Solr/_ParserException.php.html
  48. 0 29
      SolrPhpClient/phpdocs/Apache/Solr/_Response.php.html
  49. 0 29
      SolrPhpClient/phpdocs/Apache/Solr/_Service---Balancer.php.html
  50. 0 29
      SolrPhpClient/phpdocs/Apache/Solr/_Service.php.html
  51. 0 166
      SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_Document.php.html
  52. 0 70
      SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_Exception.php.html
  53. 0 109
      SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_HttpTransportAbstract.php.html
  54. 0 137
      SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_HttpTransportCurl.php.html
  55. 0 110
      SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_HttpTransportCurlNoReuse.php.html
  56. 0 77
      SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_HttpTransportException.php.html
  57. 0 95
      SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_HttpTransportFileGetContents.php.html
  58. 0 83
      SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_HttpTransportInterface.php.html
  59. 0 178
      SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_HttpTransportResponse.php.html
  60. 0 70
      SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_InvalidArgumentException.php.html
  61. 0 70
      SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_NoServiceAvailableException.php.html
  62. 0 70
      SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_ParserException.php.html
  63. 0 109
      SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_Response.php.html
  64. 0 173
      SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_Service.php.html
  65. 0 133
      SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_ServiceBalancer.php.html
  66. 0 13
      SolrPhpClient/phpdocs/blank.html
  67. 0 56
      SolrPhpClient/phpdocs/classtrees_Apache.html
  68. 0 1726
      SolrPhpClient/phpdocs/elementindex.html
  69. 0 1723
      SolrPhpClient/phpdocs/elementindex_Apache.html
  70. 0 95
      SolrPhpClient/phpdocs/errors.html
  71. 0 24
      SolrPhpClient/phpdocs/index.html
  72. 0 72
      SolrPhpClient/phpdocs/li_Apache.html
  73. 0 32
      SolrPhpClient/phpdocs/media/banner.css
  74. 0 142
      SolrPhpClient/phpdocs/media/stylesheet.css
  75. 0 29
      SolrPhpClient/phpdocs/packages.html
  76. 0 29
      SolrPhpClient/phpdocs/todolist.html
  77. 0 439
      SolrPhpClient/tests/Apache/Solr/DocumentTest.php
  78. 0 208
      SolrPhpClient/tests/Apache/Solr/HttpTransport/AbstractTest.php
  79. 0 53
      SolrPhpClient/tests/Apache/Solr/HttpTransport/CurlNoReuseTest.php
  80. 0 53
      SolrPhpClient/tests/Apache/Solr/HttpTransport/CurlTest.php
  81. 0 53
      SolrPhpClient/tests/Apache/Solr/HttpTransport/FileGetContentsTest.php
  82. 0 55
      SolrPhpClient/tests/Apache/Solr/HttpTransport/ResponseTest.php
  83. 0 58
      SolrPhpClient/tests/Apache/Solr/HttpTransportExceptionTest.php
  84. 0 194
      SolrPhpClient/tests/Apache/Solr/ResponseTest.php
  85. 0 47
      SolrPhpClient/tests/Apache/Solr/Service/BalancerTest.php
  86. 0 139
      SolrPhpClient/tests/Apache/Solr/ServiceAbstractTest.php
  87. 0 1119
      SolrPhpClient/tests/Apache/Solr/ServiceTest.php
  88. 0 20
      SolrPhpClient/tests/README
  89. 0 28
      SolrPhpClient/tests/phpunit.bootstrap.inc
  90. 0 15
      SolrPhpClient/tests/phpunit.xml
  91. 0 42
      SolrPhpClient/tests/run.php
  92. 435 0
      includes/document.inc
  93. 482 127
      includes/service.inc
  94. 901 0
      includes/solr_connection.inc
  95. 365 0
      includes/solr_connection.interface.inc
  96. 106 10
      includes/solr_field.inc
  97. 0 100
      includes/solr_httptransport.inc
  98. 4 4
      includes/spellcheck.inc
  99. 62 0
      search_api_solr.admin.inc
  100. 33 57
      search_api_solr.api.php

+ 64 - 0
CHANGELOG.txt

@@ -1,6 +1,70 @@
 Search API Solr search 1.x, dev (xx/xx/xxxx):
 ---------------------------------------------
 
+Search API Solr search 1.2 (09/01/2013):
+----------------------------------------
+- #1246730 by febbraro, maciej.zgadzaj, drunken monkey: Added a way to alter
+  the Solr document when indexing.
+- #2053553 by drunken monkey, andrewbelcher: Fixed spatial features with clean
+  field identifiers.
+- #2054373 by drunken monkey: Added the option to use clean field identifiers.
+- #1992806 by drunken monkey: Documented problems with Solr 4.3+.
+- #2045355 by drunken monkey, arpieb: Fixed result mapping of item IDs.
+- #2050157 by izus: Fixed typo in stopwords.txt.
+
+Search API Solr search 1.1 (07/21/2013):
+----------------------------------------
+- #1957730 by drunken monkey: Fixed filter query strings for negated filters.
+- #2010818 by kenorb, drunken monkey: Added new Files tab showing all used solr
+  config files.
+- #2042201 by klausi: Fixed timeouts while optimizing Solr server.
+- #2034719 by fago: Added raw term to autocompletion response.
+- #2027843 by fago, drunken monkey: Made the Solr response available as part of
+  the search results.
+- #1834614 by drunken monkey: Fixed date fields in MLT queries.
+- #1970652 by jsteggink: Fixed highlighting for text fields.
+- #2016169 by tomdearden, drunken monkey: Fixed parsing of facets on
+  multi-valued fields.
+- #2008034 by bdecarne: Fixed highlighting in multi-index searches.
+
+Search API Solr search 1.0 (06/09/2013):
+----------------------------------------
+- #1896080 by drunken monkey: Included additional required config files in the
+  module.
+- #1919572 by chaby: Fixed indexing of geohashes.
+- #2004596 by drunken monkey: Fixed "More Like This" for Solr 4.x.
+- #2007214 by drunken monkey: Fixed unsetting of object properties.
+- #1884312 by drunken monkey, mvc: Fixed resetting of HTTP password upon
+  re-saving of the configuration form.
+- #1957774 by drunken monkey: Fixed displayed link to local Solr servers.
+- #1721262 by Steven Jones, das-peter, drunken monkey: Added field collapsing
+  support.
+- #1549244 by cferthorney, drunken monkey: Added SSL Support for Solr servers.
+
+Search API Solr search 1.0, RC 5 (05/17/2013):
+----------------------------------------------
+- #1190462 by drunken monkey: Documented that enabling HTML filter makes sense.
+- #1986284 by drunken monkey: Updated common configs to the latest version.
+- #1990422 by populist, drunken monkey: Added support for custom stream contexts
+  for HTTP requests.
+- #1957890 by drunken monkey, jwilson3: Fixed several bugs for facets.
+- #1676224 by dasjo, morningtime, drunken monkey: Added support for Solr 4.x.
+- #1985522 by chaby: Fixed use of instance method in static escape() method.
+- #1979102 by drunken monkey: Fixed wrong limit for limit-less searches.
+- #1978632 by chaby, drunken monkey: Fixed wrong check on softCommit.
+- #1978600 by chaby: Fixed hook_requirements() for install phase.
+- #1976930 by drunken monkey: Fixed duplicate method in SearchApiSolrField.
+
+Search API Solr search 1.0, RC 4 (04/22/2013):
+----------------------------------------------
+- #1744250 by mollux, drunken monkey, das-peter: Added support for
+  location-based searches.
+- #1846254 by drunken monkey: Removed the SolrPhpClient dependency.
+- #1934450 by jwilson3, jlapp: Fixed reference to removed method
+  getFacetField().
+- #1900644 by Deciphered: Fixed facet handling for multi-index searches.
+- #1897386 by drunken monkey, NIck_vh: Update the common schema.
+
 Search API Solr search 1.0, RC 3 (01/06/2013):
 ----------------------------------------------
 - #1828260 by drunken monkey: Fixed filtering by index in multi-index searches.

+ 45 - 48
INSTALL.txt

@@ -1,39 +1,3 @@
-Prerequisite:
-- Java 6 or higher
-
-Steps necessary:
-- Download Solr PHP client
-- Setting up Solr
-
-Download Solr PHP client
-------------------------
-
-This module uses an external PHP library for communicating with Solr servers. Go
-to [1] and download version r60 of this library. (The older version r22 is also
-still supported, but this might change in the future.)
-
-[1] http://code.google.com/p/solr-php-client/downloads/list
-
-Afterwards, unpack this archive to Drupal's libraries folder, so the directory
-tree looks like this:
-
-DRUPAL_ROOT/sites/all/libraries/
-  |- SolrPhpClient
-     |- Apache/
-     |- ChangeLog
-     ...
-
-The library should then be found by the module.
-
-Note: If you have the Libraries API [2] module installed, you can also place the
-library into any other directory recognized by the Libraries API, e.g.
-(depending on the module version):
-- DRUPAL_ROOT/libraries
-- DRUPAL_ROOT/profiles/PROFILE/libraries
-- DRUPAL_ROOT/sites/CONF_DIR/libraries
-
-[2] http://drupal.org/project/libraries
-
 Setting up Solr
 ---------------
 
@@ -41,38 +5,71 @@ In order for this module to work, you will first need to set up a Solr server.
 For this, you can either purchase a server from a web Solr hosts or set up your
 own Solr server on your web server (if you have the necessary rights to do so).
 If you want to use a hosted solution, a number of companies are listed on the
-module's project page [3]. Otherwise, please follow the instructions below.
+module's project page [1]. Otherwise, please follow the instructions below.
+A more detailed set of instructions is available at [2].
+
+[1] https://drupal.org/project/search_api_solr
+[2] https://drupal.org/node/1999310
 
-[3] http://drupal.org/project/search_api_solr
+As a pre-requisite for running your own Solr server, you'll need Java 6 or
+higher.
 
-Download the latest version of Solr 3.x from [4] and unpack the archive
+Download the latest version of Solr 4.x from [3] and unpack the archive
 somewhere outside of your web server's document tree.
 
-[4] http://www.apache.org/dyn/closer.cgi/lucene/solr/
+[3] http://www.apache.org/dyn/closer.cgi/lucene/solr/
 
-This module also supports Solr 1.4, but its use is discouraged due to worse
-performance and some features not being supported. Solr 4.x is not supported by
-this module yet.
+This module also supports Solr 1.4 and 3.x. For better performance and more
+features, 4.x should be used, though. 1.4 is discouraged altogether, as several
+features of the module don't work at all in 1.4.
 
 For small websites, using the example application, located in $SOLR/example/,
 usually suffices. In any case, you can use it for developing andd testing. The
 following instructions will assume you are using the example application,
 otherwise you should be able to substitute the corresponding paths.
 
+NOTE: The Solr 4.3+ example application is currently not completely supported
+with the configuration files included in this module, due to a slight change in
+directory structure. To fix this, simply copy, move or symlink the contrib/
+directory from the top level of the extracted Solr package one level down to
+example/.
+(For other directory structures: the contrib/ directory has to be in the
+directory two levels up from the one which includes the conf/ directory. For
+help, just start the Solr server and check the log files for WARN messages –
+they should state in which place Solr expects the directory to be.)
+
+CAUTION! For production sites, it is vital that you somehow prevent outside
+access to the Solr server. Otherwise, attackers could read, corrupt or delete
+all your indexed data. Using the example server WON'T prevent this by default.
+If it is available, the probably easiest way of preventing this is to disable
+outside access to the ports used by Solr through your server's network
+configuration or through the use of a firewall.
+Other options include adding basic HTTP authentication or renaming the solr/
+directory to a random string of characters and using that as the path.
+
 Before starting the Solr server you will have to make sure it uses the proper
 configuration files. These are located in the solr-conf/ directory in this
 module, in a sub-directory according to the Solr version you are using. Copy all
 the files from that directory into Solr's configuration directory
-($SOLR/example/solr/conf/ in case of the example application), after backing up
-all files that would be overwritten.
+($SOLR/example/solr/collection1/conf/ in case of the 4.x example application),
+after backing up all files that would be overwritten.
+
+NOTE: The mapping-ISOLatin1Accent.txt is only included in the module for
+completeness' sake, as it is required to start the Solr server. It will be
+usually advisable to just use the file of the example application in this case,
+though, as it contains really useful definitions, while the file provided with
+this module is empty, apart from some documentation. For licensing reasons, it
+is not possible for us to include the definitions in the example config file in
+the copy this module provides.
+
 You can then start Solr. For the example application, go to $SOLR/example/ and
 issue the following command (assuming Java is correctly installed):
 
-java -jar start.jar
+java -jar start.jar &
 
-Afterwards, go to [5] in your web browser to ensure Solr is running correctly.
+Afterwards, go to [4] in your web browser to ensure Solr is running correctly.
 
-[5] http://localhost:8983/solr/admin/
+[4] http://localhost:8983/solr/#/
 
 You can then enable this module and create a new server, using the "Solr search"
 service class. Enter the hostname, port and path corresponding to your Solr

+ 44 - 9
README.txt

@@ -5,6 +5,10 @@ This module provides an implementation of the Search API which uses an Apache
 Solr search server for indexing and searching. Before enabling or using this
 module, you'll have to follow the instructions given in INSTALL.txt first.
 
+For more detailed documentation, see the handbook [1].
+
+[1] https://drupal.org/node/1999280
+
 Supported optional features
 ---------------------------
 
@@ -15,13 +19,13 @@ can be changed arbitrarily. Using your own Solr extensions is thereby also
 possible.
 
 The "direct" parse mode for queries will result in the keys being directly used
-as the query to Solr. For details about Lucene's query syntax, see [1]. There
-are also some Solr additions to this, listed at [2]. Note however that, by
+as the query to Solr. For details about Lucene's query syntax, see [2]. There
+are also some Solr additions to this, listed at [3]. Note however that, by
 default, this module uses the dismax query handler, so searches like
 "field:value" won't work with the "direct" mode.
 
-[1] http://lucene.apache.org/java/2_9_1/queryparsersyntax.html
-[2] http://wiki.apache.org/solr/SolrQuerySyntax
+[2] http://lucene.apache.org/java/2_9_1/queryparsersyntax.html
+[3] http://wiki.apache.org/solr/SolrQuerySyntax
 
 Regarding third-party features, the following are supported:
 
@@ -40,6 +44,10 @@ Regarding third-party features, the following are supported:
   Introduced by module: search_api_views
   Lets you display items that are similar to a given one. Use, e.g., to create
   a "More like this" block for node pages.
+  NOTE: Due to a regression in Solr itself, "More like this" doesn't work with
+  integer and float fields in Solr 4. As a work-around, you can index the fields
+  (or copies of them) as string values. See [4] for details.
+  Also, MLT with date fields isn't currently supported at all for any version.
 - search_api_multi
   Introduced by module: search_api_multi
   Allows you to search multiple indexes at once, as long as they are on the same
@@ -48,12 +56,24 @@ Regarding third-party features, the following are supported:
 - search_api_spellcheck
   Introduced by module: search_api_spellcheck
   Gives the option to display automatic spellchecking for searches.
+- search_api_data_type_location
+  Introduced by module: search_api_location
+  Lets you index, filter and sort on location fields. Note, however, that only
+  single-valued fields are currently supported for Solr 3.x, and that the option
+  isn't supported at all in Solr 1.4.
+- search_api_grouping
+  Introduced by module: search_api_grouping [5]
+  Lets you group search results based on indexed fields. For further information
+  see the FieldCollapsing documentation in the solr wiki [6].
 
 If you feel some service option is missing, or have other ideas for improving
 this implementation, please file a feature request in the project's issue queue,
-at [3].
+at [7].
 
-[3] http://drupal.org/project/issues/search_api_solr
+[4] https://drupal.org/node/2004596
+[5] https://drupal.org/sandbox/daspeter/1783280
+[6] http://wiki.apache.org/solr/FieldCollapsing
+[7] https://drupal.org/project/issues/search_api_solr
 
 Specifics
 ---------
@@ -62,7 +82,9 @@ Please consider that, since Solr handles tokenizing, stemming and other
 preprocessing tasks, activating any preprocessors in a search index' settings is
 usually not needed or even cumbersome. If you are adding an index to a Solr
 server you should therefore then disable all processors which handle such
-classic preprocessing tasks.
+classic preprocessing tasks. Enabling the HTML filter can be useful, though, as
+the default config files included in this module don't handle stripping out HTML
+tags.
 
 Also, due to the way Solr works, using a single field for fulltext searching
 will result in the smallest index size and best search performance, as well as
@@ -71,6 +93,19 @@ different sets of fields in different searches on an index, it is adviced that
 you collect all fields that should be searchable into a single field using the
 “Aggregated fields” data alteration.
 
+Clean field identifiers:
+  If your Solr server was created in a module version prior to 1.2, you will get
+  the option to switch the server to "Clean field identifiers" (which is default
+  for all new servers). This will change the Solr field names used for all
+  fields whose Search API identifiers contain a colon (i.e., all nested fields)
+  to support some advanced functionality, like sorting by distance, for which
+  Solr is buggy when using field names with colons.
+  The only downside of this change is that the data in Solr for these fields
+  will become invalid, so all indexes on the server which contain such fields
+  will be scheduled for re-indexing. (If you don't want to search on incomplete
+  data until the re-indexing is finished, you can additionally manually clear
+  the indexes, on their Status tabs, to prevent this.)
+
 Hidden variables
 ----------------
 
@@ -86,11 +121,11 @@ The schema.xml and solrconfig.xml files contain extensive comments on how to
 add additional features or modify behaviour, e.g., for adding a language-
 specific stemmer or a stopword list.
 If you are interested in further customizing your Solr server to your needs,
-see the Solr wiki at [4] for documentation. When editing the schema.xml and
+see the Solr wiki at [8] for documentation. When editing the schema.xml and
 solrconfig.xml files, please only edit the copies in the Solr configuration
 directory, not directly the ones provided with this module.
 
-[4] http://wiki.apache.org/solr/
+[8] http://wiki.apache.org/solr/
 
 You'll have to restart your Solr server after making such changes, for them to
 take effect.

+ 0 - 367
SolrPhpClient/Apache/Solr/Document.php

@@ -1,367 +0,0 @@
-<?php
-/**
- * Copyright (c) 2007-2011, Servigistics, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Servigistics, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * @copyright Copyright 2007-2011 Servigistics, Inc. (http://servigistics.com)
- * @license http://solr-php-client.googlecode.com/svn/trunk/COPYING New BSD
- * @version $Id: Document.php 54 2011-02-04 16:29:18Z donovan.jimenez $
- *
- * @package Apache
- * @subpackage Solr
- * @author Donovan Jimenez <djimenez@conduit-it.com>
- */
-
-/**
- * Holds Key / Value pairs that represent a Solr Document along with any associated boost
- * values. Field values can be accessed by direct dereferencing such as:
- * <code>
- * ...
- * $document->title = 'Something';
- * echo $document->title;
- * ...
- * </code>
- *
- * Additionally, the field values can be iterated with foreach
- *
- * <code>
- * foreach ($document as $fieldName => $fieldValue)
- * {
- * ...
- * }
- * </code>
- */
-class Apache_Solr_Document implements IteratorAggregate
-{
-	/**
-	 * SVN Revision meta data for this class
-	 */
-	const SVN_REVISION = '$Revision: 54 $';
-
-	/**
-	 * SVN ID meta data for this class
-	 */
-	const SVN_ID = '$Id: Document.php 54 2011-02-04 16:29:18Z donovan.jimenez $';
-
-	/**
-	 * Document boost value
-	 *
-	 * @var float
-	 */
-	protected $_documentBoost = false;
-
-	/**
-	 * Document field values, indexed by name
-	 *
-	 * @var array
-	 */
-	protected $_fields = array();
-
-	/**
-	 * Document field boost values, indexed by name
-	 *
-	 * @var array array of floats
-	 */
-	protected $_fieldBoosts = array();
-
-	/**
-	 * Clear all boosts and fields from this document
-	 */
-	public function clear()
-	{
-		$this->_documentBoost = false;
-
-		$this->_fields = array();
-		$this->_fieldBoosts = array();
-	}
-
-	/**
-	 * Get current document boost
-	 *
-	 * @return mixed will be false for default, or else a float
-	 */
-	public function getBoost()
-	{
-		return $this->_documentBoost;
-	}
-
-	/**
-	 * Set document boost factor
-	 *
-	 * @param mixed $boost Use false for default boost, else cast to float that should be > 0 or will be treated as false
-	 */
-	public function setBoost($boost)
-	{
-		$boost = (float) $boost;
-
-		if ($boost > 0.0)
-		{
-			$this->_documentBoost = $boost;
-		}
-		else
-		{
-			$this->_documentBoost = false;
-		}
-	}
-
-	/**
-	 * Add a value to a multi-valued field
-	 *
-	 * NOTE: the solr XML format allows you to specify boosts
-	 * PER value even though the underlying Lucene implementation
-	 * only allows a boost per field. To remedy this, the final
-	 * field boost value will be the product of all specified boosts
-	 * on field values - this is similar to SolrJ's functionality.
-	 *
-	 * <code>
-	 * $doc = new Apache_Solr_Document();
-	 *
-	 * $doc->addField('foo', 'bar', 2.0);
-	 * $doc->addField('foo', 'baz', 3.0);
-	 *
-	 * // resultant field boost will be 6!
-	 * echo $doc->getFieldBoost('foo');
-	 * </code>
-	 *
-	 * @param string $key
-	 * @param mixed $value
-	 * @param mixed $boost Use false for default boost, else cast to float that should be > 0 or will be treated as false
-	 */
-	public function addField($key, $value, $boost = false)
-	{
-		if (!isset($this->_fields[$key]))
-		{
-			// create holding array if this is the first value
-			$this->_fields[$key] = array();
-		}
-		else if (!is_array($this->_fields[$key]))
-		{
-			// move existing value into array if it is not already an array
-			$this->_fields[$key] = array($this->_fields[$key]);
-		}
-
-		if ($this->getFieldBoost($key) === false)
-		{
-			// boost not already set, set it now
-			$this->setFieldBoost($key, $boost);
-		}
-		else if ((float) $boost > 0.0)
-		{
-			// multiply passed boost with current field boost - similar to SolrJ implementation
-			$this->_fieldBoosts[$key] *= (float) $boost;
-		}
-
-		// add value to array
-		$this->_fields[$key][] = $value;
-	}
-
-	/**
-	 * Handle the array manipulation for a multi-valued field
-	 *
-	 * @param string $key
-	 * @param string $value
-	 * @param mixed $boost Use false for default boost, else cast to float that should be > 0 or will be treated as false
-	 *
-	 * @deprecated Use addField(...) instead
-	 */
-	public function setMultiValue($key, $value, $boost = false)
-	{
-		$this->addField($key, $value, $boost);
-	}
-
-	/**
-	 * Get field information
-	 *
-	 * @param string $key
-	 * @return mixed associative array of info if field exists, false otherwise
-	 */
-	public function getField($key)
-	{
-		if (isset($this->_fields[$key]))
-		{
-			return array(
-				'name' => $key,
-				'value' => $this->_fields[$key],
-				'boost' => $this->getFieldBoost($key)
-			);
-		}
-
-		return false;
-	}
-
-	/**
-	 * Set a field value. Multi-valued fields should be set as arrays
-	 * or instead use the addField(...) function which will automatically
-	 * make sure the field is an array.
-	 *
-	 * @param string $key
-	 * @param mixed $value
-	 * @param mixed $boost Use false for default boost, else cast to float that should be > 0 or will be treated as false
-	 */
-	public function setField($key, $value, $boost = false)
-	{
-		$this->_fields[$key] = $value;
-		$this->setFieldBoost($key, $boost);
-	}
-
-	/**
-	 * Get the currently set field boost for a document field
-	 *
-	 * @param string $key
-	 * @return float currently set field boost, false if one is not set
-	 */
-	public function getFieldBoost($key)
-	{
-		return isset($this->_fieldBoosts[$key]) ? $this->_fieldBoosts[$key] : false;
-	}
-
-	/**
-	 * Set the field boost for a document field
-	 *
-	 * @param string $key field name for the boost
-	 * @param mixed $boost Use false for default boost, else cast to float that should be > 0 or will be treated as false
-	 */
-	public function setFieldBoost($key, $boost)
-	{
-		$boost = (float) $boost;
-
-		if ($boost > 0.0)
-		{
-			$this->_fieldBoosts[$key] = $boost;
-		}
-		else
-		{
-			$this->_fieldBoosts[$key] = false;
-		}
-	}
-
-	/**
-	 * Return current field boosts, indexed by field name
-	 *
-	 * @return array
-	 */
-	public function getFieldBoosts()
-	{
-		return $this->_fieldBoosts;
-	}
-
-	/**
-	 * Get the names of all fields in this document
-	 *
-	 * @return array
-	 */
-	public function getFieldNames()
-	{
-		return array_keys($this->_fields);
-	}
-
-	/**
-	 * Get the values of all fields in this document
-	 *
-	 * @return array
-	 */
-	public function getFieldValues()
-	{
-		return array_values($this->_fields);
-	}
-
-	/**
-	 * IteratorAggregate implementation function. Allows usage:
-	 *
-	 * <code>
-	 * foreach ($document as $key => $value)
-	 * {
-	 * 	...
-	 * }
-	 * </code>
-	 */
-	public function getIterator()
-	{
-		$arrayObject = new ArrayObject($this->_fields);
-
-		return $arrayObject->getIterator();
-	}
-
-	/**
-	 * Magic get for field values
-	 *
-	 * @param string $key
-	 * @return mixed
-	 */
-	public function __get($key)
-	{
-		if (isset($this->_fields[$key]))
-		{
-			return $this->_fields[$key];
-		}
-		
-		return null;
-	}
-
-	/**
-	 * Magic set for field values. Multi-valued fields should be set as arrays
-	 * or instead use the addField(...) function which will automatically
-	 * make sure the field is an array.
-	 *
-	 * @param string $key
-	 * @param mixed $value
-	 */
-	public function __set($key, $value)
-	{
-		$this->setField($key, $value);
-	}
-
-	/**
-	 * Magic isset for fields values.  Do not call directly. Allows usage:
-	 *
-	 * <code>
-	 * isset($document->some_field);
-	 * </code>
-	 *
-	 * @param string $key
-	 * @return boolean
-	 */
-	public function __isset($key)
-	{
-		return isset($this->_fields[$key]);
-	}
-
-	/**
-	 * Magic unset for field values. Do not call directly. Allows usage:
-	 *
-	 * <code>
-	 * unset($document->some_field);
-	 * </code>
-	 *
-	 * @param string $key
-	 */
-	public function __unset($key)
-	{
-		unset($this->_fields[$key]);
-		unset($this->_fieldBoosts[$key]);
-	}
-}

+ 0 - 50
SolrPhpClient/Apache/Solr/Exception.php

@@ -1,50 +0,0 @@
-<?php
-/**
- * Copyright (c) 2007-2011, Servigistics, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Servigistics, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * @copyright Copyright 2007-2011 Servigistics, Inc. (http://servigistics.com)
- * @license http://solr-php-client.googlecode.com/svn/trunk/COPYING New BSD
- * @version $Id: Exception.php 54 2011-02-04 16:29:18Z donovan.jimenez $
- *
- * @package Apache
- * @subpackage Solr
- * @author Donovan Jimenez <djimenez@conduit-it.com>
- */
-
-class Apache_Solr_Exception extends Exception
-{
-	/**
-	 * SVN Revision meta data for this class
-	 */
-	const SVN_REVISION = '$Revision: 54 $';
-
-	/**
-	 * SVN ID meta data for this class
-	 */
-	const SVN_ID = '$Id: Exception.php 54 2011-02-04 16:29:18Z donovan.jimenez $';
-}

+ 0 - 89
SolrPhpClient/Apache/Solr/HttpTransport/Abstract.php

@@ -1,89 +0,0 @@
-<?php
-/**
- * Copyright (c) 2007-2011, Servigistics, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Servigistics, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * @copyright Copyright 2007-2011 Servigistics, Inc. (http://servigistics.com)
- * @license http://solr-php-client.googlecode.com/svn/trunk/COPYING New BSD
- * @version $Id: $
- *
- * @package Apache
- * @subpackage Solr
- * @author Timo Schmidt <timo.schmidt@aoemedia.de>, Donovan Jimenez <djimenez@conduit-it.com>
- */
-
-/**
- * Convenience class that implements the transport implementation. Can be extended by
- * real implementations to do some of the common book keeping
- */
-abstract class Apache_Solr_HttpTransport_Abstract implements Apache_Solr_HttpTransport_Interface
-{	
-	/**
-	 * Our default timeout value for requests that don't specify a timeout
-	 *
-	 * @var float
-	 */
-	private $_defaultTimeout = false;
-		
-	/**
-	 * Get the current default timeout setting (initially the default_socket_timeout ini setting)
-	 * in seconds
-	 *
-	 * @return float
-	 */
-	public function getDefaultTimeout()
-	{
-		// lazy load the default timeout from the ini settings
-		if ($this->_defaultTimeout === false)
-		{
-			$this->_defaultTimeout = (int) ini_get('default_socket_timeout');
-
-			// double check we didn't get 0 for a timeout
-			if ($this->_defaultTimeout <= 0)
-			{
-				$this->_defaultTimeout = 60;
-			}
-		}
-		
-		return $this->_defaultTimeout;
-	}
-	
-	/**
-	 * Set the current default timeout for all HTTP requests
-	 *
-	 * @param float $timeout
-	 */
-	public function setDefaultTimeout($timeout)
-	{
-		$timeout = (float) $timeout;
-		
-		if ($timeout >= 0)
-		{
-			$this->_defaultTimeout = $timeout;
-		}
-	}	
-}

+ 0 - 198
SolrPhpClient/Apache/Solr/HttpTransport/Curl.php

@@ -1,198 +0,0 @@
-<?php
-/**
- * Copyright (c) 2007-2011, Servigistics, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Servigistics, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * @copyright Copyright 2007-2011 Servigistics, Inc. (http://servigistics.com)
- * @license http://solr-php-client.googlecode.com/svn/trunk/COPYING New BSD
- * @version $Id: $
- *
- * @package Apache
- * @subpackage Solr
- * @author Timo Schmidt <timo.schmidt@aoemedia.de>, Donovan Jimenez <djimenez@conduit-it.com>
- */
-
-// Require Apache_Solr_HttpTransport_Abstract
-require_once(dirname(__FILE__) . '/Abstract.php');
-
-/**
- * A Curl based HTTP transport. Uses a single curl session for all requests.
- */
-class Apache_Solr_HttpTransport_Curl extends Apache_Solr_HttpTransport_Abstract
-{
-	/**
-	 * SVN Revision meta data for this class
-	 */
-	const SVN_REVISION = '$Revision:$';
-
-	/**
-	 * SVN ID meta data for this class
-	 */
-	const SVN_ID = '$Id:$';
-
-	/**
-	 * Curl Session Handle
-	 *
-	 * @var resource
-	 */
-	private $_curl;
-
-	/**
-	 * Initializes a curl session
-	 */
-	public function __construct()
-	{
-		// initialize a CURL session
-		$this->_curl = curl_init();
-
-		// set common options that will not be changed during the session
-		curl_setopt_array($this->_curl, array(
-			// return the response body from curl_exec
-			CURLOPT_RETURNTRANSFER => true,
-
-			// get the output as binary data
-			CURLOPT_BINARYTRANSFER => true,
-
-			// we do not need the headers in the output, we get everything we need from curl_getinfo
-			CURLOPT_HEADER => false
-		));
-	}
-
-	/**
-	 * Closes a curl session
-	 */
-	function __destruct()
-	{
-		// close our curl session
-		curl_close($this->_curl);
-	}
-
-	public function performGetRequest($url, $timeout = false)
-	{
-		// check the timeout value
-		if ($timeout === false || $timeout <= 0.0)
-		{
-			// use the default timeout
-			$timeout = $this->getDefaultTimeout();
-		}
-
-		// set curl GET options
-		curl_setopt_array($this->_curl, array(
-			// make sure we're returning the body
-			CURLOPT_NOBODY => false,
-
-			// make sure we're GET
-			CURLOPT_HTTPGET => true,
-
-			// set the URL
-			CURLOPT_URL => $url,
-
-			// set the timeout
-			CURLOPT_TIMEOUT => $timeout
-		));
-
-		// make the request
-		$responseBody = curl_exec($this->_curl);
-
-		// get info from the transfer
-		$statusCode = curl_getinfo($this->_curl, CURLINFO_HTTP_CODE);
-		$contentType = curl_getinfo($this->_curl, CURLINFO_CONTENT_TYPE);
-
-		return new Apache_Solr_HttpTransport_Response($statusCode, $contentType, $responseBody);
-	}
-
-	public function performHeadRequest($url, $timeout = false)
-	{
-		// check the timeout value
-		if ($timeout === false || $timeout <= 0.0)
-		{
-			// use the default timeout
-			$timeout = $this->getDefaultTimeout();
-		}
-
-		// set curl HEAD options
-		curl_setopt_array($this->_curl, array(
-			// this both sets the method to HEAD and says not to return a body
-			CURLOPT_NOBODY => true,
-
-			// set the URL
-			CURLOPT_URL => $url,
-
-			// set the timeout
-			CURLOPT_TIMEOUT => $timeout
-		));
-
-		// make the request
-		$responseBody = curl_exec($this->_curl);
-
-		// get info from the transfer
-		$statusCode = curl_getinfo($this->_curl, CURLINFO_HTTP_CODE);
-		$contentType = curl_getinfo($this->_curl, CURLINFO_CONTENT_TYPE);
-
-		return new Apache_Solr_HttpTransport_Response($statusCode, $contentType, $responseBody);
-	}
-
-	public function performPostRequest($url, $postData, $contentType, $timeout = false)
-	{
-		// check the timeout value
-		if ($timeout === false || $timeout <= 0.0)
-		{
-			// use the default timeout
-			$timeout = $this->getDefaultTimeout();
-		}
-
-		// set curl POST options
-		curl_setopt_array($this->_curl, array(
-			// make sure we're returning the body
-			CURLOPT_NOBODY => false,
-
-			// make sure we're POST
-			CURLOPT_POST => true,
-
-			// set the URL
-			CURLOPT_URL => $url,
-
-			// set the post data
-			CURLOPT_POSTFIELDS => $postData,
-
-			// set the content type
-			CURLOPT_HTTPHEADER => array("Content-Type: {$contentType}"),
-
-			// set the timeout
-			CURLOPT_TIMEOUT => $timeout
-		));
-
-		// make the request
-		$responseBody = curl_exec($this->_curl);
-
-		// get info from the transfer
-		$statusCode = curl_getinfo($this->_curl, CURLINFO_HTTP_CODE);
-		$contentType = curl_getinfo($this->_curl, CURLINFO_CONTENT_TYPE);
-
-		return new Apache_Solr_HttpTransport_Response($statusCode, $contentType, $responseBody);
-	}
-}

+ 0 - 196
SolrPhpClient/Apache/Solr/HttpTransport/CurlNoReuse.php

@@ -1,196 +0,0 @@
-<?php
-/**
- * Copyright (c) 2007-2011, Servigistics, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Servigistics, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * @copyright Copyright 2007-2011 Servigistics, Inc. (http://servigistics.com)
- * @license http://solr-php-client.googlecode.com/svn/trunk/COPYING New BSD
- * @version $Id: $
- *
- * @package Apache
- * @subpackage Solr
- * @author Timo Schmidt <timo.schmidt@aoemedia.de>, Donovan Jimenez <djimenez@conduit-it.com>
- */
-
-// Require Apache_Solr_HttpTransport_Abstract
-require_once(dirname(__FILE__) . '/Abstract.php');
-
-/**
- * An alternative Curl HTTP transport that opens and closes a curl session for
- * every request. This isn't the recommended way to use curl, but some version of
- * PHP have memory issues.
- */
-class Apache_Solr_HttpTransport_CurlNoReuse extends Apache_Solr_HttpTransport_Abstract
-{
-	/**
-	 * SVN Revision meta data for this class
-	 */
-	const SVN_REVISION = '$Revision:$';
-
-	/**
-	 * SVN ID meta data for this class
-	 */
-	const SVN_ID = '$Id:$';
-
-	public function performGetRequest($url, $timeout = false)
-	{
-		// check the timeout value
-		if ($timeout === false || $timeout <= 0.0)
-		{
-			// use the default timeout
-			$timeout = $this->getDefaultTimeout();
-		}
-		
-		$curl = curl_init();
-
-		// set curl GET options
-		curl_setopt_array($curl, array(
-			// return the response body from curl_exec
-			CURLOPT_RETURNTRANSFER => true,
-
-			// get the output as binary data
-			CURLOPT_BINARYTRANSFER => true,
-
-			// we do not need the headers in the output, we get everything we need from curl_getinfo
-			CURLOPT_HEADER => false,
-			
-			// set the URL
-			CURLOPT_URL => $url,
-
-			// set the timeout
-			CURLOPT_TIMEOUT => $timeout
-		));
-
-		// make the request
-		$responseBody = curl_exec($curl);
-
-		// get info from the transfer
-		$statusCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
-		$contentType = curl_getinfo($curl, CURLINFO_CONTENT_TYPE);
-		
-		// close our curl session - we're done with it
-		curl_close($curl);
-
-		return new Apache_Solr_HttpTransport_Response($statusCode, $contentType, $responseBody);
-	}
-
-	public function performHeadRequest($url, $timeout = false)
-	{
-		// check the timeout value
-		if ($timeout === false || $timeout <= 0.0)
-		{
-			// use the default timeout
-			$timeout = $this->getDefaultTimeout();
-		}
-		
-		$curl = curl_init();
-
-		// set curl HEAD options
-		curl_setopt_array($curl, array(
-			// return the response body from curl_exec
-			CURLOPT_RETURNTRANSFER => true,
-
-			// get the output as binary data
-			CURLOPT_BINARYTRANSFER => true,
-
-			// we do not need the headers in the output, we get everything we need from curl_getinfo
-			CURLOPT_HEADER => false,
-			
-			// this both sets the method to HEAD and says not to return a body
-			CURLOPT_NOBODY => true,
-
-			// set the URL
-			CURLOPT_URL => $url,
-
-			// set the timeout
-			CURLOPT_TIMEOUT => $timeout
-		));
-
-		// make the request
-		$responseBody = curl_exec($curl);
-
-		// get info from the transfer
-		$statusCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
-		$contentType = curl_getinfo($curl, CURLINFO_CONTENT_TYPE);
-		
-		// close our curl session - we're done with it
-		curl_close($curl);
-
-		return new Apache_Solr_HttpTransport_Response($statusCode, $contentType, $responseBody);
-	}
-
-	public function performPostRequest($url, $postData, $contentType, $timeout = false)
-	{
-		// check the timeout value
-		if ($timeout === false || $timeout <= 0.0)
-		{
-			// use the default timeout
-			$timeout = $this->getDefaultTimeout();
-		}
-
-		$curl = curl_init();
-		
-		// set curl POST options
-		curl_setopt_array($curl, array(
-			// return the response body from curl_exec
-			CURLOPT_RETURNTRANSFER => true,
-
-			// get the output as binary data
-			CURLOPT_BINARYTRANSFER => true,
-
-			// we do not need the headers in the output, we get everything we need from curl_getinfo
-			CURLOPT_HEADER => false,
-			
-			// make sure we're POST
-			CURLOPT_POST => true,
-
-			// set the URL
-			CURLOPT_URL => $url,
-
-			// set the post data
-			CURLOPT_POSTFIELDS => $postData,
-
-			// set the content type
-			CURLOPT_HTTPHEADER => array("Content-Type: {$contentType}"),
-
-			// set the timeout
-			CURLOPT_TIMEOUT => $timeout
-		));
-
-		// make the request
-		$responseBody = curl_exec($curl);
-
-		// get info from the transfer
-		$statusCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
-		$contentType = curl_getinfo($curl, CURLINFO_CONTENT_TYPE);
-
-		// close our curl session - we're done with it
-		curl_close($curl);
-
-		return new Apache_Solr_HttpTransport_Response($statusCode, $contentType, $responseBody);
-	}
-}

+ 0 - 216
SolrPhpClient/Apache/Solr/HttpTransport/FileGetContents.php

@@ -1,216 +0,0 @@
-<?php
-/**
- * Copyright (c) 2007-2011, Servigistics, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Servigistics, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * @copyright Copyright 2007-2011 Servigistics, Inc. (http://servigistics.com)
- * @license http://solr-php-client.googlecode.com/svn/trunk/COPYING New BSD
- * @version $Id: $
- *
- * @package Apache
- * @subpackage Solr
- * @author Donovan Jimenez <djimenez@conduit-it.com>
- */
-
-// Require Apache_Solr_HttpTransport_Abstract
-require_once(dirname(__FILE__) . '/Abstract.php');
-
-/**
- * HTTP Transport implemenation that uses the builtin http URL wrappers and file_get_contents
- */
-class Apache_Solr_HttpTransport_FileGetContents extends Apache_Solr_HttpTransport_Abstract
-{
-	/**
-	 * SVN Revision meta data for this class
-	 */
-	const SVN_REVISION = '$Revision:  $';
-
-	/**
-	 * SVN ID meta data for this class
-	 */
-	const SVN_ID = '$Id:  $';
-		
-	/**
-	 * Reusable stream context resources for GET and POST operations
-	 *
-	 * @var resource
-	 */
-	private $_getContext, $_headContext, $_postContext;
-	
-	/**
-	 * Initializes our reuseable get and post stream contexts
-	 */
-	public function __construct()
-	{
-		$this->_getContext = stream_context_create();
-		$this->_headContext = stream_context_create();
-		$this->_postContext = stream_context_create();
-	}
-
-	public function performGetRequest($url, $timeout = false)
-	{
-		// set the timeout if specified
-		if ($timeout !== FALSE && $timeout > 0.0)
-		{
-			// timeouts with file_get_contents seem to need
-			// to be halved to work as expected
-			$timeout = (float) $timeout / 2;
-
-			stream_context_set_option($this->_getContext, 'http', 'timeout', $timeout);
-		}
-		else
-		{
-			// use the default timeout pulled from default_socket_timeout otherwise
-			stream_context_set_option($this->_getContext, 'http', 'timeout', $this->getDefaultTimeout());
-		}
-
-		// $http_response_headers will be updated by the call to file_get_contents later
-		// see http://us.php.net/manual/en/wrappers.http.php for documentation
-		// Unfortunately, it will still create a notice in analyzers if we don't set it here
-		$http_response_header = null;
-		$responseBody = @file_get_contents($url, false, $this->_getContext);
-		
-		return $this->_getResponseFromParts($responseBody, $http_response_header);
-	}
-
-	public function performHeadRequest($url, $timeout = false)
-	{
-		stream_context_set_option($this->_headContext, array(
-				'http' => array(
-					// set HTTP method
-					'method' => 'HEAD',
-
-					// default timeout
-					'timeout' => $this->getDefaultTimeout()
-				)
-			)
-		);
-
-		// set the timeout if specified
-		if ($timeout !== FALSE && $timeout > 0.0)
-		{
-			// timeouts with file_get_contents seem to need
-			// to be halved to work as expected
-			$timeout = (float) $timeout / 2;
-
-			stream_context_set_option($this->_headContext, 'http', 'timeout', $timeout);
-		}
-		
-		// $http_response_headers will be updated by the call to file_get_contents later
-		// see http://us.php.net/manual/en/wrappers.http.php for documentation
-		// Unfortunately, it will still create a notice in analyzers if we don't set it here
-		$http_response_header = null;
-		$responseBody = @file_get_contents($url, false, $this->_headContext);
-
-		return $this->_getResponseFromParts($responseBody, $http_response_header);
-	}
-	
-	public function performPostRequest($url, $rawPost, $contentType, $timeout = false)
-	{
-		stream_context_set_option($this->_postContext, array(
-				'http' => array(
-					// set HTTP method
-					'method' => 'POST',
-
-					// Add our posted content type
-					'header' => "Content-Type: $contentType",
-
-					// the posted content
-					'content' => $rawPost,
-
-					// default timeout
-					'timeout' => $this->getDefaultTimeout()
-				)
-			)
-		);
-
-		// set the timeout if specified
-		if ($timeout !== FALSE && $timeout > 0.0)
-		{
-			// timeouts with file_get_contents seem to need
-			// to be halved to work as expected
-			$timeout = (float) $timeout / 2;
-
-			stream_context_set_option($this->_postContext, 'http', 'timeout', $timeout);
-		}
-
-		// $http_response_header will be updated by the call to file_get_contents later
-		// see http://us.php.net/manual/en/wrappers.http.php for documentation
-		// Unfortunately, it will still create a notice in analyzers if we don't set it here
-		$http_response_header = null;
-		$responseBody = @file_get_contents($url, false, $this->_postContext);
-		
-		// reset content of post context to reclaim memory
-		stream_context_set_option($this->_postContext, 'http', 'content', '');
-		
-		return $this->_getResponseFromParts($responseBody, $http_response_header);
-	}
-	
-	private function _getResponseFromParts($rawResponse, $httpHeaders)
-	{
-		//Assume 0, false as defaults
-		$status = 0;
-		$contentType = false;
-
-		//iterate through headers for real status, type, and encoding
-		if (is_array($httpHeaders) && count($httpHeaders) > 0)
-		{
-			//look at the first headers for the HTTP status code
-			//and message (errors are usually returned this way)
-			//
-			//HTTP 100 Continue response can also be returned before
-			//the REAL status header, so we need look until we find
-			//the last header starting with HTTP
-			//
-			//the spec: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.1
-			//
-			//Thanks to Daniel Andersson for pointing out this oversight
-			while (isset($httpHeaders[0]) && substr($httpHeaders[0], 0, 4) == 'HTTP')
-			{
-				// we can do a intval on status line without the "HTTP/1.X " to get the code
-				$status = intval(substr($httpHeaders[0], 9));
-
-				// remove this from the headers so we can check for more
-				array_shift($httpHeaders);
-			}
-
-			//Look for the Content-Type response header and determine type
-			//and encoding from it (if possible - such as 'Content-Type: text/plain; charset=UTF-8')
-			foreach ($httpHeaders as $header)
-			{
-				// look for the header that starts appropriately
-				if (strncasecmp($header, 'Content-Type:', 13) == 0)
-				{
-					$contentType = substr($header, 13);
-					break;
-				}
-			}
-		}
-		
-		return new Apache_Solr_HttpTransport_Response($status, $contentType, $rawResponse);
-	}
-}

+ 0 - 94
SolrPhpClient/Apache/Solr/HttpTransport/Interface.php

@@ -1,94 +0,0 @@
-<?php
-/**
- * Copyright (c) 2007-2011, Servigistics, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Servigistics, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * @copyright Copyright 2007-2011 Servigistics, Inc. (http://servigistics.com)
- * @license http://solr-php-client.googlecode.com/svn/trunk/COPYING New BSD
- * @version $Id: $
- *
- * @package Apache
- * @subpackage Solr
- * @author Timo Schmidt <timo.schmidt@aoemedia.de>, Donovan Jimenez <djimenez@conduit-it.com>
- */
-
-// require Apache_Solr_HttpTransport_Response
-require_once(dirname(__FILE__) . '/Response.php');
-
-/**
- * Interface that all Transport (HTTP Requester) implementations must implement. These
- * Implementations can then be plugged into the Service instance in order to user their
- * the desired method for making HTTP requests
- */
-interface Apache_Solr_HttpTransport_Interface
-{
-	/**
-	 * Get the current default timeout for all HTTP requests
-	 *
-	 * @return float
-	 */
-	public function getDefaultTimeout();
-	
-	/**
-	 * Set the current default timeout for all HTTP requests
-	 *
-	 * @param float $timeout
-	 */
-	public function setDefaultTimeout($timeout);
-		
-	/**
-	 * Perform a GET HTTP operation with an optional timeout and return the response
-	 * contents, use getLastResponseHeaders to retrieve HTTP headers
-	 *
-	 * @param string $url
-	 * @param float $timeout
-	 * @return Apache_Solr_HttpTransport_Response HTTP response
-	 */
-	public function performGetRequest($url, $timeout = false);
-	
-	/**
-	 * Perform a HEAD HTTP operation with an optional timeout and return the response
-	 * headers - NOTE: head requests have no response body
-	 *
-	 * @param string $url
-	 * @param float $timeout
-	 * @return Apache_Solr_HttpTransport_Response HTTP response
-	 */
-	public function performHeadRequest($url, $timeout = false);
-	
-	/**
-	 * Perform a POST HTTP operation with an optional timeout and return the response
-	 * contents, use getLastResponseHeaders to retrieve HTTP headers
-	 *
-	 * @param string $url
-	 * @param string $rawPost
-	 * @param string $contentType
-	 * @param float $timeout
-	 * @return Apache_Solr_HttpTransport_Response HTTP response
-	 */
-	public function performPostRequest($url, $rawPost, $contentType, $timeout = false);
-}

+ 0 - 255
SolrPhpClient/Apache/Solr/HttpTransport/Response.php

@@ -1,255 +0,0 @@
-<?php
-/**
- * Copyright (c) 2007-2011, Servigistics, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Servigistics, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * @copyright Copyright 2007-2011 Servigistics, Inc. (http://servigistics.com)
- * @license http://solr-php-client.googlecode.com/svn/trunk/COPYING New BSD
- * @version $Id: $
- *
- * @package Apache
- * @subpackage Solr
- * @author Donovan Jimenez <djimenez@conduit-it.com>
- */
-
-/**
- * Represents the required pieces of an HTTP response provided by HTTP transport
- * implementations and then consumed by the Apache_Solr_Response class which provides
- * decoding
- */
-class Apache_Solr_HttpTransport_Response
-{
-	/**
-	 * Status Messages indexed by Status Code
-	 * Obtained from: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
-	 *
-	 * @var array
-	 */
-	static private $_defaultStatusMessages = array(
-		// Specific to PHP Solr Client
-		0 => "Communication Error",
-		
-		// Informational 1XX
-		100 => "Continue",
-		101 => "Switching Protocols",
-		
-		// Successful 2XX
-		200 => "OK",
-		201 => "Created",
-		202 => "Accepted",
-		203 => "Non-Authoritative Information",
-		204 => "No Content",
-		205 => "Reset Content",
-		206 => "Partial Content",
-		
-		// Redirection 3XX
-		300 => "Multiple Choices",
-		301 => "Moved Permanently",
-		302 => "Found",
-		303 => "See Other",
-		304 => "Not Modified",
-		305 => "Use Proxy",
-		307 => "Temporary Redirect",
-		
-		// Client Error 4XX
-		400 => "Bad Request",
-		401 => "Unauthorized",
-		402 => "Payment Required",
-		403 => "Forbidden",
-		404 => "Not Found",
-		405 => "Method Not Allowed",
-		406 => "Not Acceptable",
-		407 => "Proxy Authentication Required",
-		408 => "Request Timeout",
-		409 => "Conflict",
-		410 => "Gone",
-		411 => "Length Required",
-		412 => "Precondition Failed",
-		413 => "Request Entity Too Large",
-		414 => "Request-URI Too Long",
-		415 => "Unsupported Media Type",
-		416 => "Request Range Not Satisfiable",
-		417 => "Expectation Failed",
-		
-		// Server Error 5XX
-		500 => "Internal Server Error",
-		501 => "Not Implemented",
-		502 => "Bad Gateway",
-		503 => "Service Unavailable",
-		504 => "Gateway Timeout",
-		505 => "HTTP Version Not Supported"
-	);
-	
-	/**
-	 * Get the HTTP status message based on status code
-	 *
-	 * @return string
-	 */
-	public static function getDefaultStatusMessage($statusCode)
-	{
-		$statusCode = (int) $statusCode;
-		
-		if (isset(self::$_defaultStatusMessages[$statusCode]))
-		{
-			return self::$_defaultStatusMessages[$statusCode];
-		}
-		
-		return "Unknown Status";
-	}
-	
-	/**
-	 * The response's HTTP status code
-	 *
-	 * @var integer
-	 */
-	private $_statusCode;
-	
-	/**
-	 * The response's HTTP status message
-	 *
-	 * @var string
-	 */
-	private $_statusMessage;
-	
-	/**
-	 * The response's mime type
-	 *
-	 * @var string
-	 */
-	private $_mimeType;
-	
-	/**
-	 * The response's character encoding
-	 *
-	 * @var string
-	 */
-	private $_encoding;
-	
-	/**
-	 * The response's data
-	 *
-	 * @var string
-	 */
-	private $_responseBody;
-	
-	/**
-	 * Construct a HTTP transport response
-	 * 
-	 * @param integer $statusCode The HTTP status code
-	 * @param string $contentType The VALUE of the Content-Type HTTP header
-	 * @param string $responseBody The body of the HTTP response
-	 */
-	public function __construct($statusCode, $contentType, $responseBody)
-	{
-		// set the status code, make sure its an integer
-		$this->_statusCode = (int) $statusCode;
-		
-		// lookup up status message based on code
-		$this->_statusMessage = self::getDefaultStatusMessage($this->_statusCode);
-		
-		// set the response body, it should always be a string
-		$this->_responseBody = (string) $responseBody;
-		
-		// parse the content type header value for mimetype and encoding
-		// first set default values that will remain if we can't find
-		// what we're looking for in the content type
-		$this->_mimeType = "text/plain";
-		$this->_encoding = "UTF-8";
-		
-		if ($contentType)
-		{
-			// now break apart the header to see if there's character encoding
-			$contentTypeParts = explode(';', $contentType, 2);
-
-			if (isset($contentTypeParts[0]))
-			{
-				$this->_mimeType = trim($contentTypeParts[0]);
-			}
-
-			if (isset($contentTypeParts[1]))
-			{
-				// we have a second part, split it further
-				$contentTypeParts = explode('=', $contentTypeParts[1]);
-
-				if (isset($contentTypeParts[1]))
-				{
-					$this->_encoding = trim($contentTypeParts[1]);
-				}
-			}
-		}
-	}
-	
-	/**
-	 * Get the status code of the response
-	 *
-	 * @return integer
-	 */
-	public function getStatusCode()
-	{
-		return $this->_statusCode;
-	}
-	
-	/**
-	 * Get the status message of the response
-	 *
-	 * @return string
-	 */
-	public function getStatusMessage()
-	{
-		return $this->_statusMessage;
-	}
-	
-	/**
-	 * Get the mimetype of the response body
-	 *
-	 * @return string
-	 */
-	public function getMimeType()
-	{
-		return $this->_mimeType;
-	}
-	
-	/**
-	 * Get the charset encoding of the response body.
-	 *
-	 * @return string
-	 */
-	public function getEncoding()
-	{
-		return $this->_encoding;
-	}
-	
-	/**
-	 * Get the raw response body
-	 *
-	 * @return string
-	 */
-	public function getBody()
-	{
-		return $this->_responseBody;
-	}
-}

+ 0 - 79
SolrPhpClient/Apache/Solr/HttpTransportException.php

@@ -1,79 +0,0 @@
-<?php
-/**
- * Copyright (c) 2007-2011, Servigistics, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Servigistics, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * @copyright Copyright 2007-2011 Servigistics, Inc. (http://servigistics.com)
- * @license http://solr-php-client.googlecode.com/svn/trunk/COPYING New BSD
- * @version $Id: HttpTransportException.php 54 2011-02-04 16:29:18Z donovan.jimenez $
- *
- * @package Apache
- * @subpackage Solr
- * @author Donovan Jimenez <djimenez@conduit-it.com>
- */
-
-class Apache_Solr_HttpTransportException extends Apache_Solr_Exception
-{
-	/**
-	 * SVN Revision meta data for this class
-	 */
-	const SVN_REVISION = '$Revision: 54 $';
-
-	/**
-	 * SVN ID meta data for this class
-	 */
-	const SVN_ID = '$Id: HttpTransportException.php 54 2011-02-04 16:29:18Z donovan.jimenez $';
-
-	/**
-	 * Response for which exception was generated
-	 *
-	 * @var Apache_Solr_Response
-	 */
-	private $_response;
-
-	/**
-	 * HttpTransportException Constructor
-	 *
-	 * @param Apache_Solr_Response $response
-	 */
-	public function __construct(Apache_Solr_Response $response)
-	{
-		parent::__construct("'{$response->getHttpStatus()}' Status: {$response->getHttpStatusMessage()}", $response->getHttpStatus());
-
-		$this->_response = $response;
-	}
-
-	/**
-	 * Get the response for which this exception was generated
-	 *
-	 * @return Apache_Solr_Response
-	 */
-	public function getResponse()
-	{
-		return $this->_response;
-	}
-}

+ 0 - 50
SolrPhpClient/Apache/Solr/InvalidArgumentException.php

@@ -1,50 +0,0 @@
-<?php
-/**
- * Copyright (c) 2007-2011, Servigistics, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Servigistics, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * @copyright Copyright 2007-2011 Servigistics, Inc. (http://servigistics.com)
- * @license http://solr-php-client.googlecode.com/svn/trunk/COPYING New BSD
- * @version $Id: InvalidArgumentException.php 54 2011-02-04 16:29:18Z donovan.jimenez $
- *
- * @package Apache
- * @subpackage Solr
- * @author Donovan Jimenez <djimenez@conduit-it.com>
- */
-
-class Apache_Solr_InvalidArgumentException extends Apache_Solr_Exception
-{
-	/**
-	 * SVN Revision meta data for this class
-	 */
-	const SVN_REVISION = '$Revision: 54 $';
-
-	/**
-	 * SVN ID meta data for this class
-	 */
-	const SVN_ID = '$Id: InvalidArgumentException.php 54 2011-02-04 16:29:18Z donovan.jimenez $';
-}

+ 0 - 50
SolrPhpClient/Apache/Solr/NoServiceAvailableException.php

@@ -1,50 +0,0 @@
-<?php
-/**
- * Copyright (c) 2007-2011, Servigistics, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Servigistics, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * @copyright Copyright 2007-2011 Servigistics, Inc. (http://servigistics.com)
- * @license http://solr-php-client.googlecode.com/svn/trunk/COPYING New BSD
- * @version $Id: NoServiceAvailableException.php 54 2011-02-04 16:29:18Z donovan.jimenez $
- *
- * @package Apache
- * @subpackage Solr
- * @author Donovan Jimenez <djimenez@conduit-it.com>
- */
-
-class Apache_Solr_NoServiceAvailableException extends Apache_Solr_Exception
-{
-	/**
-	 * SVN Revision meta data for this class
-	 */
-	const SVN_REVISION = '$Revision: 54 $';
-
-	/**
-	 * SVN ID meta data for this class
-	 */
-	const SVN_ID = '$Id: NoServiceAvailableException.php 54 2011-02-04 16:29:18Z donovan.jimenez $';
-}

+ 0 - 50
SolrPhpClient/Apache/Solr/ParserException.php

@@ -1,50 +0,0 @@
-<?php
-/**
- * Copyright (c) 2007-2011, Servigistics, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Servigistics, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * @copyright Copyright 2007-2011 Servigistics, Inc. (http://servigistics.com)
- * @license http://solr-php-client.googlecode.com/svn/trunk/COPYING New BSD
- * @version $Id: ParserException.php 54 2011-02-04 16:29:18Z donovan.jimenez $
- *
- * @package Apache
- * @subpackage Solr
- * @author Donovan Jimenez <djimenez@conduit-it.com>
- */
-
-class Apache_Solr_ParserException extends Apache_Solr_Exception
-{
-	/**
-	 * SVN Revision meta data for this class
-	 */
-	const SVN_REVISION = '$Revision: 54 $';
-
-	/**
-	 * SVN ID meta data for this class
-	 */
-	const SVN_ID = '$Id: ParserException.php 54 2011-02-04 16:29:18Z donovan.jimenez $';
-}

+ 0 - 247
SolrPhpClient/Apache/Solr/Response.php

@@ -1,247 +0,0 @@
-<?php
-/**
- * Copyright (c) 2007-2011, Servigistics, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Servigistics, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * @copyright Copyright 2007-2011 Servigistics, Inc. (http://servigistics.com)
- * @license http://solr-php-client.googlecode.com/svn/trunk/COPYING New BSD
- * @version $Id: Response.php 54 2011-02-04 16:29:18Z donovan.jimenez $
- *
- * @package Apache
- * @subpackage Solr
- * @author Donovan Jimenez <djimenez@conduit-it.com>
- */
-
-require_once(dirname(__FILE__) . '/ParserException.php');
-
-/**
- * Represents a Solr response.  Parses the raw response into a set of stdClass objects
- * and associative arrays for easy access.
- *
- * Currently requires json_decode which is bundled with PHP >= 5.2.0, Alternatively can be
- * installed with PECL.  Zend Framework also includes a purely PHP solution.
- */
-class Apache_Solr_Response
-{
-	/**
-	 * SVN Revision meta data for this class
-	 */
-	const SVN_REVISION = '$Revision: 54 $';
-
-	/**
-	 * SVN ID meta data for this class
-	 */
-	const SVN_ID = '$Id: Response.php 54 2011-02-04 16:29:18Z donovan.jimenez $';
-
-	/**
-	 * Holds the raw response used in construction
-	 *
-	 * @var Apache_Solr_HttpTransport_Response HTTP response
-	 */
-	protected $_response;
-
-	/**
-	 * Whether the raw response has been parsed
-	 *
-	 * @var boolean
-	 */
-	protected $_isParsed = false;
-
-	/**
-	 * Parsed representation of the data
-	 *
-	 * @var mixed
-	 */
-	protected $_parsedData;
-
-	/**
-	 * Data parsing flags.  Determines what extra processing should be done
-	 * after the data is initially converted to a data structure.
-	 *
-	 * @var boolean
-	 */
-	protected $_createDocuments = true,
-			$_collapseSingleValueArrays = true;
-
-	/**
-	 * Constructor. Takes the raw HTTP response body and the exploded HTTP headers
-	 *
-	 * @return Apache_Solr_HttpTransport_Response HTTP response
-	 * @param boolean $createDocuments Whether to convert the documents json_decoded as stdClass instances to Apache_Solr_Document instances
-	 * @param boolean $collapseSingleValueArrays Whether to make multivalued fields appear as single values
-	 */
-	public function __construct(Apache_Solr_HttpTransport_Response $response, $createDocuments = true, $collapseSingleValueArrays = true)
-	{
-		$this->_response = $response;
-		$this->_createDocuments = (bool) $createDocuments;
-		$this->_collapseSingleValueArrays = (bool) $collapseSingleValueArrays;
-	}
-
-	/**
-	 * Get the HTTP status code
-	 *
-	 * @return integer
-	 */
-	public function getHttpStatus()
-	{
-		return $this->_response->getStatusCode();
-	}
-
-	/**
-	 * Get the HTTP status message of the response
-	 *
-	 * @return string
-	 */
-	public function getHttpStatusMessage()
-	{
-		return $this->_response->getStatusMessage();
-	}
-
-	/**
-	 * Get content type of this Solr response
-	 *
-	 * @return string
-	 */
-	public function getType()
-	{
-		return $this->_response->getMimeType();
-	}
-
-	/**
-	 * Get character encoding of this response. Should usually be utf-8, but just in case
-	 *
-	 * @return string
-	 */
-	public function getEncoding()
-	{
-		return $this->_response->getEncoding();
-	}
-
-	/**
-	 * Get the raw response as it was given to this object
-	 *
-	 * @return string
-	 */
-	public function getRawResponse()
-	{
-		return $this->_response->getBody();
-	}
-
-	/**
-	 * Magic get to expose the parsed data and to lazily load it
-	 *
-	 * @param string $key
-	 * @return mixed
-	 */
-	public function __get($key)
-	{
-		if (!$this->_isParsed)
-		{
-			$this->_parseData();
-			$this->_isParsed = true;
-		}
-
-		if (isset($this->_parsedData->$key))
-		{
-			return $this->_parsedData->$key;
-		}
-
-		return null;
-	}
-
-	/**
-	 * Magic function for isset function on parsed data
-	 *
-	 * @param string $key
-	 * @return boolean
-	 */
-	public function __isset($key)
-	{
-		if (!$this->_isParsed)
-		{
-			$this->_parseData();
-			$this->_isParsed = true;
-		}
-
-		return isset($this->_parsedData->$key);
-	}
-
-	/**
-	 * Parse the raw response into the parsed_data array for access
-	 *
-	 * @throws Apache_Solr_ParserException If the data could not be parsed
-	 */
-	protected function _parseData()
-	{
-		//An alternative would be to use Zend_Json::decode(...)
-		$data = json_decode($this->_response->getBody());
-
-		// check that we receive a valid JSON response - we should never receive a null
-		if ($data === null)
-		{
-			throw new Apache_Solr_ParserException('Solr response does not appear to be valid JSON, please examine the raw response with getRawResponse() method');
-		}
-
-		//if we're configured to collapse single valued arrays or to convert them to Apache_Solr_Document objects
-		//and we have response documents, then try to collapse the values and / or convert them now
-		if (($this->_createDocuments || $this->_collapseSingleValueArrays) && isset($data->response) && is_array($data->response->docs))
-		{
-			$documents = array();
-
-			foreach ($data->response->docs as $originalDocument)
-			{
-				if ($this->_createDocuments)
-				{
-					$document = new Apache_Solr_Document();
-				}
-				else
-				{
-					$document = $originalDocument;
-				}
-
-				foreach ($originalDocument as $key => $value)
-				{
-					//If a result is an array with only a single
-					//value then its nice to be able to access
-					//it as if it were always a single value
-					if ($this->_collapseSingleValueArrays && is_array($value) && count($value) <= 1)
-					{
-						$value = array_shift($value);
-					}
-
-					$document->$key = $value;
-				}
-
-				$documents[] = $document;
-			}
-
-			$data->response->docs = $documents;
-		}
-
-		$this->_parsedData = $data;
-	}
-}

+ 0 - 1181
SolrPhpClient/Apache/Solr/Service.php

@@ -1,1181 +0,0 @@
-<?php
-/**
- * Copyright (c) 2007-2011, Servigistics, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Servigistics, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * @copyright Copyright 2007-2011 Servigistics, Inc. (http://servigistics.com)
- * @license http://solr-php-client.googlecode.com/svn/trunk/COPYING New BSD
- * @version $Id: Service.php 59 2011-02-08 20:38:59Z donovan.jimenez $
- *
- * @package Apache
- * @subpackage Solr
- * @author Donovan Jimenez <djimenez@conduit-it.com>
- */
-
-// See Issue #1 (http://code.google.com/p/solr-php-client/issues/detail?id=1)
-// Doesn't follow typical include path conventions, but is more convenient for users
-require_once(dirname(__FILE__) . '/Exception.php');
-require_once(dirname(__FILE__) . '/HttpTransportException.php');
-require_once(dirname(__FILE__) . '/InvalidArgumentException.php');
-
-require_once(dirname(__FILE__) . '/Document.php');
-require_once(dirname(__FILE__) . '/Response.php');
-
-require_once(dirname(__FILE__) . '/HttpTransport/Interface.php');
-
-/**
- * Starting point for the Solr API. Represents a Solr server resource and has
- * methods for pinging, adding, deleting, committing, optimizing and searching.
- *
- * Example Usage:
- * <code>
- * ...
- * $solr = new Apache_Solr_Service(); //or explicitly new Apache_Solr_Service('localhost', 8180, '/solr')
- *
- * if ($solr->ping())
- * {
- * 		$solr->deleteByQuery('*:*'); //deletes ALL documents - be careful :)
- *
- * 		$document = new Apache_Solr_Document();
- * 		$document->id = uniqid(); //or something else suitably unique
- *
- * 		$document->title = 'Some Title';
- * 		$document->content = 'Some content for this wonderful document. Blah blah blah.';
- *
- * 		$solr->addDocument($document); 	//if you're going to be adding documents in bulk using addDocuments
- * 										//with an array of documents is faster
- *
- * 		$solr->commit(); //commit to see the deletes and the document
- * 		$solr->optimize(); //merges multiple segments into one
- *
- * 		//and the one we all care about, search!
- * 		//any other common or custom parameters to the request handler can go in the
- * 		//optional 4th array argument.
- * 		$solr->search('content:blah', 0, 10, array('sort' => 'timestamp desc'));
- * }
- * ...
- * </code>
- *
- * @todo Investigate using other HTTP clients other than file_get_contents built-in handler. Could provide performance
- * improvements when dealing with multiple requests by using HTTP's keep alive functionality
- */
-class Apache_Solr_Service
-{
-	/**
-	 * SVN Revision meta data for this class
-	 */
-	const SVN_REVISION = '$Revision: 59 $';
-
-	/**
-	 * SVN ID meta data for this class
-	 */
-	const SVN_ID = '$Id: Service.php 59 2011-02-08 20:38:59Z donovan.jimenez $';
-
-	/**
-	 * Response writer we'll request - JSON. See http://code.google.com/p/solr-php-client/issues/detail?id=6#c1 for reasoning
-	 */
-	const SOLR_WRITER = 'json';
-
-	/**
-	 * NamedList Treatment constants
-	 */
-	const NAMED_LIST_FLAT = 'flat';
-	const NAMED_LIST_MAP = 'map';
-
-	/**
-	 * Search HTTP Methods
-	 */
-	const METHOD_GET = 'GET';
-	const METHOD_POST = 'POST';
-
-	/**
-	 * Servlet mappings
-	 */
-	const PING_SERVLET = 'admin/ping';
-	const UPDATE_SERVLET = 'update';
-	const SEARCH_SERVLET = 'select';
-	const THREADS_SERVLET = 'admin/threads';
-	const EXTRACT_SERVLET = 'update/extract';
-
-	/**
-	 * Server identification strings
-	 *
-	 * @var string
-	 */
-	protected $_host, $_port, $_path;
-
-	/**
-	 * Whether {@link Apache_Solr_Response} objects should create {@link Apache_Solr_Document}s in
-	 * the returned parsed data
-	 *
-	 * @var boolean
-	 */
-	protected $_createDocuments = true;
-
-	/**
-	 * Whether {@link Apache_Solr_Response} objects should have multivalue fields with only a single value
-	 * collapsed to appear as a single value would.
-	 *
-	 * @var boolean
-	 */
-	protected $_collapseSingleValueArrays = true;
-
-	/**
-	 * How NamedLists should be formatted in the output.  This specifically effects facet counts. Valid values
-	 * are {@link Apache_Solr_Service::NAMED_LIST_MAP} (default) or {@link Apache_Solr_Service::NAMED_LIST_FLAT}.
-	 *
-	 * @var string
-	 */
-	protected $_namedListTreatment = self::NAMED_LIST_MAP;
-
-	/**
-	 * Query delimiters. Someone might want to be able to change
-	 * these (to use &amp; instead of & for example), so I've provided them.
-	 *
-	 * @var string
-	 */
-	protected $_queryDelimiter = '?', $_queryStringDelimiter = '&', $_queryBracketsEscaped = true;
-
-	/**
-	 * Constructed servlet full path URLs
-	 *
-	 * @var string
-	 */
-	protected $_pingUrl, $_updateUrl, $_searchUrl, $_threadsUrl;
-
-	/**
-	 * Keep track of whether our URLs have been constructed
-	 *
-	 * @var boolean
-	 */
-	protected $_urlsInited = false;
-
-	/**
-	 * HTTP Transport implementation (pluggable)
-	 *
-	 * @var Apache_Solr_HttpTransport_Interface
-	 */
-	protected $_httpTransport = false;
-
-	/**
-	 * Escape a value for special query characters such as ':', '(', ')', '*', '?', etc.
-	 *
-	 * NOTE: inside a phrase fewer characters need escaped, use {@link Apache_Solr_Service::escapePhrase()} instead
-	 *
-	 * @param string $value
-	 * @return string
-	 */
-	static public function escape($value)
-	{
-		//list taken from http://lucene.apache.org/java/docs/queryparsersyntax.html#Escaping%20Special%20Characters
-		$pattern = '/(\+|-|&&|\|\||!|\(|\)|\{|}|\[|]|\^|"|~|\*|\?|:|\\\)/';
-		$replace = '\\\$1';
-
-		return preg_replace($pattern, $replace, $value);
-	}
-
-	/**
-	 * Escape a value meant to be contained in a phrase for special query characters
-	 *
-	 * @param string $value
-	 * @return string
-	 */
-	static public function escapePhrase($value)
-	{
-		$pattern = '/("|\\\)/';
-		$replace = '\\\$1';
-
-		return preg_replace($pattern, $replace, $value);
-	}
-
-	/**
-	 * Convenience function for creating phrase syntax from a value
-	 *
-	 * @param string $value
-	 * @return string
-	 */
-	static public function phrase($value)
-	{
-		return '"' . self::escapePhrase($value) . '"';
-	}
-
-	/**
-	 * Constructor. All parameters are optional and will take on default values
-	 * if not specified.
-	 *
-	 * @param string $host
-	 * @param string $port
-	 * @param string $path
-	 * @param Apache_Solr_HttpTransport_Interface $httpTransport
-	 */
-	public function __construct($host = 'localhost', $port = 8180, $path = '/solr/', $httpTransport = false)
-	{
-		$this->setHost($host);
-		$this->setPort($port);
-		$this->setPath($path);
-
-		$this->_initUrls();
-
-		if ($httpTransport)
-		{
-			$this->setHttpTransport($httpTransport);
-		}
-
-		// check that our php version is >= 5.1.3 so we can correct for http_build_query behavior later
-		$this->_queryBracketsEscaped = version_compare(phpversion(), '5.1.3', '>=');
-	}
-
-	/**
-	 * Return a valid http URL given this server's host, port and path and a provided servlet name
-	 *
-	 * @param string $servlet
-	 * @return string
-	 */
-	protected function _constructUrl($servlet, $params = array())
-	{
-		if (count($params))
-		{
-			//escape all parameters appropriately for inclusion in the query string
-			$escapedParams = array();
-
-			foreach ($params as $key => $value)
-			{
-				$escapedParams[] = urlencode($key) . '=' . urlencode($value);
-			}
-
-			$queryString = $this->_queryDelimiter . implode($this->_queryStringDelimiter, $escapedParams);
-		}
-		else
-		{
-			$queryString = '';
-		}
-
-		return 'http://' . $this->_host . ':' . $this->_port . $this->_path . $servlet . $queryString;
-	}
-
-	/**
-	 * Construct the Full URLs for the three servlets we reference
-	 */
-	protected function _initUrls()
-	{
-		//Initialize our full servlet URLs now that we have server information
-		$this->_extractUrl = $this->_constructUrl(self::EXTRACT_SERVLET);
-		$this->_pingUrl = $this->_constructUrl(self::PING_SERVLET);
-		$this->_searchUrl = $this->_constructUrl(self::SEARCH_SERVLET);
-		$this->_threadsUrl = $this->_constructUrl(self::THREADS_SERVLET, array('wt' => self::SOLR_WRITER ));
-		$this->_updateUrl = $this->_constructUrl(self::UPDATE_SERVLET, array('wt' => self::SOLR_WRITER ));
-
-		$this->_urlsInited = true;
-	}
-
-	protected function _generateQueryString($params)
-	{
-		// use http_build_query to encode our arguments because its faster
-		// than urlencoding all the parts ourselves in a loop
-		//
-		// because http_build_query treats arrays differently than we want to, correct the query
-		// string by changing foo[#]=bar (# being an actual number) parameter strings to just
-		// multiple foo=bar strings. This regex should always work since '=' will be urlencoded
-		// anywhere else the regex isn't expecting it
-		//
-		// NOTE: before php 5.1.3 brackets were not url encoded by http_build query - we've checked
-		// the php version in the constructor and put the results in the instance variable. Also, before
-		// 5.1.2 the arg_separator parameter was not available, so don't use it
-		if ($this->_queryBracketsEscaped)
-		{
-			$queryString = http_build_query($params, null, $this->_queryStringDelimiter);
-			return preg_replace('/%5B(?:[0-9]|[1-9][0-9]+)%5D=/', '=', $queryString);
-		}
-		else
-		{
-			$queryString = http_build_query($params);
-			return preg_replace('/\\[(?:[0-9]|[1-9][0-9]+)\\]=/', '=', $queryString);
-		}
-	}
-
-	/**
-	 * Central method for making a get operation against this Solr Server
-	 *
-	 * @param string $url
-	 * @param float $timeout Read timeout in seconds
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_HttpTransportException If a non 200 response status is returned
-	 */
-	protected function _sendRawGet($url, $timeout = FALSE)
-	{
-		$httpTransport = $this->getHttpTransport();
-
-		$httpResponse = $httpTransport->performGetRequest($url, $timeout);
-		$solrResponse = new Apache_Solr_Response($httpResponse, $this->_createDocuments, $this->_collapseSingleValueArrays);
-
-		if ($solrResponse->getHttpStatus() != 200)
-		{
-			throw new Apache_Solr_HttpTransportException($solrResponse);
-		}
-
-		return $solrResponse;
-	}
-
-	/**
-	 * Central method for making a post operation against this Solr Server
-	 *
-	 * @param string $url
-	 * @param string $rawPost
-	 * @param float $timeout Read timeout in seconds
-	 * @param string $contentType
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_HttpTransportException If a non 200 response status is returned
-	 */
-	protected function _sendRawPost($url, $rawPost, $timeout = FALSE, $contentType = 'text/xml; charset=UTF-8')
-	{
-		$httpTransport = $this->getHttpTransport();
-
-		$httpResponse = $httpTransport->performPostRequest($url, $rawPost, $contentType, $timeout);
-		$solrResponse = new Apache_Solr_Response($httpResponse, $this->_createDocuments, $this->_collapseSingleValueArrays);
-
-		if ($solrResponse->getHttpStatus() != 200)
-		{
-			throw new Apache_Solr_HttpTransportException($solrResponse);
-		}
-
-		return $solrResponse;
-	}
-
-	/**
-	 * Returns the set host
-	 *
-	 * @return string
-	 */
-	public function getHost()
-	{
-		return $this->_host;
-	}
-
-	/**
-	 * Set the host used. If empty will fallback to constants
-	 *
-	 * @param string $host
-	 *
-	 * @throws Apache_Solr_InvalidArgumentException If the host parameter is empty
-	 */
-	public function setHost($host)
-	{
-		//Use the provided host or use the default
-		if (empty($host))
-		{
-			throw new Apache_Solr_InvalidArgumentException('Host parameter is empty');
-		}
-		else
-		{
-			$this->_host = $host;
-		}
-
-		if ($this->_urlsInited)
-		{
-			$this->_initUrls();
-		}
-	}
-
-	/**
-	 * Get the set port
-	 *
-	 * @return integer
-	 */
-	public function getPort()
-	{
-		return $this->_port;
-	}
-
-	/**
-	 * Set the port used. If empty will fallback to constants
-	 *
-	 * @param integer $port
-	 *
-	 * @throws Apache_Solr_InvalidArgumentException If the port parameter is empty
-	 */
-	public function setPort($port)
-	{
-		//Use the provided port or use the default
-		$port = (int) $port;
-
-		if ($port <= 0)
-		{
-			throw new Apache_Solr_InvalidArgumentException('Port is not a valid port number');
-		}
-		else
-		{
-			$this->_port = $port;
-		}
-
-		if ($this->_urlsInited)
-		{
-			$this->_initUrls();
-		}
-	}
-
-	/**
-	 * Get the set path.
-	 *
-	 * @return string
-	 */
-	public function getPath()
-	{
-		return $this->_path;
-	}
-
-	/**
-	 * Set the path used. If empty will fallback to constants
-	 *
-	 * @param string $path
-	 */
-	public function setPath($path)
-	{
-		$path = trim($path, '/');
-
-		$this->_path = '/' . $path . '/';
-
-		if ($this->_urlsInited)
-		{
-			$this->_initUrls();
-		}
-	}
-
-	/**
-	 * Get the current configured HTTP Transport
-	 *
-	 * @return HttpTransportInterface
-	 */
-	public function getHttpTransport()
-	{
-		// lazy load a default if one has not be set
-		if ($this->_httpTransport === false)
-		{
-			require_once(dirname(__FILE__) . '/HttpTransport/FileGetContents.php');
-
-			$this->_httpTransport = new Apache_Solr_HttpTransport_FileGetContents();
-		}
-
-		return $this->_httpTransport;
-	}
-
-	/**
-	 * Set the HTTP Transport implemenation that will be used for all HTTP requests
-	 *
-	 * @param Apache_Solr_HttpTransport_Interface
-	 */
-	public function setHttpTransport(Apache_Solr_HttpTransport_Interface $httpTransport)
-	{
-		$this->_httpTransport = $httpTransport;
-	}
-
-	/**
-	 * Set the create documents flag. This determines whether {@link Apache_Solr_Response} objects will
-	 * parse the response and create {@link Apache_Solr_Document} instances in place.
-	 *
-	 * @param boolean $createDocuments
-	 */
-	public function setCreateDocuments($createDocuments)
-	{
-		$this->_createDocuments = (bool) $createDocuments;
-	}
-
-	/**
-	 * Get the current state of teh create documents flag.
-	 *
-	 * @return boolean
-	 */
-	public function getCreateDocuments()
-	{
-		return $this->_createDocuments;
-	}
-
-	/**
-	 * Set the collapse single value arrays flag.
-	 *
-	 * @param boolean $collapseSingleValueArrays
-	 */
-	public function setCollapseSingleValueArrays($collapseSingleValueArrays)
-	{
-		$this->_collapseSingleValueArrays = (bool) $collapseSingleValueArrays;
-	}
-
-	/**
-	 * Get the current state of the collapse single value arrays flag.
-	 *
-	 * @return boolean
-	 */
-	public function getCollapseSingleValueArrays()
-	{
-		return $this->_collapseSingleValueArrays;
-	}
-
-	/**
-	 * Get the current default timeout setting (initially the default_socket_timeout ini setting)
-	 * in seconds
-	 *
-	 * @return float
-	 *
-	 * @deprecated Use the getDefaultTimeout method on the HTTP transport implementation
-	 */
-	public function getDefaultTimeout()
-	{
-		return $this->getHttpTransport()->getDefaultTimeout();
-	}
-
-	/**
-	 * Set the default timeout for all calls that aren't passed a specific timeout
-	 *
-	 * @param float $timeout Timeout value in seconds
-	 *
-	 * @deprecated Use the setDefaultTimeout method on the HTTP transport implementation
-	 */
-	public function setDefaultTimeout($timeout)
-	{
-		$this->getHttpTransport()->setDefaultTimeout($timeout);
-	}
-
-	/**
-	 * Set how NamedLists should be formatted in the response data. This mainly effects
-	 * the facet counts format.
-	 *
-	 * @param string $namedListTreatment
-	 * @throws Apache_Solr_InvalidArgumentException If invalid option is set
-	 */
-	public function setNamedListTreatment($namedListTreatment)
-	{
-		switch ((string) $namedListTreatment)
-		{
-			case Apache_Solr_Service::NAMED_LIST_FLAT:
-				$this->_namedListTreatment = Apache_Solr_Service::NAMED_LIST_FLAT;
-				break;
-
-			case Apache_Solr_Service::NAMED_LIST_MAP:
-				$this->_namedListTreatment = Apache_Solr_Service::NAMED_LIST_MAP;
-				break;
-
-			default:
-				throw new Apache_Solr_InvalidArgumentException('Not a valid named list treatement option');
-		}
-	}
-
-	/**
-	 * Get the current setting for named list treatment.
-	 *
-	 * @return string
-	 */
-	public function getNamedListTreatment()
-	{
-		return $this->_namedListTreatment;
-	}
-
-	/**
-	 * Set the string used to separate the path form the query string.
-	 * Defaulted to '?'
-	 *
-	 * @param string $queryDelimiter
-	 */
-	public function setQueryDelimiter($queryDelimiter)
-	{
-		$this->_queryDelimiter = $queryDelimiter;
-	}
-
-	/**
-	 * Set the string used to separate the parameters in thequery string
-	 * Defaulted to '&'
-	 *
-	 * @param string $queryStringDelimiter
-	 */
-	public function setQueryStringDelimiter($queryStringDelimiter)
-	{
-		$this->_queryStringDelimiter = $queryStringDelimiter;
-	}
-
-	/**
-	 * Call the /admin/ping servlet, can be used to quickly tell if a connection to the
-	 * server is able to be made.
-	 *
-	 * @param float $timeout maximum time to wait for ping in seconds, -1 for unlimited (default is 2)
-	 * @return float Actual time taken to ping the server, FALSE if timeout or HTTP error status occurs
-	 */
-	public function ping($timeout = 2)
-	{
-		$start = microtime(true);
-		
-		$httpTransport = $this->getHttpTransport();
-
-		$httpResponse = $httpTransport->performHeadRequest($this->_pingUrl, $timeout);
-		$solrResponse = new Apache_Solr_Response($httpResponse, $this->_createDocuments, $this->_collapseSingleValueArrays);
-
-		if ($solrResponse->getHttpStatus() == 200)
-		{
-			return microtime(true) - $start;
-		}
-		else
-		{
-			return false;
-		}
-	}
-
-	/**
-	 * Call the /admin/threads servlet and retrieve information about all threads in the
-	 * Solr servlet's thread group. Useful for diagnostics.
-	 *
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_HttpTransportException If an error occurs during the service call
-	 */
-	public function threads()
-	{
-		return $this->_sendRawGet($this->_threadsUrl);
-	}
-
-	/**
-	 * Raw Add Method. Takes a raw post body and sends it to the update service.  Post body
-	 * should be a complete and well formed "add" xml document.
-	 *
-	 * @param string $rawPost
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_HttpTransportException If an error occurs during the service call
-	 */
-	public function add($rawPost)
-	{
-		return $this->_sendRawPost($this->_updateUrl, $rawPost);
-	}
-
-	/**
-	 * Add a Solr Document to the index
-	 *
-	 * @param Apache_Solr_Document $document
-	 * @param boolean $allowDups
-	 * @param boolean $overwritePending
-	 * @param boolean $overwriteCommitted
-	 * @param integer $commitWithin The number of milliseconds that a document must be committed within, see @{link http://wiki.apache.org/solr/UpdateXmlMessages#The_Update_Schema} for details.  If left empty this property will not be set in the request.
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_HttpTransportException If an error occurs during the service call
-	 */
-	public function addDocument(Apache_Solr_Document $document, $allowDups = false, $overwritePending = true, $overwriteCommitted = true, $commitWithin = 0)
-	{
-		$dupValue = $allowDups ? 'true' : 'false';
-		$pendingValue = $overwritePending ? 'true' : 'false';
-		$committedValue = $overwriteCommitted ? 'true' : 'false';
-		
-		$commitWithin = (int) $commitWithin;
-		$commitWithinString = $commitWithin > 0 ? " commitWithin=\"{$commitWithin}\"" : '';
-		
-		$rawPost = "<add allowDups=\"{$dupValue}\" overwritePending=\"{$pendingValue}\" overwriteCommitted=\"{$committedValue}\"{$commitWithinString}>";
-		$rawPost .= $this->_documentToXmlFragment($document);
-		$rawPost .= '</add>';
-
-		return $this->add($rawPost);
-	}
-
-	/**
-	 * Add an array of Solr Documents to the index all at once
-	 *
-	 * @param array $documents Should be an array of Apache_Solr_Document instances
-	 * @param boolean $allowDups
-	 * @param boolean $overwritePending
-	 * @param boolean $overwriteCommitted
-	 * @param integer $commitWithin The number of milliseconds that a document must be committed within, see @{link http://wiki.apache.org/solr/UpdateXmlMessages#The_Update_Schema} for details.  If left empty this property will not be set in the request.
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_HttpTransportException If an error occurs during the service call
-	 */
-	public function addDocuments($documents, $allowDups = false, $overwritePending = true, $overwriteCommitted = true, $commitWithin = 0)
-	{
-		$dupValue = $allowDups ? 'true' : 'false';
-		$pendingValue = $overwritePending ? 'true' : 'false';
-		$committedValue = $overwriteCommitted ? 'true' : 'false';
-
-		$commitWithin = (int) $commitWithin;
-		$commitWithinString = $commitWithin > 0 ? " commitWithin=\"{$commitWithin}\"" : '';
-
-		$rawPost = "<add allowDups=\"{$dupValue}\" overwritePending=\"{$pendingValue}\" overwriteCommitted=\"{$committedValue}\"{$commitWithinString}>";
-
-		foreach ($documents as $document)
-		{
-			if ($document instanceof Apache_Solr_Document)
-			{
-				$rawPost .= $this->_documentToXmlFragment($document);
-			}
-		}
-
-		$rawPost .= '</add>';
-
-		return $this->add($rawPost);
-	}
-
-	/**
-	 * Create an XML fragment from a {@link Apache_Solr_Document} instance appropriate for use inside a Solr add call
-	 *
-	 * @return string
-	 */
-	protected function _documentToXmlFragment(Apache_Solr_Document $document)
-	{
-		$xml = '<doc';
-
-		if ($document->getBoost() !== false)
-		{
-			$xml .= ' boost="' . $document->getBoost() . '"';
-		}
-
-		$xml .= '>';
-
-		foreach ($document as $key => $value)
-		{
-			$key = htmlspecialchars($key, ENT_QUOTES, 'UTF-8');
-			$fieldBoost = $document->getFieldBoost($key);
-
-			if (is_array($value))
-			{
-				foreach ($value as $multivalue)
-				{
-					$xml .= '<field name="' . $key . '"';
-
-					if ($fieldBoost !== false)
-					{
-						$xml .= ' boost="' . $fieldBoost . '"';
-
-						// only set the boost for the first field in the set
-						$fieldBoost = false;
-					}
-
-					$multivalue = htmlspecialchars($multivalue, ENT_NOQUOTES, 'UTF-8');
-
-					$xml .= '>' . $multivalue . '</field>';
-				}
-			}
-			else
-			{
-				$xml .= '<field name="' . $key . '"';
-
-				if ($fieldBoost !== false)
-				{
-					$xml .= ' boost="' . $fieldBoost . '"';
-				}
-
-				$value = htmlspecialchars($value, ENT_NOQUOTES, 'UTF-8');
-
-				$xml .= '>' . $value . '</field>';
-			}
-		}
-
-		$xml .= '</doc>';
-
-		// replace any control characters to avoid Solr XML parser exception
-		return $this->_stripCtrlChars($xml);
-	}
-
-	/**
-	 * Replace control (non-printable) characters from string that are invalid to Solr's XML parser with a space.
-	 *
-	 * @param string $string
-	 * @return string
-	 */
-	protected function _stripCtrlChars($string)
-	{
-		// See:  http://w3.org/International/questions/qa-forms-utf-8.html
-		// Printable utf-8 does not include any of these chars below x7F
-		return preg_replace('@[\x00-\x08\x0B\x0C\x0E-\x1F]@', ' ', $string);
-	}
-
-	/**
-	 * Send a commit command.  Will be synchronous unless both wait parameters are set to false.
-	 *
-	 * @param boolean $expungeDeletes Defaults to false, merge segments with deletes away
-	 * @param boolean $waitFlush Defaults to true,  block until index changes are flushed to disk
-	 * @param boolean $waitSearcher Defaults to true, block until a new searcher is opened and registered as the main query searcher, making the changes visible
-	 * @param float $timeout Maximum expected duration (in seconds) of the commit operation on the server (otherwise, will throw a communication exception). Defaults to 1 hour
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_HttpTransportException If an error occurs during the service call
-	 */
-	public function commit($expungeDeletes = false, $waitFlush = true, $waitSearcher = true, $timeout = 3600)
-	{
-		$expungeValue = $expungeDeletes ? 'true' : 'false';
-		$flushValue = $waitFlush ? 'true' : 'false';
-		$searcherValue = $waitSearcher ? 'true' : 'false';
-
-		$rawPost = '<commit expungeDeletes="' . $expungeValue . '" waitFlush="' . $flushValue . '" waitSearcher="' . $searcherValue . '" />';
-
-		return $this->_sendRawPost($this->_updateUrl, $rawPost, $timeout);
-	}
-
-	/**
-	 * Raw Delete Method. Takes a raw post body and sends it to the update service. Body should be
-	 * a complete and well formed "delete" xml document
-	 *
-	 * @param string $rawPost Expected to be utf-8 encoded xml document
-	 * @param float $timeout Maximum expected duration of the delete operation on the server (otherwise, will throw a communication exception)
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_HttpTransportException If an error occurs during the service call
-	 */
-	public function delete($rawPost, $timeout = 3600)
-	{
-		return $this->_sendRawPost($this->_updateUrl, $rawPost, $timeout);
-	}
-
-	/**
-	 * Create a delete document based on document ID
-	 *
-	 * @param string $id Expected to be utf-8 encoded
-	 * @param boolean $fromPending
-	 * @param boolean $fromCommitted
-	 * @param float $timeout Maximum expected duration of the delete operation on the server (otherwise, will throw a communication exception)
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_HttpTransportException If an error occurs during the service call
-	 */
-	public function deleteById($id, $fromPending = true, $fromCommitted = true, $timeout = 3600)
-	{
-		$pendingValue = $fromPending ? 'true' : 'false';
-		$committedValue = $fromCommitted ? 'true' : 'false';
-
-		//escape special xml characters
-		$id = htmlspecialchars($id, ENT_NOQUOTES, 'UTF-8');
-
-		$rawPost = '<delete fromPending="' . $pendingValue . '" fromCommitted="' . $committedValue . '"><id>' . $id . '</id></delete>';
-
-		return $this->delete($rawPost, $timeout);
-	}
-
-	/**
-	 * Create and post a delete document based on multiple document IDs.
-	 *
-	 * @param array $ids Expected to be utf-8 encoded strings
-	 * @param boolean $fromPending
-	 * @param boolean $fromCommitted
-	 * @param float $timeout Maximum expected duration of the delete operation on the server (otherwise, will throw a communication exception)
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_HttpTransportException If an error occurs during the service call
-	 */
-	public function deleteByMultipleIds($ids, $fromPending = true, $fromCommitted = true, $timeout = 3600)
-	{
-		$pendingValue = $fromPending ? 'true' : 'false';
-		$committedValue = $fromCommitted ? 'true' : 'false';
-
-		$rawPost = '<delete fromPending="' . $pendingValue . '" fromCommitted="' . $committedValue . '">';
-
-		foreach ($ids as $id)
-		{
-			//escape special xml characters
-			$id = htmlspecialchars($id, ENT_NOQUOTES, 'UTF-8');
-
-			$rawPost .= '<id>' . $id . '</id>';
-		}
-
-		$rawPost .= '</delete>';
-
-		return $this->delete($rawPost, $timeout);
-	}
-
-	/**
-	 * Create a delete document based on a query and submit it
-	 *
-	 * @param string $rawQuery Expected to be utf-8 encoded
-	 * @param boolean $fromPending
-	 * @param boolean $fromCommitted
-	 * @param float $timeout Maximum expected duration of the delete operation on the server (otherwise, will throw a communication exception)
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_HttpTransportException If an error occurs during the service call
-	 */
-	public function deleteByQuery($rawQuery, $fromPending = true, $fromCommitted = true, $timeout = 3600)
-	{
-		$pendingValue = $fromPending ? 'true' : 'false';
-		$committedValue = $fromCommitted ? 'true' : 'false';
-
-		// escape special xml characters
-		$rawQuery = htmlspecialchars($rawQuery, ENT_NOQUOTES, 'UTF-8');
-
-		$rawPost = '<delete fromPending="' . $pendingValue . '" fromCommitted="' . $committedValue . '"><query>' . $rawQuery . '</query></delete>';
-
-		return $this->delete($rawPost, $timeout);
-	}
-
-	/**
-	 * Use Solr Cell to extract document contents. See {@link http://wiki.apache.org/solr/ExtractingRequestHandler} for information on how
-	 * to use Solr Cell and what parameters are available.
-	 *
-	 * NOTE: when passing an Apache_Solr_Document instance, field names and boosts will automatically be prepended by "literal." and "boost."
-	 * as appropriate. Any keys from the $params array will NOT be treated this way. Any mappings from the document will overwrite key / value
-	 * pairs in the params array if they have the same name (e.g. you pass a "literal.id" key and value in your $params array but you also
-	 * pass in a document isntance with an "id" field" - the document's value(s) will take precedence).
-	 *
-	 * @param string $file Path to file to extract data from
-	 * @param array $params optional array of key value pairs that will be sent with the post (see Solr Cell documentation)
-	 * @param Apache_Solr_Document $document optional document that will be used to generate post parameters (literal.* and boost.* params)
-	 * @param string $mimetype optional mimetype specification (for the file being extracted)
-	 *
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_InvalidArgumentException if $file, $params, or $document are invalid.
-	 */
-	public function extract($file, $params = array(), $document = null, $mimetype = 'application/octet-stream')
-	{
-		// check if $params is an array (allow null for default empty array)
-		if (!is_null($params))
-		{
-			if (!is_array($params))
-			{
-				throw new Apache_Solr_InvalidArgumentException("\$params must be a valid array or null");
-			}
-		}
-		else
-		{
-			$params = array();
-		}
-		
-		// if $file is an http request, defer to extractFromUrl instead
-		if (substr($file, 0, 7) == 'http://' || substr($file, 0, 8) == 'https://')
-		{
-			return $this->extractFromUrl($file, $params, $document, $mimetype);
-		}
-		
-		// read the contents of the file
-		$contents = @file_get_contents($file);
-
-		if ($contents !== false)
-		{
-			// add the resource.name parameter if not specified
-			if (!isset($params['resource.name']))
-			{
-				$params['resource.name'] = basename($file);
-			}
-
-			// delegate the rest to extractFromString
-			return $this->extractFromString($contents, $params, $document, $mimetype);
-		}
-		else
-		{
-			throw new Apache_Solr_InvalidArgumentException("File '{$file}' is empty or could not be read");
-		}
-	}
-	
-	/**
-	 * Use Solr Cell to extract document contents. See {@link http://wiki.apache.org/solr/ExtractingRequestHandler} for information on how
-	 * to use Solr Cell and what parameters are available.
-	 *
-	 * NOTE: when passing an Apache_Solr_Document instance, field names and boosts will automatically be prepended by "literal." and "boost."
-	 * as appropriate. Any keys from the $params array will NOT be treated this way. Any mappings from the document will overwrite key / value
-	 * pairs in the params array if they have the same name (e.g. you pass a "literal.id" key and value in your $params array but you also
-	 * pass in a document isntance with an "id" field" - the document's value(s) will take precedence).
-	 *
-	 * @param string $data Data that will be passed to Solr Cell
-	 * @param array $params optional array of key value pairs that will be sent with the post (see Solr Cell documentation)
-	 * @param Apache_Solr_Document $document optional document that will be used to generate post parameters (literal.* and boost.* params)
-	 * @param string $mimetype optional mimetype specification (for the file being extracted)
-	 *
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_InvalidArgumentException if $file, $params, or $document are invalid.
-	 *
-	 * @todo Should be using multipart/form-data to post parameter values, but I could not get my implementation to work. Needs revisisted.
-	 */
-	public function extractFromString($data, $params = array(), $document = null, $mimetype = 'application/octet-stream')
-	{
-		// check if $params is an array (allow null for default empty array)
-		if (!is_null($params))
-		{
-			if (!is_array($params))
-			{
-				throw new Apache_Solr_InvalidArgumentException("\$params must be a valid array or null");
-			}
-		}
-		else
-		{
-			$params = array();
-		}
-
-		// make sure we receive our response in JSON and have proper name list treatment
-		$params['wt'] = self::SOLR_WRITER;
-		$params['json.nl'] = $this->_namedListTreatment;
-
-		// check if $document is an Apache_Solr_Document instance
-		if (!is_null($document) && $document instanceof Apache_Solr_Document)
-		{
-			// iterate document, adding literal.* and boost.* fields to $params as appropriate
-			foreach ($document as $field => $fieldValue)
-			{
-				// check if we need to add a boost.* parameters
-				$fieldBoost = $document->getFieldBoost($field);
-
-				if ($fieldBoost !== false)
-				{
-					$params["boost.{$field}"] = $fieldBoost;
-				}
-
-				// add the literal.* parameter
-				$params["literal.{$field}"] = $fieldValue;
-			}
-		}
-
-		// params will be sent to SOLR in the QUERY STRING
-		$queryString = $this->_generateQueryString($params);
-
-		// the file contents will be sent to SOLR as the POST BODY - we use application/octect-stream as default mimetype
-		return $this->_sendRawPost($this->_extractUrl . $this->_queryDelimiter . $queryString, $data, false, $mimetype);
-	}
-	
-	/**
-	 * Use Solr Cell to extract document contents. See {@link http://wiki.apache.org/solr/ExtractingRequestHandler} for information on how
-	 * to use Solr Cell and what parameters are available.
-	 *
-	 * NOTE: when passing an Apache_Solr_Document instance, field names and boosts will automatically be prepended by "literal." and "boost."
-	 * as appropriate. Any keys from the $params array will NOT be treated this way. Any mappings from the document will overwrite key / value
-	 * pairs in the params array if they have the same name (e.g. you pass a "literal.id" key and value in your $params array but you also
-	 * pass in a document isntance with an "id" field" - the document's value(s) will take precedence).
-	 *
-	 * @param string $url URL
-	 * @param array $params optional array of key value pairs that will be sent with the post (see Solr Cell documentation)
-	 * @param Apache_Solr_Document $document optional document that will be used to generate post parameters (literal.* and boost.* params)
-	 * @param string $mimetype optional mimetype specification (for the file being extracted)
-	 *
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_InvalidArgumentException if $url, $params, or $document are invalid.
-	 */
-	public function extractFromUrl($url, $params = array(), $document = null, $mimetype = 'application/octet-stream')
-	{
-		// check if $params is an array (allow null for default empty array)
-		if (!is_null($params))
-		{
-			if (!is_array($params))
-			{
-				throw new Apache_Solr_InvalidArgumentException("\$params must be a valid array or null");
-			}
-		}
-		else
-		{
-			$params = array();
-		}
-
-		$httpTransport = $this->getHttpTransport();
-		
-		// read the contents of the URL using our configured Http Transport and default timeout
-		$httpResponse = $httpTransport->performGetRequest($url);
-		
-		// check that its a 200 response
-		if ($httpResponse->getStatusCode() == 200)
-		{
-			// add the resource.name parameter if not specified
-			if (!isset($params['resource.name']))
-			{
-				$params['resource.name'] = $url;
-			}
-
-			// delegate the rest to extractFromString
-			return $this->extractFromString($httpResponse->getBody(), $params, $document, $mimetype);
-		}
-		else
-		{
-			throw new Apache_Solr_InvalidArgumentException("URL '{$url}' returned non 200 response code");
-		}
-	}
-
-	/**
-	 * Send an optimize command.  Will be synchronous unless both wait parameters are set
-	 * to false.
-	 *
-	 * @param boolean $waitFlush
-	 * @param boolean $waitSearcher
-	 * @param float $timeout Maximum expected duration of the commit operation on the server (otherwise, will throw a communication exception)
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_HttpTransportException If an error occurs during the service call
-	 */
-	public function optimize($waitFlush = true, $waitSearcher = true, $timeout = 3600)
-	{
-		$flushValue = $waitFlush ? 'true' : 'false';
-		$searcherValue = $waitSearcher ? 'true' : 'false';
-
-		$rawPost = '<optimize waitFlush="' . $flushValue . '" waitSearcher="' . $searcherValue . '" />';
-
-		return $this->_sendRawPost($this->_updateUrl, $rawPost, $timeout);
-	}
-
-	/**
-	 * Simple Search interface
-	 *
-	 * @param string $query The raw query string
-	 * @param int $offset The starting offset for result documents
-	 * @param int $limit The maximum number of result documents to return
-	 * @param array $params key / value pairs for other query parameters (see Solr documentation), use arrays for parameter keys used more than once (e.g. facet.field)
-	 * @param string $method The HTTP method (Apache_Solr_Service::METHOD_GET or Apache_Solr_Service::METHOD::POST)
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_HttpTransportException If an error occurs during the service call
-	 * @throws Apache_Solr_InvalidArgumentException If an invalid HTTP method is used
-	 */
-	public function search($query, $offset = 0, $limit = 10, $params = array(), $method = self::METHOD_GET)
-	{
-		// ensure params is an array
-		if (!is_null($params))
-		{
-			if (!is_array($params))
-			{
-				// params was specified but was not an array - invalid
-				throw new Apache_Solr_InvalidArgumentException("\$params must be a valid array or null");
-			}
-		}
-		else
-		{
-			$params = array();
-		}
-		
-		// construct our full parameters
-
-		// common parameters in this interface
-		$params['wt'] = self::SOLR_WRITER;
-		$params['json.nl'] = $this->_namedListTreatment;
-
-		$params['q'] = $query;
-		$params['start'] = $offset;
-		$params['rows'] = $limit;
-
-		$queryString = $this->_generateQueryString($params);
-
-		if ($method == self::METHOD_GET)
-		{
-			return $this->_sendRawGet($this->_searchUrl . $this->_queryDelimiter . $queryString);
-		}
-		else if ($method == self::METHOD_POST)
-		{
-			return $this->_sendRawPost($this->_searchUrl, $queryString, FALSE, 'application/x-www-form-urlencoded; charset=UTF-8');
-		}
-		else
-		{
-			throw new Apache_Solr_InvalidArgumentException("Unsupported method '$method', please use the Apache_Solr_Service::METHOD_* constants");
-		}
-	}
-}

+ 0 - 914
SolrPhpClient/Apache/Solr/Service/Balancer.php

@@ -1,914 +0,0 @@
-<?php
-/**
- * Copyright (c) 2007-2011, Servigistics, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Servigistics, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * @copyright Copyright 2007-2011 Servigistics, Inc. (http://servigistics.com)
- * @license http://solr-php-client.googlecode.com/svn/trunk/COPYING New BSD
- * @version $Id: Balancer.php 54 2011-02-04 16:29:18Z donovan.jimenez $
- *
- * @package Apache
- * @subpackage Solr
- * @author Donovan Jimenez <djimenez@conduit-it.com>, Dan Wolfe
- */
-
-// See Issue #1 (http://code.google.com/p/solr-php-client/issues/detail?id=1)
-// Doesn't follow typical include path conventions, but is more convenient for users
-require_once(dirname(dirname(__FILE__)) . '/Service.php');
-
-require_once(dirname(dirname(__FILE__)) . '/NoServiceAvailableException.php');
-
-/**
- * Reference Implementation for using multiple Solr services in a distribution. Functionality
- * includes:
- * 	routing of read / write operations
- * 	failover (on selection) for multiple read servers
- */
-class Apache_Solr_Service_Balancer
-{
-	/**
-	 * SVN Revision meta data for this class
-	 */
-	const SVN_REVISION = '$Revision: 54 $';
-
-	/**
-	 * SVN ID meta data for this class
-	 */
-	const SVN_ID = '$Id: Balancer.php 54 2011-02-04 16:29:18Z donovan.jimenez $';
-
-	protected $_createDocuments = true;
-
-	protected $_readableServices = array();
-	protected $_writeableServices = array();
-
-	protected $_currentReadService = null;
-	protected $_currentWriteService = null;
-
-	protected $_readPingTimeout = 2;
-	protected $_writePingTimeout = 4;
-
-	// Configuration for server selection backoff intervals
-	protected $_useBackoff = false;		// Set to true to use more resillient write server selection
-	protected $_backoffLimit = 600;		// 10 minute default maximum
-	protected $_backoffEscalation = 2.0; 	// Rate at which to increase backoff period
-	protected $_defaultBackoff = 2.0;		// Default backoff interval
-
-	/**
-	 * Escape a value for special query characters such as ':', '(', ')', '*', '?', etc.
-	 *
-	 * NOTE: inside a phrase fewer characters need escaped, use {@link Apache_Solr_Service::escapePhrase()} instead
-	 *
-	 * @param string $value
-	 * @return string
-	 */
-	static public function escape($value)
-	{
-		return Apache_Solr_Service::escape($value);
-	}
-
-	/**
-	 * Escape a value meant to be contained in a phrase for special query characters
-	 *
-	 * @param string $value
-	 * @return string
-	 */
-	static public function escapePhrase($value)
-	{
-		return Apache_Solr_Service::escapePhrase($value);
-	}
-
-	/**
-	 * Convenience function for creating phrase syntax from a value
-	 *
-	 * @param string $value
-	 * @return string
-	 */
-	static public function phrase($value)
-	{
-		return Apache_Solr_Service::phrase($value);
-	}
-
-	/**
-	 * Constructor. Takes arrays of read and write service instances or descriptions
-	 *
-	 * @param array $readableServices
-	 * @param array $writeableServices
-	 */
-	public function __construct($readableServices = array(), $writeableServices = array())
-	{
-		//setup readable services
-		foreach ($readableServices as $service)
-		{
-			$this->addReadService($service);
-		}
-
-		//setup writeable services
-		foreach ($writeableServices as $service)
-		{
-			$this->addWriteService($service);
-		}
-	}
-
-	public function setReadPingTimeout($timeout)
-	{
-		$this->_readPingTimeout = $timeout;
-	}
-
-	public function setWritePingTimeout($timeout)
-	{
-		$this->_writePingTimeout = $timeout;
-	}
-
-	public function setUseBackoff($enable)
-	{
-		$this->_useBackoff = $enable;
-	}
-
-	/**
-	 * Generates a service ID
-	 *
-	 * @param string $host
-	 * @param integer $port
-	 * @param string $path
-	 * @return string
-	 */
-	protected function _getServiceId($host, $port, $path)
-	{
-		return $host . ':' . $port . $path;
-	}
-
-	/**
-	 * Adds a service instance or service descriptor (if it is already
-	 * not added)
-	 *
-	 * @param mixed $service
-	 *
-	 * @throws Apache_Solr_InvalidArgumentException If service descriptor is not valid
-	 */
-	public function addReadService($service)
-	{
-		if ($service instanceof Apache_Solr_Service)
-		{
-			$id = $this->_getServiceId($service->getHost(), $service->getPort(), $service->getPath());
-
-			$this->_readableServices[$id] = $service;
-		}
-		else if (is_array($service))
-		{
-			if (isset($service['host']) && isset($service['port']) && isset($service['path']))
-			{
-				$id = $this->_getServiceId((string)$service['host'], (int)$service['port'], (string)$service['path']);
-
-				$this->_readableServices[$id] = $service;
-			}
-			else
-			{
-				throw new Apache_Solr_InvalidArgumentException('A Readable Service description array does not have all required elements of host, port, and path');
-			}
-		}
-	}
-
-	/**
-	 * Removes a service instance or descriptor from the available services
-	 *
-	 * @param mixed $service
-	 *
-	 * @throws Apache_Solr_InvalidArgumentException If service descriptor is not valid
-	 */
-	public function removeReadService($service)
-	{
-		$id = '';
-
-		if ($service instanceof Apache_Solr_Service)
-		{
-			$id = $this->_getServiceId($service->getHost(), $service->getPort(), $service->getPath());
-		}
-		else if (is_array($service))
-		{
-			if (isset($service['host']) && isset($service['port']) && isset($service['path']))
-			{
-				$id = $this->_getServiceId((string)$service['host'], (int)$service['port'], (string)$service['path']);
-			}
-			else
-			{
-				throw new Apache_Solr_InvalidArgumentException('A Readable Service description array does not have all required elements of host, port, and path');
-			}
-		}
-		else if (is_string($service))
-		{
-			$id = $service;
-		}
-
-		if ($id && isset($this->_readableServices[$id]))
-		{
-			unset($this->_readableServices[$id]);
-		}
-	}
-
-	/**
-	 * Adds a service instance or service descriptor (if it is already
-	 * not added)
-	 *
-	 * @param mixed $service
-	 *
-	 * @throws Apache_Solr_InvalidArgumentException If service descriptor is not valid
-	 */
-	public function addWriteService($service)
-	{
-		if ($service instanceof Apache_Solr_Service)
-		{
-			$id = $this->_getServiceId($service->getHost(), $service->getPort(), $service->getPath());
-
-			$this->_writeableServices[$id] = $service;
-		}
-		else if (is_array($service))
-		{
-			if (isset($service['host']) && isset($service['port']) && isset($service['path']))
-			{
-				$id = $this->_getServiceId((string)$service['host'], (int)$service['port'], (string)$service['path']);
-
-				$this->_writeableServices[$id] = $service;
-			}
-			else
-			{
-				throw new Apache_Solr_InvalidArgumentException('A Writeable Service description array does not have all required elements of host, port, and path');
-			}
-		}
-	}
-
-	/**
-	 * Removes a service instance or descriptor from the available services
-	 *
-	 * @param mixed $service
-	 *
-	 * @throws Apache_Solr_InvalidArgumentException If service descriptor is not valid
-	 */
-	public function removeWriteService($service)
-	{
-		$id = '';
-
-		if ($service instanceof Apache_Solr_Service)
-		{
-			$id = $this->_getServiceId($service->getHost(), $service->getPort(), $service->getPath());
-		}
-		else if (is_array($service))
-		{
-			if (isset($service['host']) && isset($service['port']) && isset($service['path']))
-			{
-				$id = $this->_getServiceId((string)$service['host'], (int)$service['port'], (string)$service['path']);
-			}
-			else
-			{
-				throw new Apache_Solr_InvalidArgumentException('A Readable Service description array does not have all required elements of host, port, and path');
-			}
-		}
-		else if (is_string($service))
-		{
-			$id = $service;
-		}
-
-		if ($id && isset($this->_writeableServices[$id]))
-		{
-			unset($this->_writeableServices[$id]);
-		}
-	}
-
-	/**
-	 * Iterate through available read services and select the first with a ping
-	 * that satisfies configured timeout restrictions (or the default)
-	 *
-	 * @return Apache_Solr_Service
-	 *
-	 * @throws Apache_Solr_NoServiceAvailableException If there are no read services that meet requirements
-	 */
-	protected function _selectReadService($forceSelect = false)
-	{
-		if (!$this->_currentReadService || !isset($this->_readableServices[$this->_currentReadService]) || $forceSelect)
-		{
-			if ($this->_currentReadService && isset($this->_readableServices[$this->_currentReadService]) && $forceSelect)
-			{
-				// we probably had a communication error, ping the current read service, remove it if it times out
-				if ($this->_readableServices[$this->_currentReadService]->ping($this->_readPingTimeout) === false)
-				{
-					$this->removeReadService($this->_currentReadService);
-				}
-			}
-
-			if (count($this->_readableServices))
-			{
-				// select one of the read services at random
-				$ids = array_keys($this->_readableServices);
-
-				$id = $ids[rand(0, count($ids) - 1)];
-				$service = $this->_readableServices[$id];
-
-				if (is_array($service))
-				{
-					//convert the array definition to a client object
-					$service = new Apache_Solr_Service($service['host'], $service['port'], $service['path']);
-					$this->_readableServices[$id] = $service;
-				}
-
-				$service->setCreateDocuments($this->_createDocuments);
-				$this->_currentReadService = $id;
-			}
-			else
-			{
-				throw new Apache_Solr_NoServiceAvailableException('No read services were available');
-			}
-		}
-
-		return $this->_readableServices[$this->_currentReadService];
-	}
-
-	/**
-	 * Iterate through available write services and select the first with a ping
-	 * that satisfies configured timeout restrictions (or the default)
-	 *
-	 * @return Apache_Solr_Service
-	 *
-	 * @throws Apache_Solr_NoServiceAvailableException If there are no write services that meet requirements
-	 */
-	protected function _selectWriteService($forceSelect = false)
-	{
-		if($this->_useBackoff)
-		{
-			return $this->_selectWriteServiceSafe($forceSelect);
-		}
-
-		if (!$this->_currentWriteService || !isset($this->_writeableServices[$this->_currentWriteService]) || $forceSelect)
-		{
-			if ($this->_currentWriteService && isset($this->_writeableServices[$this->_currentWriteService]) && $forceSelect)
-			{
-				// we probably had a communication error, ping the current read service, remove it if it times out
-				if ($this->_writeableServices[$this->_currentWriteService]->ping($this->_writePingTimeout) === false)
-				{
-					$this->removeWriteService($this->_currentWriteService);
-				}
-			}
-
-			if (count($this->_writeableServices))
-			{
-				// select one of the read services at random
-				$ids = array_keys($this->_writeableServices);
-
-				$id = $ids[rand(0, count($ids) - 1)];
-				$service = $this->_writeableServices[$id];
-
-				if (is_array($service))
-				{
-					//convert the array definition to a client object
-					$service = new Apache_Solr_Service($service['host'], $service['port'], $service['path']);
-					$this->_writeableServices[$id] = $service;
-				}
-
-				$this->_currentWriteService = $id;
-			}
-			else
-			{
-				throw new Apache_Solr_NoServiceAvailableException('No write services were available');
-			}
-		}
-
-		return $this->_writeableServices[$this->_currentWriteService];
-	}
-
-	/**
-	 * Iterate through available write services and select the first with a ping
-	 * that satisfies configured timeout restrictions (or the default).  The
-	 * timeout period will increase until a connection is made or the limit is
-	 * reached.   This will allow for increased reliability with heavily loaded
-	 * server(s).
-	 *
-	 * @return Apache_Solr_Service
-	 *
-	 * @throws Apache_Solr_NoServiceAvailableException If there are no write services that meet requirements
-	 */
-
-	protected function _selectWriteServiceSafe($forceSelect = false)
-	{
-		if (!$this->_currentWriteService || !isset($this->_writeableServices[$this->_currentWriteService]) || $forceSelect)
-		{
-			if (count($this->_writeableServices))
-			{
-				$backoff = $this->_defaultBackoff;
-
-				do {
-					// select one of the read services at random
-					$ids = array_keys($this->_writeableServices);
-
-					$id = $ids[rand(0, count($ids) - 1)];
-					$service = $this->_writeableServices[$id];
-
-					if (is_array($service))
-					{
-						//convert the array definition to a client object
-						$service = new Apache_Solr_Service($service['host'], $service['port'], $service['path']);
-						$this->_writeableServices[$id] = $service;
-					}
-
-					$this->_currentWriteService = $id;
-
-					$backoff *= $this->_backoffEscalation;
-
-					if($backoff > $this->_backoffLimit)
-					{
-						throw new Apache_Solr_NoServiceAvailableException('No write services were available.  All timeouts exceeded.');
-					}
-
-				} while($this->_writeableServices[$this->_currentWriteService]->ping($backoff) === false);
-			}
-			else
-			{
-				throw new Apache_Solr_NoServiceAvailableException('No write services were available');
-			}
-		}
-
-		return $this->_writeableServices[$this->_currentWriteService];
-	}
-
-	/**
-	 * Set the create documents flag. This determines whether {@link Apache_Solr_Response} objects will
-	 * parse the response and create {@link Apache_Solr_Document} instances in place.
-	 *
-	 * @param boolean $createDocuments
-	 */
-	public function setCreateDocuments($createDocuments)
-	{
-		$this->_createDocuments = (bool) $createDocuments;
-
-		// set on current read service
-		if ($this->_currentReadService)
-		{
-			$service = $this->_selectReadService();
-			$service->setCreateDocuments($createDocuments);
-		}
-	}
-
-	/**
-	 * Get the current state of teh create documents flag.
-	 *
-	 * @return boolean
-	 */
-	public function getCreateDocuments()
-	{
-		return $this->_createDocuments;
-	}
-	
-	/**
-	 * Raw Add Method. Takes a raw post body and sends it to the update service.  Post body
-	 * should be a complete and well formed "add" xml document.
-	 *
-	 * @param string $rawPost
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_HttpTransportException If an error occurs during the service call
-	 */
-	public function add($rawPost)
-	{
-		$service = $this->_selectWriteService();
-
-		do
-		{
-			try
-			{
-				return $service->add($rawPost);
-			}
-			catch (Apache_Solr_HttpTransportException $e)
-			{
-				if ($e->getCode() != 0) //IF NOT COMMUNICATION ERROR
-				{
-					throw $e;
-				}
-			}
-
-			$service = $this->_selectWriteService(true);
-		} while ($service);
-
-		return false;
-	}
-
-	/**
-	 * Add a Solr Document to the index
-	 *
-	 * @param Apache_Solr_Document $document
-	 * @param boolean $allowDups
-	 * @param boolean $overwritePending
-	 * @param boolean $overwriteCommitted
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_HttpTransportException If an error occurs during the service call
-	 */
-	public function addDocument(Apache_Solr_Document $document, $allowDups = false, $overwritePending = true, $overwriteCommitted = true)
-	{
-		$service = $this->_selectWriteService();
-
-		do
-		{
-			try
-			{
-				return $service->addDocument($document, $allowDups, $overwritePending, $overwriteCommitted);
-			}
-			catch (Apache_Solr_HttpTransportException $e)
-			{
-				if ($e->getCode() != 0) //IF NOT COMMUNICATION ERROR
-				{
-					throw $e;
-				}
-			}
-
-			$service = $this->_selectWriteService(true);
-		} while ($service);
-
-		return false;
-	}
-
-	/**
-	 * Add an array of Solr Documents to the index all at once
-	 *
-	 * @param array $documents Should be an array of Apache_Solr_Document instances
-	 * @param boolean $allowDups
-	 * @param boolean $overwritePending
-	 * @param boolean $overwriteCommitted
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_HttpTransportException If an error occurs during the service call
-	 */
-	public function addDocuments($documents, $allowDups = false, $overwritePending = true, $overwriteCommitted = true)
-	{
-		$service = $this->_selectWriteService();
-
-		do
-		{
-			try
-			{
-				return $service->addDocuments($documents, $allowDups, $overwritePending, $overwriteCommitted);
-			}
-			catch (Apache_Solr_HttpTransportException $e)
-			{
-				if ($e->getCode() != 0) //IF NOT COMMUNICATION ERROR
-				{
-					throw $e;
-				}
-			}
-
-			$service = $this->_selectWriteService(true);
-		} while ($service);
-
-		return false;
-	}
-
-	/**
-	 * Send a commit command.  Will be synchronous unless both wait parameters are set
-	 * to false.
-	 *
-	 * @param boolean $waitFlush
-	 * @param boolean $waitSearcher
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_HttpTransportException If an error occurs during the service call
-	 */
-	public function commit($optimize = true, $waitFlush = true, $waitSearcher = true, $timeout = 3600)
-	{
-		$service = $this->_selectWriteService();
-
-		do
-		{
-			try
-			{
-				return $service->commit($optimize, $waitFlush, $waitSearcher, $timeout);
-			}
-			catch (Apache_Solr_HttpTransportException $e)
-			{
-				if ($e->getCode() != 0) //IF NOT COMMUNICATION ERROR
-				{
-					throw $e;
-				}
-			}
-
-			$service = $this->_selectWriteService(true);
-		} while ($service);
-
-		return false;
-	}
-
-	/**
-	 * Raw Delete Method. Takes a raw post body and sends it to the update service. Body should be
-	 * a complete and well formed "delete" xml document
-	 *
-	 * @param string $rawPost
-	 * @param float $timeout Maximum expected duration of the delete operation on the server (otherwise, will throw a communication exception)
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_HttpTransportException If an error occurs during the service call
-	 */
-	public function delete($rawPost, $timeout = 3600)
-	{
-		$service = $this->_selectWriteService();
-
-		do
-		{
-			try
-			{
-				return $service->delete($rawPost, $timeout);
-			}
-			catch (Apache_Solr_HttpTransportException $e)
-			{
-				if ($e->getCode() != 0) //IF NOT COMMUNICATION ERROR
-				{
-					throw $e;
-				}
-			}
-
-			$service = $this->_selectWriteService(true);
-		} while ($service);
-
-		return false;
-	}
-
-	/**
-	 * Create a delete document based on document ID
-	 *
-	 * @param string $id
-	 * @param boolean $fromPending
-	 * @param boolean $fromCommitted
-	 * @param float $timeout Maximum expected duration of the delete operation on the server (otherwise, will throw a communication exception)
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_HttpTransportException If an error occurs during the service call
-	 */
-	public function deleteById($id, $fromPending = true, $fromCommitted = true, $timeout = 3600)
-	{
-		$service = $this->_selectWriteService();
-
-		do
-		{
-			try
-			{
-				return $service->deleteById($id, $fromPending, $fromCommitted, $timeout);
-			}
-			catch (Apache_Solr_HttpTransportException $e)
-			{
-				if ($e->getCode() != 0) //IF NOT COMMUNICATION ERROR
-				{
-					throw $e;
-				}
-			}
-
-			$service = $this->_selectWriteService(true);
-		} while ($service);
-
-		return false;
-	}
-
-	/**
-	 * Create and post a delete document based on multiple document IDs.
-	 *
-	 * @param array $ids Expected to be utf-8 encoded strings
-	 * @param boolean $fromPending
-	 * @param boolean $fromCommitted
-	 * @param float $timeout Maximum expected duration of the delete operation on the server (otherwise, will throw a communication exception)
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_HttpTransportException If an error occurs during the service call
-	 */
-	public function deleteByMultipleIds($ids, $fromPending = true, $fromCommitted = true, $timeout = 3600)
-	{
-		$service = $this->_selectWriteService();
-
-		do
-		{
-			try
-			{
-				return $service->deleteByMultipleId($ids, $fromPending, $fromCommitted, $timeout);
-			}
-			catch (Apache_Solr_HttpTransportException $e)
-			{
-				if ($e->getCode() != 0) //IF NOT COMMUNICATION ERROR
-				{
-					throw $e;
-				}
-			}
-
-			$service = $this->_selectWriteService(true);
-		} while ($service);
-
-		return false;
-	}
-
-	/**
-	 * Create a delete document based on a query and submit it
-	 *
-	 * @param string $rawQuery
-	 * @param boolean $fromPending
-	 * @param boolean $fromCommitted
-	 * @param float $timeout Maximum expected duration of the delete operation on the server (otherwise, will throw a communication exception)
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_HttpTransportException If an error occurs during the service call
-	 */
-	public function deleteByQuery($rawQuery, $fromPending = true, $fromCommitted = true, $timeout = 3600)
-	{
-		$service = $this->_selectWriteService();
-
-		do
-		{
-			try
-			{
-				return $service->deleteByQuery($rawQuery, $fromPending, $fromCommitted, $timeout);
-			}
-			catch (Apache_Solr_HttpTransportException $e)
-			{
-				if ($e->getCode() != 0) //IF NOT COMMUNICATION ERROR
-				{
-					throw $e;
-				}
-			}
-
-			$service = $this->_selectWriteService(true);
-		} while ($service);
-
-		return false;
-	}
-	
-	/**
-	 * Use Solr Cell to extract document contents. See {@link http://wiki.apache.org/solr/ExtractingRequestHandler} for information on how
-	 * to use Solr Cell and what parameters are available.
-	 *
-	 * NOTE: when passing an Apache_Solr_Document instance, field names and boosts will automatically be prepended by "literal." and "boost."
-	 * as appropriate. Any keys from the $params array will NOT be treated this way. Any mappings from the document will overwrite key / value
-	 * pairs in the params array if they have the same name (e.g. you pass a "literal.id" key and value in your $params array but you also
-	 * pass in a document isntance with an "id" field" - the document's value(s) will take precedence).
-	 *
-	 * @param string $file Path to file to extract data from
-	 * @param array $params optional array of key value pairs that will be sent with the post (see Solr Cell documentation)
-	 * @param Apache_Solr_Document $document optional document that will be used to generate post parameters (literal.* and boost.* params)
-	 * @param string $mimetype optional mimetype specification (for the file being extracted)
-	 *
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_InvalidArgumentException if $file, $params, or $document are invalid.
-	 */
-	public function extract($file, $params = array(), $document = null, $mimetype = 'application/octet-stream')
-	{
-		$service = $this->_selectWriteService();
-
-		do
-		{
-			try
-			{
-				return $service->extract($file, $params, $document, $mimetype);
-			}
-			catch (Apache_Solr_HttpTransportException $e)
-			{
-				if ($e->getCode() != 0) //IF NOT COMMUNICATION ERROR
-				{
-					throw $e;
-				}
-			}
-
-			$service = $this->_selectWriteService(true);
-		} while ($service);
-
-		return false;
-	}
-	
-	/**
-	 * Use Solr Cell to extract document contents. See {@link http://wiki.apache.org/solr/ExtractingRequestHandler} for information on how
-	 * to use Solr Cell and what parameters are available.
-	 *
-	 * NOTE: when passing an Apache_Solr_Document instance, field names and boosts will automatically be prepended by "literal." and "boost."
-	 * as appropriate. Any keys from the $params array will NOT be treated this way. Any mappings from the document will overwrite key / value
-	 * pairs in the params array if they have the same name (e.g. you pass a "literal.id" key and value in your $params array but you also
-	 * pass in a document isntance with an "id" field" - the document's value(s) will take precedence).
-	 *
-	 * @param string $data Data that will be passed to Solr Cell
-	 * @param array $params optional array of key value pairs that will be sent with the post (see Solr Cell documentation)
-	 * @param Apache_Solr_Document $document optional document that will be used to generate post parameters (literal.* and boost.* params)
-	 * @param string $mimetype optional mimetype specification (for the file being extracted)
-	 *
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_InvalidArgumentException if $file, $params, or $document are invalid.
-	 *
-	 * @todo Should be using multipart/form-data to post parameter values, but I could not get my implementation to work. Needs revisisted.
-	 */
-	public function extractFromString($data, $params = array(), $document = null, $mimetype = 'application/octet-stream')
-	{
-		$service = $this->_selectWriteService();
-
-		do
-		{
-			try
-			{
-				return $service->extractFromString($data, $params, $document, $mimetype);
-			}
-			catch (Apache_Solr_HttpTransportException $e)
-			{
-				if ($e->getCode() != 0) //IF NOT COMMUNICATION ERROR
-				{
-					throw $e;
-				}
-			}
-
-			$service = $this->_selectWriteService(true);
-		} while ($service);
-
-		return false;
-	}
-	
-	/**
-	 * Send an optimize command.  Will be synchronous unless both wait parameters are set
-	 * to false.
-	 *
-	 * @param boolean $waitFlush
-	 * @param boolean $waitSearcher
-	 * @param float $timeout Maximum expected duration of the optimize operation on the server (otherwise, will throw a communication exception)
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_HttpTransportException If an error occurs during the service call
-	 */
-	public function optimize($waitFlush = true, $waitSearcher = true, $timeout = 3600)
-	{
-		$service = $this->_selectWriteService();
-
-		do
-		{
-			try
-			{
-				return $service->optimize($waitFlush, $waitSearcher, $timeout);
-			}
-			catch (Apache_Solr_HttpTransportException $e)
-			{
-				if ($e->getCode() != 0) //IF NOT COMMUNICATION ERROR
-				{
-					throw $e;
-				}
-			}
-
-			$service = $this->_selectWriteService(true);
-		} while ($service);
-
-		return false;
-	}
-
-	/**
-	 * Simple Search interface
-	 *
-	 * @param string $query The raw query string
-	 * @param int $offset The starting offset for result documents
-	 * @param int $limit The maximum number of result documents to return
-	 * @param array $params key / value pairs for query parameters, use arrays for multivalued parameters
-	 * @param string $method The HTTP method (Apache_Solr_Service::METHOD_GET or Apache_Solr_Service::METHOD::POST)
-	 * @return Apache_Solr_Response
-	 *
-	 * @throws Apache_Solr_HttpTransportException If an error occurs during the service call
-	 */
-	public function search($query, $offset = 0, $limit = 10, $params = array(), $method = Apache_Solr_Service::METHOD_GET)
-	{
-		$service = $this->_selectReadService();
-
-		do
-		{
-			try
-			{
-				return $service->search($query, $offset, $limit, $params, $method);
-			}
-			catch (Apache_Solr_HttpTransportException $e)
-			{
-				if ($e->getCode() != 0) //IF NOT COMMUNICATION ERROR
-				{
-					throw $e;
-				}
-			}
-
-			$service = $this->_selectReadService(true);
-		} while ($service);
-
-		return false;
-	}
-}

+ 0 - 26
SolrPhpClient/COPYING

@@ -1,26 +0,0 @@
-Copyright (c) 2007-2011, Servigistics, Inc. 
-All rights reserved. 
-
-Redistribution and use in source and binary forms, with or without 
-modification, are permitted provided that the following conditions are met: 
-
- * Redistributions of source code must retain the above copyright notice, 
-   this list of conditions and the following disclaimer. 
- * Redistributions in binary form must reproduce the above copyright 
-   notice, this list of conditions and the following disclaimer in the 
-   documentation and/or other materials provided with the distribution. 
- * Neither the name of Servigistics, Inc. nor the names of 
-   its contributors may be used to endorse or promote products derived from 
-   this software without specific prior written permission. 
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
-LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
-INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
-CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
-ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
-POSSIBILITY OF SUCH DAMAGE. 

+ 0 - 342
SolrPhpClient/ChangeLog

@@ -1,342 +0,0 @@
-2011-02-08 20:38  donovan.jimenez
-
-	* Apache/Solr/Service.php, tests/Apache/Solr/ServiceTest.php: See
-	  issue #59 - Adding service extractFromUrl method. This will use
-	  the configured HTTP transport to request the resource. extract
-	  has been modified to detect a file path that starts with http /
-	  https and to defer to extractFromUrl instead. Also, moved
-	  checking for params parameter to the top of method bodies so we
-	  can fail earlier rather than after we've gotten a file / url's
-	  content.
-
-2011-02-08 19:28  donovan.jimenez
-
-	* Apache/Solr/Service.php, tests/Apache/Solr/ServiceTest.php: See
-	  issue #43 - Changing optimize parameter of service's commit
-	  method to its correct name: expungeDeletes. Also harded php unit
-	  tests around commit.
-	  
-	  thanks to Liam O'Boyle and Olivier Ricordeau for patches for this
-	  commit and the previous one for issue #51
-
-2011-02-08 19:11  donovan.jimenez
-
-	* Apache/Solr/Service.php, tests/Apache/Solr/ServiceTest.php: See
-	  issue #51 - adding commitWithin parameter to addDocument and
-	  addDocuments. Also hardened php unit tests for this functions
-
-2011-02-04 16:29  donovan.jimenez
-
-	* Apache/Solr/Document.php, Apache/Solr/Exception.php,
-	  Apache/Solr/HttpTransport/Abstract.php,
-	  Apache/Solr/HttpTransport/Curl.php,
-	  Apache/Solr/HttpTransport/CurlNoReuse.php,
-	  Apache/Solr/HttpTransport/FileGetContents.php,
-	  Apache/Solr/HttpTransport/Interface.php,
-	  Apache/Solr/HttpTransport/Response.php,
-	  Apache/Solr/HttpTransportException.php,
-	  Apache/Solr/InvalidArgumentException.php,
-	  Apache/Solr/NoServiceAvailableException.php,
-	  Apache/Solr/ParserException.php, Apache/Solr/Response.php,
-	  Apache/Solr/Service.php, Apache/Solr/Service/Balancer.php,
-	  COPYING, tests/Apache/Solr/DocumentTest.php,
-	  tests/Apache/Solr/HttpTransport/AbstractTest.php,
-	  tests/Apache/Solr/HttpTransport/CurlNoReuseTest.php,
-	  tests/Apache/Solr/HttpTransport/CurlTest.php,
-	  tests/Apache/Solr/HttpTransport/FileGetContentsTest.php,
-	  tests/Apache/Solr/HttpTransport/ResponseTest.php,
-	  tests/Apache/Solr/HttpTransportExceptionTest.php,
-	  tests/Apache/Solr/ResponseTest.php,
-	  tests/Apache/Solr/Service/BalancerTest.php,
-	  tests/Apache/Solr/ServiceAbstractTest.php,
-	  tests/Apache/Solr/ServiceTest.php: Updating licence and copyright
-	  texts in sources to reflect transition from Conduit IT to
-	  Servigistics
-
-2010-11-02 20:16  donovan.jimenez
-
-	* Apache/Solr/Service.php, Apache/Solr/Service/Balancer.php,
-	  tests/Apache/Solr/ServiceAbstractTest.php,
-	  tests/Apache/Solr/ServiceTest.php: See issue #55
-	  * Adding an Apache_Solr_Service::extractFromString method
-	  * Adding Apache_Solr_Service_Balancer::extract and
-	  Apache_Solr_Service_Balancer::extractFromString methods
-
-2010-10-21 15:23  donovan.jimenez
-
-	* ., Apache/Solr/HttpTransport,
-	  Apache/Solr/HttpTransport/Abstract.php,
-	  Apache/Solr/HttpTransport/Curl.php,
-	  Apache/Solr/HttpTransport/CurlNoReuse.php,
-	  Apache/Solr/HttpTransport/FileGetContents.php,
-	  Apache/Solr/HttpTransport/Interface.php,
-	  Apache/Solr/HttpTransport/Response.php, Apache/Solr/Response.php,
-	  Apache/Solr/Service.php, Apache/Solr/Service/Balancer.php,
-	  COPYING, tests/Apache/Solr/DocumentTest.php,
-	  tests/Apache/Solr/HttpTransport,
-	  tests/Apache/Solr/HttpTransport/AbstractTest.php,
-	  tests/Apache/Solr/HttpTransport/CurlNoReuseTest.php,
-	  tests/Apache/Solr/HttpTransport/CurlTest.php,
-	  tests/Apache/Solr/HttpTransport/FileGetContentsTest.php,
-	  tests/Apache/Solr/HttpTransport/ResponseTest.php,
-	  tests/Apache/Solr/HttpTransportExceptionTest.php,
-	  tests/Apache/Solr/ResponseTest.php,
-	  tests/Apache/Solr/Service/BalancerTest.php,
-	  tests/Apache/Solr/Service/TestAll.php,
-	  tests/Apache/Solr/ServiceAbstractTest.php,
-	  tests/Apache/Solr/ServiceTest.php, tests/Apache/Solr/TestAll.php,
-	  tests/phpunit.bootstrap.inc, tests/phpunit.xml, tests/run.php:
-	  Merging the http_requests branch into trunk
-	  
-	  See issue #49 - Service can now have the way it makes HTTP
-	  requests plugged in.
-	  The only requirement is that the plugin implement the new
-	  Apache_Solr_HttpTransport_Interface. There are initial
-	  implementations for using
-	  file_get_contents (what was used previously) and for using the
-	  curl module. Much
-	  thanks to Timo Schmidt for submitting an initial patch.
-	  
-	  If the user does not specifically provide a transport interface
-	  instance, the
-	  file get contents implementation will be used by default.
-	  
-	  There is a compatibility breaking change on the
-	  Apache_Solr_Response
-	  constructor. The Signature has changed.
-	  
-	  The getDefaultTimeout and setDefaultTimeout methods on the
-	  Apache_Solr_Service
-	  class are now deprecated. They simple pass through to the active
-	  transport's
-	  methods of the same name, and I'd rather the user manage it
-	  there.
-	  
-	  Additionally, I have cleaned up and expanded the existing unit
-	  tests - had to
-	  change tests related to the breaking change, and added new ones
-	  for the new
-	  classes as well as expanding existing ones. They should now all
-	  pass. curl tests
-	  should only run if the curl module is enabled. file get contents
-	  tests should
-	  only run if allow_url_fopen is enabled. transport tests do rely
-	  on an internet
-	  connection at this time.
-
-2010-09-07 14:44  donovan.jimenez
-
-	* Apache/Solr/Document.php: See issue #48, doing an isset check as
-	  part of the magic get. Return null if not.
-
-2010-09-07 14:34  donovan.jimenez
-
-	* Apache/Solr/Service.php: See issue #47, adding missing argument
-	  to getFieldBoost call in Apache_Solr_Service::extract method
-
-2010-07-08 22:35  donovan.jimenez
-
-	* Apache/Solr/Service.php: See issue #37 - adding a getter /
-	  setting for the default timeout value. Still initially populated
-	  with the default_socket_timeout ini setting
-
-2010-07-08 22:21  donovan.jimenez
-
-	* Apache/Solr/Service.php: See issue #42 - Adding missing require
-	  once for ParserException
-
-2010-04-24 00:44  donovan.jimenez
-
-	* Apache/Solr/HttpTransportException.php, Apache/Solr/Service.php:
-	  See issue #38 - Adding support for Solr Cell (tika) extraction
-	  handler. Thanks to Liam O'Boyle for original patch.
-
-2010-03-22 23:10  donovan.jimenez
-
-	* Apache/Solr/Service.php: See Issue #39 - send charset for POST
-	  form encoded data so that the servlet container for solr will
-	  interpret data correctly (will usually default to latin1)
-
-2010-03-22 23:06  donovan.jimenez
-
-	* Apache/Solr/Service.php: Resolving Issue #40 - when using php
-	  with all error output or using a code analyzer, the
-	  http_response_header variable looks as though it won't be
-	  initialized before being used. Initializing it to null to
-	  alleviate the emitted warning.
-
-2010-03-10 00:28  donovan.jimenez
-
-	* tests, tests/Apache, tests/Apache/Solr,
-	  tests/Apache/Solr/DocumentTest.php,
-	  tests/Apache/Solr/ResponseTest.php, tests/Apache/Solr/Service,
-	  tests/Apache/Solr/Service/BalancerTest.php,
-	  tests/Apache/Solr/Service/TestAll.php,
-	  tests/Apache/Solr/ServiceTest.php, tests/Apache/Solr/TestAll.php,
-	  tests/README, tests/phpunit.bootstrap.inc, tests/phpunit.xml,
-	  tests/run.php: Adding some very dusty unit tests. They are not
-	  complete, and some recent API changes may not be reflected in
-	  them, but they are a start.
-
-2010-02-20 00:01  donovan.jimenez
-
-	* Apache/Solr/Service/Balancer.php: See Issue #34 - synchronizing
-	  Apache_Solr_Service_Balancer public methods with changes in
-	  Apache_Solr_Service. Specifically, adding some missing optional
-	  timeout parameters and adding the new deleteByMultipleIds method
-
-2010-02-19 23:47  donovan.jimenez
-
-	* Apache/Solr/Response.php: See Issue #35 - implementing __isset
-	  magic method on Apache_Solr_Response
-
-2010-02-19 23:36  donovan.jimenez
-
-	* Apache/Solr/Document.php, Apache/Solr/Exception.php,
-	  Apache/Solr/HttpTransportException.php,
-	  Apache/Solr/InvalidArgumentException.php,
-	  Apache/Solr/NoServiceAvailableException.php,
-	  Apache/Solr/ParserException.php, Apache/Solr/Response.php,
-	  Apache/Solr/Service.php, Apache/Solr/Service/Balancer.php: See
-	  Issue #36 - fix usage of generic exceptions, thanks to dennis
-	  vierkant for the patch.
-
-2009-12-10 03:51  donovan.jimenez
-
-	* Apache/Solr/Service.php: Fixes issue #28 - Fixes typo in
-	  setNamedListTreatment function name. Thanks to alex dunae
-
-2009-12-10 03:49  donovan.jimenez
-
-	* Apache/Solr/Response.php: Fixes issue #27 - when parsing the JSON
-	  data, add a check for null so we can throw an exception if the
-	  response seems to be invalid. Thanks to thomas rabaix for the
-	  suggestion.
-
-2009-11-21 02:07  donovan.jimenez
-
-	* Apache/Solr/Service.php: see issue #23 - removing unused (by Sorl
-	  JSON writer) and incorrect (version did not track with Solr
-	  version) version parameter from all requests
-
-2009-11-21 02:02  donovan.jimenez
-
-	* Apache/Solr/Service.php: Fixes #26 - Do a php version check
-	  against 5.1.3 to determine whether brackets will be url encoded
-	  by http_build_query function. Depending on the result of the
-	  version check use the proper regex for fixing up the query string
-	  before passing it to Solr
-
-2009-11-09 22:46  donovan.jimenez
-
-	* Apache/Solr/Service.php: Fixes #20 - in previous fix, used
-	  stream_context_set_params when I should have used
-	  stream_context_set_option
-
-2009-11-09 22:08  donovan.jimenez
-
-	* Apache/Solr/Service.php: Fixes #20 - Reusing a get and post
-	  context for each request instead of creating a new stream context
-	  for each. PHP does not provide a function to delete created
-	  stream contexts and does not appear to clean them up when they go
-	  out of scope, which leads to high memory usage when many solr
-	  requests were issued (typically in indexing usage)
-
-2009-11-09 21:32  donovan.jimenez
-
-	* Apache/Solr/Service.php: Fixes #21 - Adding method to delete by
-	  multiple IDs. Thanks to pwolanin
-
-2009-08-12 14:08  donovan.jimenez
-
-	* Apache/Solr/Response.php: The split function is deprecated as of
-	  PHP 5.3. Furthermore, since none of my split's were using a regex
-	  it is better to use explode anyway. Fixes #19
-
-2009-08-04 18:23  donovan.jimenez
-
-	* Apache/Solr/Response.php, Apache/Solr/Service.php: Removed todo's
-	  about investigating Serialized PHP and PHP output writer usage.
-	  I've made the decision to stick to usage of JSON output writer
-	  until it can be proven that the other output writers are more
-	  stable or provide a substantially faster implementation. Closes
-	  issue #6
-
-2009-08-04 17:53  donovan.jimenez
-
-	* Apache/Solr/Document.php, Apache/Solr/Response.php,
-	  Apache/Solr/Service.php, Apache/Solr/Service/Balancer.php: Adding
-	  useful SVN metadata constants to each Apache_Solr class by svn
-	  keyword substitution. Fixes issue #16
-
-2009-08-04 17:14  donovan.jimenez
-
-	* Apache/Solr/Service.php: Fixes issue #5 - Applying patch (with
-	  minor changes) from mkalkbrenner to replace all control
-	  characters in Apache_Solr_Document keys / values with spaces to
-	  avoid an exception from Solr's XML Parser.
-
-2009-07-20 14:14  donovan.jimenez
-
-	* Apache/Solr/Service.php: See issue #14
-	  * adding timeout parameters to all delete functions
-
-2009-05-11 14:51  donovan.jimenez
-
-	* Apache/Solr/Service.php: See issue #8
-	  * Adding the ability to specify the HTTP method used for sending
-	  a search query (GET or POST)
-
-2009-03-12 03:46  donovan.jimenez
-
-	* Apache/Solr/Service.php: See
-	  http://code.google.com/p/solr-php-client/issues/detail?id=4
-	  * Reworking Service::ping() to just use file_get_contents URL
-	  wrappers like we do for other GET's and POST operations
-	  * Reworked Service::_sendRawGet() and Service::_sendRawPost() to
-	  create a new stream context each time. Used for controlled
-	  request timeouts, headers, and POST information
-
-2009-01-29 00:49  donovan.jimenez
-
-	* Apache/Solr/Document.php: See
-	  http://code.google.com/p/solr-php-client/issues/detail?id=2
-	  
-	  Attempting to fix null vs. false boost parameter value issue by
-	  always casting to float value first.
-	  
-	  Needs tested.
-
-2009-01-28 17:11  donovan.jimenez
-
-	* Apache/Solr/Service.php, Apache/Solr/Service/Balancer.php: See
-	  http://code.google.com/p/solr-php-client/issues/detail?id=1
-	  
-	  Changed require_once statements that expected the Solr Client
-	  library to be on the include path into statements that use the
-	  __FILE__ magic constant to do them as absolute paths. This should
-	  get rid of the requirement for the user to change their include
-	  path configuration or add the library to the include path at
-	  runtime.
-	  
-	  Provided as a convenience for the user.
-	  
-
-2009-01-22 04:01  donovan.jimenez
-
-	* Apache/Solr/Document.php, Apache/Solr/Response.php,
-	  Apache/Solr/Service.php, Apache/Solr/Service/Balancer.php,
-	  COPYING: Updating license to New BSD for google code hosting.
-	  Also updating copyright message
-
-2009-01-21 23:50  donovan.jimenez
-
-	* Apache, Apache/Solr, Apache/Solr/Document.php,
-	  Apache/Solr/Response.php, Apache/Solr/Service,
-	  Apache/Solr/Service.php, Apache/Solr/Service/Balancer.php:
-	  Importing Solr PHP client from last released zip file
-
-2008-11-26 00:26  
-
-	* .: Initial directory structure.
-

ファイルの差分が大きいため隠しています
+ 0 - 32
SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_Document.html


ファイルの差分が大きいため隠しています
+ 0 - 33
SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_Exception.html


ファイルの差分が大きいため隠しています
+ 0 - 31
SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_HttpTransportException.html


+ 0 - 196
SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_HttpTransport_Abstract.html

@@ -1,196 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-  <html xmlns="http://www.w3.org/1999/xhtml">
-		<head>
-			<!-- template designed by Marco Von Ballmoos -->
-			<title>Docs For Class Apache_Solr_HttpTransport_Abstract</title>
-			<link rel="stylesheet" href="../../media/stylesheet.css" />
-			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-		</head>
-		<body>
-			<div class="page-body">			
-<h2 class="class-name">Class Apache_Solr_HttpTransport_Abstract</h2>
-
-<a name="sec-description"></a>
-<div class="info-box">
-	<div class="info-box-title">Description</div>
-	<div class="nav-bar">
-					<span class="disabled">Description</span> |
-							<a href="#sec-descendents">Descendents</a>
-			|													<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-						
-					</div>
-	<div class="info-box-body">
-                <p class="implements">
-            Implements interfaces:
-            <ul>
-                <li><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Interface.html">Apache_Solr_HttpTransport_Interface</a></li>            </ul>
-        </p>
-        		<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Convenience class that implements the transport implementation. Can be extended by</p>
-<p class="description"><p>real implementations to do some of the common book keeping</p></p>
-	<ul class="tags">
-				<li><span class="field">abstract:</span> </li>
-			</ul>
-		<p class="notes">
-			Located in <a class="field" href="_HttpTransport---Abstract.php.html">/HttpTransport/Abstract.php</a> (line <span class="field"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportAbstract.php.html#a43">43</a></span>)
-		</p>
-		
-				
-		<pre></pre>
-	
-			</div>
-</div>
-
-	<a name="sec-descendents"></a>
-	<div class="info-box">
-		<div class="info-box-title">Direct descendents</div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-			<span class="disabled">Descendents</span>
-			|															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-							
-								</div>
-		<div class="info-box-body">
-			<table cellpadding="2" cellspacing="0" class="class-table">
-				<tr>
-					<th class="class-table-header">Class</th>
-					<th class="class-table-header">Description</th>
-				</tr>
-								<tr>
-					<td style="padding-right: 2em"><a href="../../Apache/Solr/Apache_Solr_HttpTransport_FileGetContents.html">Apache_Solr_HttpTransport_FileGetContents</a></td>
-					<td>
-											HTTP Transport implemenation that uses the builtin http URL wrappers and file_get_contents
-										</td>
-				</tr>
-								<tr>
-					<td style="padding-right: 2em"><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Curl.html">Apache_Solr_HttpTransport_Curl</a></td>
-					<td>
-											A Curl based HTTP transport. Uses a single curl session for all requests.
-										</td>
-				</tr>
-								<tr>
-					<td style="padding-right: 2em"><a href="../../Apache/Solr/Apache_Solr_HttpTransport_CurlNoReuse.html">Apache_Solr_HttpTransport_CurlNoReuse</a></td>
-					<td>
-											An alternative Curl HTTP transport that opens and closes a curl session for  every request. This isn't the recommended way to use curl, but some version of  PHP have memory issues.
-										</td>
-				</tr>
-							</table>
-		</div>
-	</div>
-
-
-
-	<a name="sec-method-summary"></a>
-	<div class="info-box">
-		<div class="info-box-title">Method Summary</span></div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-							<a href="#sec-descendents">Descendents</a> |
-												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
-		</div>
-		<div class="info-box-body">			
-			<div class="method-summary">
-																														
-				<div class="method-definition">
-											<span class="method-result">float</span>
-										<a href="#getDefaultTimeout" title="details" class="method-name">getDefaultTimeout</a>
-										()
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result">void</span>
-										<a href="#setDefaultTimeout" title="details" class="method-name">setDefaultTimeout</a>
-											(<span class="var-type">float</span>&nbsp;<span class="var-name">$timeout</span>)
-									</div>
-											</div>
-		</div>
-	</div>		
-
-	
-	<a name="sec-methods"></a>
-	<div class="info-box">
-		<div class="info-box-title">Methods</div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-							<a href="#sec-descendents">Descendents</a> |
-																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
-						
-		</div>
-		<div class="info-box-body">
-			<A NAME='method_detail'></A>
-<a name="methodgetDefaultTimeout" id="getDefaultTimeout"><!-- --></a>
-<div class="evenrow">
-	
-	<div class="method-header">
-		<span class="method-title">getDefaultTimeout</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportAbstract.php.html#a58">58</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Get the current default timeout setting (initially the default_socket_timeout ini setting)  in seconds</p>
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">float</span>
-		<span class="method-name">
-			getDefaultTimeout
-		</span>
-				()
-			</div>
-	
-		
-				<hr class="separator" />
-		<div class="notes">Implementation of:</div>
-			<dl>
-			<dt><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Interface.html#methodgetDefaultTimeout">Apache_Solr_HttpTransport_Interface::getDefaultTimeout()</a></dt>
-						<dd>Get the current default timeout for all HTTP requests</dd>
-					</dl>
-			
-	</div>
-<a name="methodsetDefaultTimeout" id="setDefaultTimeout"><!-- --></a>
-<div class="oddrow">
-	
-	<div class="method-header">
-		<span class="method-title">setDefaultTimeout</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportAbstract.php.html#a80">80</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Set the current default timeout for all HTTP requests</p>
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">void</span>
-		<span class="method-name">
-			setDefaultTimeout
-		</span>
-					(<span class="var-type">float</span>&nbsp;<span class="var-name">$timeout</span>)
-			</div>
-	
-			<ul class="parameters">
-					<li>
-				<span class="var-type">float</span>
-				<span class="var-name">$timeout</span>			</li>
-				</ul>
-		
-				<hr class="separator" />
-		<div class="notes">Implementation of:</div>
-			<dl>
-			<dt><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Interface.html#methodsetDefaultTimeout">Apache_Solr_HttpTransport_Interface::setDefaultTimeout()</a></dt>
-						<dd>Set the current default timeout for all HTTP requests</dd>
-					</dl>
-			
-	</div>
-						
-		</div>
-	</div>
-
-
-	<p class="notes" id="credit">
-		Documentation generated on Wed, 04 May 2011 11:01:08 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
-	</p>
-	</div></body>
-</html>

+ 0 - 336
SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_HttpTransport_Curl.html

@@ -1,336 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-  <html xmlns="http://www.w3.org/1999/xhtml">
-		<head>
-			<!-- template designed by Marco Von Ballmoos -->
-			<title>Docs For Class Apache_Solr_HttpTransport_Curl</title>
-			<link rel="stylesheet" href="../../media/stylesheet.css" />
-			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-		</head>
-		<body>
-			<div class="page-body">			
-<h2 class="class-name">Class Apache_Solr_HttpTransport_Curl</h2>
-
-<a name="sec-description"></a>
-<div class="info-box">
-	<div class="info-box-title">Description</div>
-	<div class="nav-bar">
-					<span class="disabled">Description</span> |
-															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-						
-											<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
-						
-			</div>
-	<div class="info-box-body">
-        		<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">A Curl based HTTP transport. Uses a single curl session for all requests.</p>
-		<p class="notes">
-			Located in <a class="field" href="_HttpTransport---Curl.php.html">/HttpTransport/Curl.php</a> (line <span class="field"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportCurl.php.html#a45">45</a></span>)
-		</p>
-		
-				
-		<pre><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Abstract.html">Apache_Solr_HttpTransport_Abstract</a>
-   |
-   --Apache_Solr_HttpTransport_Curl</pre>
-	
-			</div>
-</div>
-
-
-	<a name="sec-const-summary"></a>
-	<div class="info-box">
-		<div class="info-box-title">Class Constant Summary</span></div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-						<span class="disabled">Constants</span> (<a href="#sec-consts">details</a>)
-										| 
-									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-							
-					</div>
-		<div class="info-box-body">
-			<div class="const-summary">
-								<div class="const-title">
-					<img src="../../media/images/Constant.png" alt=" " />
-					<a href="#SVN_ID" title="details" class="const-name">SVN_ID</a> = 					<span class="var-type"> '$Id:$'</span>
-
-				</div>
-								<div class="const-title">
-					<img src="../../media/images/Constant.png" alt=" " />
-					<a href="#SVN_REVISION" title="details" class="const-name">SVN_REVISION</a> = 					<span class="var-type"> '$Revision:$'</span>
-
-				</div>
-							</div>
-		</div>
-	</div>
-
-
-	<a name="sec-method-summary"></a>
-	<div class="info-box">
-		<div class="info-box-title">Method Summary</span></div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-															<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
-							
-									<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
-		</div>
-		<div class="info-box-body">			
-			<div class="method-summary">
-																																																						
-				<div class="method-definition">
-											<span class="method-result">Apache_Solr_HttpTransport_Curl</span>
-										<a href="#__construct" title="details" class="method-name">__construct</a>
-										()
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result">void</span>
-										<a href="#__destruct" title="details" class="method-name">__destruct</a>
-										()
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result">void</span>
-										<a href="#performGetRequest" title="details" class="method-name">performGetRequest</a>
-											(<span class="var-type"></span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">false</span>])
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result">void</span>
-										<a href="#performHeadRequest" title="details" class="method-name">performHeadRequest</a>
-											(<span class="var-type"></span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">false</span>])
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result">void</span>
-										<a href="#performPostRequest" title="details" class="method-name">performPostRequest</a>
-											(<span class="var-type"></span>&nbsp;<span class="var-name">$url</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$postData</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$contentType</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">false</span>])
-									</div>
-											</div>
-		</div>
-	</div>		
-
-	
-	<a name="sec-methods"></a>
-	<div class="info-box">
-		<div class="info-box-title">Methods</div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-																		<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
-							
-										<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
-						
-		</div>
-		<div class="info-box-body">
-			<A NAME='method_detail'></A>
-<a name="method__construct" id="__construct"><!-- --></a>
-<div class="evenrow">
-	
-	<div class="method-header">
-		<span class="method-title">Constructor __construct</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportCurl.php.html#a67">67</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Initializes a curl session</p>
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">Apache_Solr_HttpTransport_Curl</span>
-		<span class="method-name">
-			__construct
-		</span>
-				()
-			</div>
-	
-		
-			
-	</div>
-<a name="method__destruct" id="__destruct"><!-- --></a>
-<div class="oddrow">
-	
-	<div class="method-header">
-		<span class="method-title">Destructor __destruct</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportCurl.php.html#a88">88</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Closes a curl session</p>
-	
-	<div class="method-signature">
-		<span class="method-result">void</span>
-		<span class="method-name">
-			__destruct
-		</span>
-				()
-			</div>
-	
-		
-			
-	</div>
-<a name="methodperformGetRequest" id="performGetRequest"><!-- --></a>
-<div class="evenrow">
-	
-	<div class="method-header">
-		<span class="method-title">performGetRequest</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportCurl.php.html#a94">94</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">void</span>
-		<span class="method-name">
-			performGetRequest
-		</span>
-					(<span class="var-type"></span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">false</span>])
-			</div>
-	
-			<ul class="parameters">
-					<li>
-				<span class="var-type"></span>
-				<span class="var-name">$url</span>			</li>
-					<li>
-				<span class="var-type"></span>
-				<span class="var-name">$timeout</span>			</li>
-				</ul>
-		
-			
-	</div>
-<a name="methodperformHeadRequest" id="performHeadRequest"><!-- --></a>
-<div class="oddrow">
-	
-	<div class="method-header">
-		<span class="method-title">performHeadRequest</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportCurl.php.html#a128">128</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">void</span>
-		<span class="method-name">
-			performHeadRequest
-		</span>
-					(<span class="var-type"></span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">false</span>])
-			</div>
-	
-			<ul class="parameters">
-					<li>
-				<span class="var-type"></span>
-				<span class="var-name">$url</span>			</li>
-					<li>
-				<span class="var-type"></span>
-				<span class="var-name">$timeout</span>			</li>
-				</ul>
-		
-			
-	</div>
-<a name="methodperformPostRequest" id="performPostRequest"><!-- --></a>
-<div class="evenrow">
-	
-	<div class="method-header">
-		<span class="method-title">performPostRequest</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportCurl.php.html#a159">159</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">void</span>
-		<span class="method-name">
-			performPostRequest
-		</span>
-					(<span class="var-type"></span>&nbsp;<span class="var-name">$url</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$postData</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$contentType</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">false</span>])
-			</div>
-	
-			<ul class="parameters">
-					<li>
-				<span class="var-type"></span>
-				<span class="var-name">$url</span>			</li>
-					<li>
-				<span class="var-type"></span>
-				<span class="var-name">$postData</span>			</li>
-					<li>
-				<span class="var-type"></span>
-				<span class="var-name">$contentType</span>			</li>
-					<li>
-				<span class="var-type"></span>
-				<span class="var-name">$timeout</span>			</li>
-				</ul>
-		
-			
-	</div>
-							<h4>Inherited Methods</h4>
-				<a name='inherited_methods'><!-- --></a>	
-									<!-- =========== Summary =========== -->
-					<p>Inherited From <span class="classname"><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Abstract.html">Apache_Solr_HttpTransport_Abstract</a></span></p>
-					<blockquote>
-													<span class="method-name"><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Abstract.html#methodgetDefaultTimeout">Apache_Solr_HttpTransport_Abstract::getDefaultTimeout()</a></span><br>
-													<span class="method-name"><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Abstract.html#methodsetDefaultTimeout">Apache_Solr_HttpTransport_Abstract::setDefaultTimeout()</a></span><br>
-											</blockquote>
-										
-		</div>
-	</div>
-
-	<a name="sec-consts"></a>
-	<div class="info-box">
-		<div class="info-box-title">Class Constants</div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-										<a href="#sec-var-summary">Constants</a> (<span class="disabled">details</span>)
-						
-			
-										| 
-									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-							
-					</div>
-		<div class="info-box-body">
-			<a name="constSVN_ID" id="SVN_ID"><!-- --></A>
-<div class="oddrow">
-
-	<div class="const-header">
-		<img src="../../media/images/Variable.png" />
-		<span class="const-title">
-			<span class="const-name">SVN_ID</span>
-			 = <span class="const-default"> '$Id:$'</span>
-			(line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportCurl.php.html#a55">55</a></span>)
-		</span>
-	</div>
-
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">SVN ID meta data for this class</p>
-	
-	
-</div>
-<a name="constSVN_REVISION" id="SVN_REVISION"><!-- --></A>
-<div class="evenrow">
-
-	<div class="const-header">
-		<img src="../../media/images/Variable.png" />
-		<span class="const-title">
-			<span class="const-name">SVN_REVISION</span>
-			 = <span class="const-default"> '$Revision:$'</span>
-			(line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportCurl.php.html#a50">50</a></span>)
-		</span>
-	</div>
-
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">SVN Revision meta data for this class</p>
-	
-	
-</div>
-						
-		</div>
-	</div>
-
-	<p class="notes" id="credit">
-		Documentation generated on Wed, 04 May 2011 11:01:12 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
-	</p>
-	</div></body>
-</html>

+ 0 - 279
SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_HttpTransport_CurlNoReuse.html

@@ -1,279 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-  <html xmlns="http://www.w3.org/1999/xhtml">
-		<head>
-			<!-- template designed by Marco Von Ballmoos -->
-			<title>Docs For Class Apache_Solr_HttpTransport_CurlNoReuse</title>
-			<link rel="stylesheet" href="../../media/stylesheet.css" />
-			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-		</head>
-		<body>
-			<div class="page-body">			
-<h2 class="class-name">Class Apache_Solr_HttpTransport_CurlNoReuse</h2>
-
-<a name="sec-description"></a>
-<div class="info-box">
-	<div class="info-box-title">Description</div>
-	<div class="nav-bar">
-					<span class="disabled">Description</span> |
-															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-						
-											<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
-						
-			</div>
-	<div class="info-box-body">
-        		<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">An alternative Curl HTTP transport that opens and closes a curl session for  every request. This isn't the recommended way to use curl, but some version of  PHP have memory issues.</p>
-		<p class="notes">
-			Located in <a class="field" href="_HttpTransport---CurlNoReuse.php.html">/HttpTransport/CurlNoReuse.php</a> (line <span class="field"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportCurlNoReuse.php.html#a47">47</a></span>)
-		</p>
-		
-				
-		<pre><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Abstract.html">Apache_Solr_HttpTransport_Abstract</a>
-   |
-   --Apache_Solr_HttpTransport_CurlNoReuse</pre>
-	
-			</div>
-</div>
-
-
-	<a name="sec-const-summary"></a>
-	<div class="info-box">
-		<div class="info-box-title">Class Constant Summary</span></div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-						<span class="disabled">Constants</span> (<a href="#sec-consts">details</a>)
-										| 
-									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-							
-					</div>
-		<div class="info-box-body">
-			<div class="const-summary">
-								<div class="const-title">
-					<img src="../../media/images/Constant.png" alt=" " />
-					<a href="#SVN_ID" title="details" class="const-name">SVN_ID</a> = 					<span class="var-type"> '$Id:$'</span>
-
-				</div>
-								<div class="const-title">
-					<img src="../../media/images/Constant.png" alt=" " />
-					<a href="#SVN_REVISION" title="details" class="const-name">SVN_REVISION</a> = 					<span class="var-type"> '$Revision:$'</span>
-
-				</div>
-							</div>
-		</div>
-	</div>
-
-
-	<a name="sec-method-summary"></a>
-	<div class="info-box">
-		<div class="info-box-title">Method Summary</span></div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-															<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
-							
-									<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
-		</div>
-		<div class="info-box-body">			
-			<div class="method-summary">
-																																						
-				<div class="method-definition">
-											<span class="method-result">void</span>
-										<a href="#performGetRequest" title="details" class="method-name">performGetRequest</a>
-											(<span class="var-type"></span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">false</span>])
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result">void</span>
-										<a href="#performHeadRequest" title="details" class="method-name">performHeadRequest</a>
-											(<span class="var-type"></span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">false</span>])
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result">void</span>
-										<a href="#performPostRequest" title="details" class="method-name">performPostRequest</a>
-											(<span class="var-type"></span>&nbsp;<span class="var-name">$url</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$postData</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$contentType</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">false</span>])
-									</div>
-											</div>
-		</div>
-	</div>		
-
-	
-	<a name="sec-methods"></a>
-	<div class="info-box">
-		<div class="info-box-title">Methods</div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-																		<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
-							
-										<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
-						
-		</div>
-		<div class="info-box-body">
-			<A NAME='method_detail'></A>
-<a name="methodperformGetRequest" id="performGetRequest"><!-- --></a>
-<div class="evenrow">
-	
-	<div class="method-header">
-		<span class="method-title">performGetRequest</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportCurlNoReuse.php.html#a59">59</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">void</span>
-		<span class="method-name">
-			performGetRequest
-		</span>
-					(<span class="var-type"></span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">false</span>])
-			</div>
-	
-			<ul class="parameters">
-					<li>
-				<span class="var-type"></span>
-				<span class="var-name">$url</span>			</li>
-					<li>
-				<span class="var-type"></span>
-				<span class="var-name">$timeout</span>			</li>
-				</ul>
-		
-			
-	</div>
-<a name="methodperformHeadRequest" id="performHeadRequest"><!-- --></a>
-<div class="oddrow">
-	
-	<div class="method-header">
-		<span class="method-title">performHeadRequest</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportCurlNoReuse.php.html#a101">101</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">void</span>
-		<span class="method-name">
-			performHeadRequest
-		</span>
-					(<span class="var-type"></span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">false</span>])
-			</div>
-	
-			<ul class="parameters">
-					<li>
-				<span class="var-type"></span>
-				<span class="var-name">$url</span>			</li>
-					<li>
-				<span class="var-type"></span>
-				<span class="var-name">$timeout</span>			</li>
-				</ul>
-		
-			
-	</div>
-<a name="methodperformPostRequest" id="performPostRequest"><!-- --></a>
-<div class="evenrow">
-	
-	<div class="method-header">
-		<span class="method-title">performPostRequest</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportCurlNoReuse.php.html#a146">146</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">void</span>
-		<span class="method-name">
-			performPostRequest
-		</span>
-					(<span class="var-type"></span>&nbsp;<span class="var-name">$url</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$postData</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$contentType</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">false</span>])
-			</div>
-	
-			<ul class="parameters">
-					<li>
-				<span class="var-type"></span>
-				<span class="var-name">$url</span>			</li>
-					<li>
-				<span class="var-type"></span>
-				<span class="var-name">$postData</span>			</li>
-					<li>
-				<span class="var-type"></span>
-				<span class="var-name">$contentType</span>			</li>
-					<li>
-				<span class="var-type"></span>
-				<span class="var-name">$timeout</span>			</li>
-				</ul>
-		
-			
-	</div>
-							<h4>Inherited Methods</h4>
-				<a name='inherited_methods'><!-- --></a>	
-									<!-- =========== Summary =========== -->
-					<p>Inherited From <span class="classname"><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Abstract.html">Apache_Solr_HttpTransport_Abstract</a></span></p>
-					<blockquote>
-													<span class="method-name"><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Abstract.html#methodgetDefaultTimeout">Apache_Solr_HttpTransport_Abstract::getDefaultTimeout()</a></span><br>
-													<span class="method-name"><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Abstract.html#methodsetDefaultTimeout">Apache_Solr_HttpTransport_Abstract::setDefaultTimeout()</a></span><br>
-											</blockquote>
-										
-		</div>
-	</div>
-
-	<a name="sec-consts"></a>
-	<div class="info-box">
-		<div class="info-box-title">Class Constants</div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-										<a href="#sec-var-summary">Constants</a> (<span class="disabled">details</span>)
-						
-			
-										| 
-									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-							
-					</div>
-		<div class="info-box-body">
-			<a name="constSVN_ID" id="SVN_ID"><!-- --></A>
-<div class="oddrow">
-
-	<div class="const-header">
-		<img src="../../media/images/Variable.png" />
-		<span class="const-title">
-			<span class="const-name">SVN_ID</span>
-			 = <span class="const-default"> '$Id:$'</span>
-			(line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportCurlNoReuse.php.html#a57">57</a></span>)
-		</span>
-	</div>
-
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">SVN ID meta data for this class</p>
-	
-	
-</div>
-<a name="constSVN_REVISION" id="SVN_REVISION"><!-- --></A>
-<div class="evenrow">
-
-	<div class="const-header">
-		<img src="../../media/images/Variable.png" />
-		<span class="const-title">
-			<span class="const-name">SVN_REVISION</span>
-			 = <span class="const-default"> '$Revision:$'</span>
-			(line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportCurlNoReuse.php.html#a52">52</a></span>)
-		</span>
-	</div>
-
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">SVN Revision meta data for this class</p>
-	
-	
-</div>
-						
-		</div>
-	</div>
-
-	<p class="notes" id="credit">
-		Documentation generated on Wed, 04 May 2011 11:01:13 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
-	</p>
-	</div></body>
-</html>

+ 0 - 309
SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_HttpTransport_FileGetContents.html

@@ -1,309 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-  <html xmlns="http://www.w3.org/1999/xhtml">
-		<head>
-			<!-- template designed by Marco Von Ballmoos -->
-			<title>Docs For Class Apache_Solr_HttpTransport_FileGetContents</title>
-			<link rel="stylesheet" href="../../media/stylesheet.css" />
-			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-		</head>
-		<body>
-			<div class="page-body">			
-<h2 class="class-name">Class Apache_Solr_HttpTransport_FileGetContents</h2>
-
-<a name="sec-description"></a>
-<div class="info-box">
-	<div class="info-box-title">Description</div>
-	<div class="nav-bar">
-					<span class="disabled">Description</span> |
-															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-						
-											<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
-						
-			</div>
-	<div class="info-box-body">
-        		<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">HTTP Transport implemenation that uses the builtin http URL wrappers and file_get_contents</p>
-		<p class="notes">
-			Located in <a class="field" href="_HttpTransport---FileGetContents.php.html">/HttpTransport/FileGetContents.php</a> (line <span class="field"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportFileGetContents.php.html#a45">45</a></span>)
-		</p>
-		
-				
-		<pre><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Abstract.html">Apache_Solr_HttpTransport_Abstract</a>
-   |
-   --Apache_Solr_HttpTransport_FileGetContents</pre>
-	
-			</div>
-</div>
-
-
-	<a name="sec-const-summary"></a>
-	<div class="info-box">
-		<div class="info-box-title">Class Constant Summary</span></div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-						<span class="disabled">Constants</span> (<a href="#sec-consts">details</a>)
-										| 
-									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-							
-					</div>
-		<div class="info-box-body">
-			<div class="const-summary">
-								<div class="const-title">
-					<img src="../../media/images/Constant.png" alt=" " />
-					<a href="#SVN_ID" title="details" class="const-name">SVN_ID</a> = 					<span class="var-type"> '$Id:  $'</span>
-
-				</div>
-								<div class="const-title">
-					<img src="../../media/images/Constant.png" alt=" " />
-					<a href="#SVN_REVISION" title="details" class="const-name">SVN_REVISION</a> = 					<span class="var-type"> '$Revision:  $'</span>
-
-				</div>
-							</div>
-		</div>
-	</div>
-
-
-	<a name="sec-method-summary"></a>
-	<div class="info-box">
-		<div class="info-box-title">Method Summary</span></div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-															<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
-							
-									<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
-		</div>
-		<div class="info-box-body">			
-			<div class="method-summary">
-																																														
-				<div class="method-definition">
-											<span class="method-result">Apache_Solr_HttpTransport_FileGetContents</span>
-										<a href="#__construct" title="details" class="method-name">__construct</a>
-										()
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result">void</span>
-										<a href="#performGetRequest" title="details" class="method-name">performGetRequest</a>
-											(<span class="var-type"></span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">false</span>])
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result">void</span>
-										<a href="#performHeadRequest" title="details" class="method-name">performHeadRequest</a>
-											(<span class="var-type"></span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">false</span>])
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result">void</span>
-										<a href="#performPostRequest" title="details" class="method-name">performPostRequest</a>
-											(<span class="var-type"></span>&nbsp;<span class="var-name">$url</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$rawPost</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$contentType</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">false</span>])
-									</div>
-											</div>
-		</div>
-	</div>		
-
-	
-	<a name="sec-methods"></a>
-	<div class="info-box">
-		<div class="info-box-title">Methods</div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-																		<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
-							
-										<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
-						
-		</div>
-		<div class="info-box-body">
-			<A NAME='method_detail'></A>
-<a name="method__construct" id="__construct"><!-- --></a>
-<div class="evenrow">
-	
-	<div class="method-header">
-		<span class="method-title">Constructor __construct</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportFileGetContents.php.html#a67">67</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Initializes our reuseable get and post stream contexts</p>
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">Apache_Solr_HttpTransport_FileGetContents</span>
-		<span class="method-name">
-			__construct
-		</span>
-				()
-			</div>
-	
-		
-			
-	</div>
-<a name="methodperformGetRequest" id="performGetRequest"><!-- --></a>
-<div class="oddrow">
-	
-	<div class="method-header">
-		<span class="method-title">performGetRequest</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportFileGetContents.php.html#a74">74</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">void</span>
-		<span class="method-name">
-			performGetRequest
-		</span>
-					(<span class="var-type"></span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">false</span>])
-			</div>
-	
-			<ul class="parameters">
-					<li>
-				<span class="var-type"></span>
-				<span class="var-name">$url</span>			</li>
-					<li>
-				<span class="var-type"></span>
-				<span class="var-name">$timeout</span>			</li>
-				</ul>
-		
-			
-	</div>
-<a name="methodperformHeadRequest" id="performHeadRequest"><!-- --></a>
-<div class="evenrow">
-	
-	<div class="method-header">
-		<span class="method-title">performHeadRequest</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportFileGetContents.php.html#a100">100</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">void</span>
-		<span class="method-name">
-			performHeadRequest
-		</span>
-					(<span class="var-type"></span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">false</span>])
-			</div>
-	
-			<ul class="parameters">
-					<li>
-				<span class="var-type"></span>
-				<span class="var-name">$url</span>			</li>
-					<li>
-				<span class="var-type"></span>
-				<span class="var-name">$timeout</span>			</li>
-				</ul>
-		
-			
-	</div>
-<a name="methodperformPostRequest" id="performPostRequest"><!-- --></a>
-<div class="oddrow">
-	
-	<div class="method-header">
-		<span class="method-title">performPostRequest</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportFileGetContents.php.html#a132">132</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">void</span>
-		<span class="method-name">
-			performPostRequest
-		</span>
-					(<span class="var-type"></span>&nbsp;<span class="var-name">$url</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$rawPost</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$contentType</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">false</span>])
-			</div>
-	
-			<ul class="parameters">
-					<li>
-				<span class="var-type"></span>
-				<span class="var-name">$url</span>			</li>
-					<li>
-				<span class="var-type"></span>
-				<span class="var-name">$rawPost</span>			</li>
-					<li>
-				<span class="var-type"></span>
-				<span class="var-name">$contentType</span>			</li>
-					<li>
-				<span class="var-type"></span>
-				<span class="var-name">$timeout</span>			</li>
-				</ul>
-		
-			
-	</div>
-							<h4>Inherited Methods</h4>
-				<a name='inherited_methods'><!-- --></a>	
-									<!-- =========== Summary =========== -->
-					<p>Inherited From <span class="classname"><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Abstract.html">Apache_Solr_HttpTransport_Abstract</a></span></p>
-					<blockquote>
-													<span class="method-name"><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Abstract.html#methodgetDefaultTimeout">Apache_Solr_HttpTransport_Abstract::getDefaultTimeout()</a></span><br>
-													<span class="method-name"><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Abstract.html#methodsetDefaultTimeout">Apache_Solr_HttpTransport_Abstract::setDefaultTimeout()</a></span><br>
-											</blockquote>
-										
-		</div>
-	</div>
-
-	<a name="sec-consts"></a>
-	<div class="info-box">
-		<div class="info-box-title">Class Constants</div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-										<a href="#sec-var-summary">Constants</a> (<span class="disabled">details</span>)
-						
-			
-										| 
-									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-							
-					</div>
-		<div class="info-box-body">
-			<a name="constSVN_ID" id="SVN_ID"><!-- --></A>
-<div class="evenrow">
-
-	<div class="const-header">
-		<img src="../../media/images/Variable.png" />
-		<span class="const-title">
-			<span class="const-name">SVN_ID</span>
-			 = <span class="const-default"> '$Id:  $'</span>
-			(line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportFileGetContents.php.html#a55">55</a></span>)
-		</span>
-	</div>
-
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">SVN ID meta data for this class</p>
-	
-	
-</div>
-<a name="constSVN_REVISION" id="SVN_REVISION"><!-- --></A>
-<div class="oddrow">
-
-	<div class="const-header">
-		<img src="../../media/images/Variable.png" />
-		<span class="const-title">
-			<span class="const-name">SVN_REVISION</span>
-			 = <span class="const-default"> '$Revision:  $'</span>
-			(line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportFileGetContents.php.html#a50">50</a></span>)
-		</span>
-	</div>
-
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">SVN Revision meta data for this class</p>
-	
-	
-</div>
-						
-		</div>
-	</div>
-
-	<p class="notes" id="credit">
-		Documentation generated on Wed, 04 May 2011 11:01:14 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
-	</p>
-	</div></body>
-</html>

+ 0 - 260
SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_HttpTransport_Interface.html

@@ -1,260 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-  <html xmlns="http://www.w3.org/1999/xhtml">
-		<head>
-			<!-- template designed by Marco Von Ballmoos -->
-			<title>Docs For Class Apache_Solr_HttpTransport_Interface</title>
-			<link rel="stylesheet" href="../../media/stylesheet.css" />
-			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-		</head>
-		<body>
-			<div class="page-body">			
-<h2 class="class-name">Interface Apache_Solr_HttpTransport_Interface</h2>
-
-<a name="sec-description"></a>
-<div class="info-box">
-	<div class="info-box-title">Description</div>
-	<div class="nav-bar">
-					<span class="disabled">Description</span> |
-															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-						
-					</div>
-	<div class="info-box-body">
-        		<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Interface that all Transport (HTTP Requester) implementations must implement. These</p>
-<p class="description"><p>Implementations can then be plugged into the Service instance in order to user their  the desired method for making HTTP requests</p></p>
-		<p class="notes">
-			Located in <a class="field" href="_HttpTransport---Interface.php.html">/HttpTransport/Interface.php</a> (line <span class="field"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportInterface.php.html#a47">47</a></span>)
-		</p>
-		
-				
-		<pre></pre>
-	
-			</div>
-</div>
-
-
-
-
-	<a name="sec-method-summary"></a>
-	<div class="info-box">
-		<div class="info-box-title">Method Summary</span></div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
-		</div>
-		<div class="info-box-body">			
-			<div class="method-summary">
-																																																						
-				<div class="method-definition">
-											<span class="method-result">float</span>
-										<a href="#getDefaultTimeout" title="details" class="method-name">getDefaultTimeout</a>
-										()
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result"><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Response.html">Apache_Solr_HttpTransport_Response</a></span>
-										<a href="#performGetRequest" title="details" class="method-name">performGetRequest</a>
-											(<span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type">float</span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">false</span>])
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result"><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Response.html">Apache_Solr_HttpTransport_Response</a></span>
-										<a href="#performHeadRequest" title="details" class="method-name">performHeadRequest</a>
-											(<span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type">float</span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">false</span>])
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result"><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Response.html">Apache_Solr_HttpTransport_Response</a></span>
-										<a href="#performPostRequest" title="details" class="method-name">performPostRequest</a>
-											(<span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$rawPost</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$contentType</span>, [<span class="var-type">float</span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">false</span>])
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result">void</span>
-										<a href="#setDefaultTimeout" title="details" class="method-name">setDefaultTimeout</a>
-											(<span class="var-type">float</span>&nbsp;<span class="var-name">$timeout</span>)
-									</div>
-											</div>
-		</div>
-	</div>		
-
-	
-	<a name="sec-methods"></a>
-	<div class="info-box">
-		<div class="info-box-title">Methods</div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
-						
-		</div>
-		<div class="info-box-body">
-			<A NAME='method_detail'></A>
-<a name="methodgetDefaultTimeout" id="getDefaultTimeout"><!-- --></a>
-<div class="oddrow">
-	
-	<div class="method-header">
-		<span class="method-title">getDefaultTimeout</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportInterface.php.html#a54">54</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Get the current default timeout for all HTTP requests</p>
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">float</span>
-		<span class="method-name">
-			getDefaultTimeout
-		</span>
-				()
-			</div>
-	
-		
-			
-	</div>
-<a name="methodperformGetRequest" id="performGetRequest"><!-- --></a>
-<div class="evenrow">
-	
-	<div class="method-header">
-		<span class="method-title">performGetRequest</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportInterface.php.html#a71">71</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Perform a GET HTTP operation with an optional timeout and return the response  contents, use getLastResponseHeaders to retrieve HTTP headers</p>
-	<ul class="tags">
-				<li><span class="field">return:</span> HTTP response</li>
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result"><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Response.html">Apache_Solr_HttpTransport_Response</a></span>
-		<span class="method-name">
-			performGetRequest
-		</span>
-					(<span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type">float</span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">false</span>])
-			</div>
-	
-			<ul class="parameters">
-					<li>
-				<span class="var-type">string</span>
-				<span class="var-name">$url</span>			</li>
-					<li>
-				<span class="var-type">float</span>
-				<span class="var-name">$timeout</span>			</li>
-				</ul>
-		
-			
-	</div>
-<a name="methodperformHeadRequest" id="performHeadRequest"><!-- --></a>
-<div class="oddrow">
-	
-	<div class="method-header">
-		<span class="method-title">performHeadRequest</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportInterface.php.html#a81">81</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Perform a HEAD HTTP operation with an optional timeout and return the response  headers - NOTE: head requests have no response body</p>
-	<ul class="tags">
-				<li><span class="field">return:</span> HTTP response</li>
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result"><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Response.html">Apache_Solr_HttpTransport_Response</a></span>
-		<span class="method-name">
-			performHeadRequest
-		</span>
-					(<span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type">float</span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">false</span>])
-			</div>
-	
-			<ul class="parameters">
-					<li>
-				<span class="var-type">string</span>
-				<span class="var-name">$url</span>			</li>
-					<li>
-				<span class="var-type">float</span>
-				<span class="var-name">$timeout</span>			</li>
-				</ul>
-		
-			
-	</div>
-<a name="methodperformPostRequest" id="performPostRequest"><!-- --></a>
-<div class="evenrow">
-	
-	<div class="method-header">
-		<span class="method-title">performPostRequest</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportInterface.php.html#a93">93</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Perform a POST HTTP operation with an optional timeout and return the response  contents, use getLastResponseHeaders to retrieve HTTP headers</p>
-	<ul class="tags">
-				<li><span class="field">return:</span> HTTP response</li>
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result"><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Response.html">Apache_Solr_HttpTransport_Response</a></span>
-		<span class="method-name">
-			performPostRequest
-		</span>
-					(<span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$rawPost</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$contentType</span>, [<span class="var-type">float</span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">false</span>])
-			</div>
-	
-			<ul class="parameters">
-					<li>
-				<span class="var-type">string</span>
-				<span class="var-name">$url</span>			</li>
-					<li>
-				<span class="var-type">string</span>
-				<span class="var-name">$rawPost</span>			</li>
-					<li>
-				<span class="var-type">string</span>
-				<span class="var-name">$contentType</span>			</li>
-					<li>
-				<span class="var-type">float</span>
-				<span class="var-name">$timeout</span>			</li>
-				</ul>
-		
-			
-	</div>
-<a name="methodsetDefaultTimeout" id="setDefaultTimeout"><!-- --></a>
-<div class="oddrow">
-	
-	<div class="method-header">
-		<span class="method-title">setDefaultTimeout</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportInterface.php.html#a61">61</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Set the current default timeout for all HTTP requests</p>
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">void</span>
-		<span class="method-name">
-			setDefaultTimeout
-		</span>
-					(<span class="var-type">float</span>&nbsp;<span class="var-name">$timeout</span>)
-			</div>
-	
-			<ul class="parameters">
-					<li>
-				<span class="var-type">float</span>
-				<span class="var-name">$timeout</span>			</li>
-				</ul>
-		
-			
-	</div>
-						
-		</div>
-	</div>
-
-
-	<p class="notes" id="credit">
-		Documentation generated on Wed, 04 May 2011 11:01:15 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
-	</p>
-	</div></body>
-</html>

+ 0 - 298
SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_HttpTransport_Response.html

@@ -1,298 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-  <html xmlns="http://www.w3.org/1999/xhtml">
-		<head>
-			<!-- template designed by Marco Von Ballmoos -->
-			<title>Docs For Class Apache_Solr_HttpTransport_Response</title>
-			<link rel="stylesheet" href="../../media/stylesheet.css" />
-			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-		</head>
-		<body>
-			<div class="page-body">			
-<h2 class="class-name">Class Apache_Solr_HttpTransport_Response</h2>
-
-<a name="sec-description"></a>
-<div class="info-box">
-	<div class="info-box-title">Description</div>
-	<div class="nav-bar">
-					<span class="disabled">Description</span> |
-															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-						
-					</div>
-	<div class="info-box-body">
-        		<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Represents the required pieces of an HTTP response provided by HTTP transport</p>
-<p class="description"><p>implementations and then consumed by the Apache_Solr_Response class which provides  decoding</p></p>
-		<p class="notes">
-			Located in <a class="field" href="_HttpTransport---Response.php.html">/HttpTransport/Response.php</a> (line <span class="field"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportResponse.php.html#a44">44</a></span>)
-		</p>
-		
-				
-		<pre></pre>
-	
-			</div>
-</div>
-
-
-
-
-	<a name="sec-method-summary"></a>
-	<div class="info-box">
-		<div class="info-box-title">Method Summary</span></div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
-		</div>
-		<div class="info-box-body">			
-			<div class="method-summary">
-																										
-				<div class="method-definition">
-					static 						<span class="method-result">string</span>
-										<a href="#getDefaultStatusMessage" title="details" class="method-name">getDefaultStatusMessage</a>
-											(<span class="var-type"></span>&nbsp;<span class="var-name">$statusCode</span>)
-									</div>
-																																																		
-				<div class="method-definition">
-											<span class="method-result">Apache_Solr_HttpTransport_Response</span>
-										<a href="#__construct" title="details" class="method-name">__construct</a>
-											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$statusCode</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$contentType</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$responseBody</span>)
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result">string</span>
-										<a href="#getBody" title="details" class="method-name">getBody</a>
-										()
-									</div>
-																						
-				<div class="method-definition">
-											<span class="method-result">string</span>
-										<a href="#getEncoding" title="details" class="method-name">getEncoding</a>
-										()
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result">string</span>
-										<a href="#getMimeType" title="details" class="method-name">getMimeType</a>
-										()
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result">integer</span>
-										<a href="#getStatusCode" title="details" class="method-name">getStatusCode</a>
-										()
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result">string</span>
-										<a href="#getStatusMessage" title="details" class="method-name">getStatusMessage</a>
-										()
-									</div>
-											</div>
-		</div>
-	</div>		
-
-	
-	<a name="sec-methods"></a>
-	<div class="info-box">
-		<div class="info-box-title">Methods</div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
-						
-		</div>
-		<div class="info-box-body">
-			<A NAME='method_detail'></A>
-<a name="methodgetDefaultStatusMessage" id="getDefaultStatusMessage"><!-- --></a>
-<div class="evenrow">
-	
-	<div class="method-header">
-		<span class="method-title">static getDefaultStatusMessage</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportResponse.php.html#a112">112</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Get the HTTP status message based on status code</p>
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		static <span class="method-result">string</span>
-		<span class="method-name">
-			getDefaultStatusMessage
-		</span>
-					(<span class="var-type"></span>&nbsp;<span class="var-name">$statusCode</span>)
-			</div>
-	
-			<ul class="parameters">
-					<li>
-				<span class="var-type"></span>
-				<span class="var-name">$statusCode</span>			</li>
-				</ul>
-		
-			
-	</div>
-<a name="method__construct" id="__construct"><!-- --></a>
-<div class="oddrow">
-	
-	<div class="method-header">
-		<span class="method-title">Constructor __construct</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportResponse.php.html#a166">166</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Construct a HTTP transport response</p>
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">Apache_Solr_HttpTransport_Response</span>
-		<span class="method-name">
-			__construct
-		</span>
-					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$statusCode</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$contentType</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$responseBody</span>)
-			</div>
-	
-			<ul class="parameters">
-					<li>
-				<span class="var-type">integer</span>
-				<span class="var-name">$statusCode</span><span class="var-description">: The HTTP status code</span>			</li>
-					<li>
-				<span class="var-type">string</span>
-				<span class="var-name">$contentType</span><span class="var-description">: The VALUE of the Content-Type HTTP header</span>			</li>
-					<li>
-				<span class="var-type">string</span>
-				<span class="var-name">$responseBody</span><span class="var-description">: The body of the HTTP response</span>			</li>
-				</ul>
-		
-			
-	</div>
-<a name="methodgetBody" id="getBody"><!-- --></a>
-<div class="evenrow">
-	
-	<div class="method-header">
-		<span class="method-title">getBody</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportResponse.php.html#a251">251</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Get the raw response body</p>
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">string</span>
-		<span class="method-name">
-			getBody
-		</span>
-				()
-			</div>
-	
-		
-			
-	</div>
-<a name="methodgetEncoding" id="getEncoding"><!-- --></a>
-<div class="oddrow">
-	
-	<div class="method-header">
-		<span class="method-title">getEncoding</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportResponse.php.html#a241">241</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Get the charset encoding of the response body.</p>
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">string</span>
-		<span class="method-name">
-			getEncoding
-		</span>
-				()
-			</div>
-	
-		
-			
-	</div>
-<a name="methodgetMimeType" id="getMimeType"><!-- --></a>
-<div class="evenrow">
-	
-	<div class="method-header">
-		<span class="method-title">getMimeType</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportResponse.php.html#a231">231</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Get the mimetype of the response body</p>
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">string</span>
-		<span class="method-name">
-			getMimeType
-		</span>
-				()
-			</div>
-	
-		
-			
-	</div>
-<a name="methodgetStatusCode" id="getStatusCode"><!-- --></a>
-<div class="oddrow">
-	
-	<div class="method-header">
-		<span class="method-title">getStatusCode</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportResponse.php.html#a211">211</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Get the status code of the response</p>
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">integer</span>
-		<span class="method-name">
-			getStatusCode
-		</span>
-				()
-			</div>
-	
-		
-			
-	</div>
-<a name="methodgetStatusMessage" id="getStatusMessage"><!-- --></a>
-<div class="evenrow">
-	
-	<div class="method-header">
-		<span class="method-title">getStatusMessage</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_HttpTransportResponse.php.html#a221">221</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Get the status message of the response</p>
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">string</span>
-		<span class="method-name">
-			getStatusMessage
-		</span>
-				()
-			</div>
-	
-		
-			
-	</div>
-						
-		</div>
-	</div>
-
-
-	<p class="notes" id="credit">
-		Documentation generated on Wed, 04 May 2011 11:01:16 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
-	</p>
-	</div></body>
-</html>

ファイルの差分が大きいため隠しています
+ 0 - 29
SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_InvalidArgumentException.html


ファイルの差分が大きいため隠しています
+ 0 - 29
SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_NoServiceAvailableException.html


ファイルの差分が大きいため隠しています
+ 0 - 29
SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_ParserException.html


+ 0 - 621
SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_Response.html

@@ -1,621 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-  <html xmlns="http://www.w3.org/1999/xhtml">
-		<head>
-			<!-- template designed by Marco Von Ballmoos -->
-			<title>Docs For Class Apache_Solr_Response</title>
-			<link rel="stylesheet" href="../../media/stylesheet.css" />
-			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-		</head>
-		<body>
-			<div class="page-body">			
-<h2 class="class-name">Class Apache_Solr_Response</h2>
-
-<a name="sec-description"></a>
-<div class="info-box">
-	<div class="info-box-title">Description</div>
-	<div class="nav-bar">
-					<span class="disabled">Description</span> |
-													<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
-						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-						
-											<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
-						
-			</div>
-	<div class="info-box-body">
-        		<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Represents a Solr response.  Parses the raw response into a set of stdClass objects  and associative arrays for easy access.</p>
-<p class="description"><p>Currently requires json_decode which is bundled with PHP &gt;= 5.2.0, Alternatively can be  installed with PECL.  Zend Framework also includes a purely PHP solution.</p></p>
-		<p class="notes">
-			Located in <a class="field" href="_Response.php.html">/Response.php</a> (line <span class="field"><a href="../../__filesource/fsource_Apache_Solr_Response.php.html#a48">48</a></span>)
-		</p>
-		
-				
-		<pre></pre>
-	
-			</div>
-</div>
-
-
-	<a name="sec-const-summary"></a>
-	<div class="info-box">
-		<div class="info-box-title">Class Constant Summary</span></div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-						<span class="disabled">Constants</span> (<a href="#sec-consts">details</a>)
-												<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
-				 
-				|
-										| 
-									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-							
-					</div>
-		<div class="info-box-body">
-			<div class="const-summary">
-								<div class="const-title">
-					<img src="../../media/images/Constant.png" alt=" " />
-					<a href="#SVN_ID" title="details" class="const-name">SVN_ID</a> = 					<span class="var-type"> '$Id: Response.php 54 2011-02-04 16:29:18Z donovan.jimenez $'</span>
-
-				</div>
-								<div class="const-title">
-					<img src="../../media/images/Constant.png" alt=" " />
-					<a href="#SVN_REVISION" title="details" class="const-name">SVN_REVISION</a> = 					<span class="var-type"> '$Revision: 54 $'</span>
-
-				</div>
-							</div>
-		</div>
-	</div>
-
-	<a name="sec-var-summary"></a>
-	<div class="info-box">
-		<div class="info-box-title">Variable Summary</span></div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
-							| 
-									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-							
-															<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
-							
-					</div>
-		<div class="info-box-body">
-			<div class="var-summary">
-																																																								<div class="var-title">
-					<span class="var-type">mixed</span>
-					<a href="#$_collapseSingleValueArrays" title="details" class="var-name">$_collapseSingleValueArrays</a>
-				</div>
-																<div class="var-title">
-					<span class="var-type">boolean</span>
-					<a href="#$_createDocuments" title="details" class="var-name">$_createDocuments</a>
-				</div>
-																<div class="var-title">
-					<span class="var-type">boolean</span>
-					<a href="#$_isParsed" title="details" class="var-name">$_isParsed</a>
-				</div>
-																<div class="var-title">
-					<span class="var-type">mixed</span>
-					<a href="#$_parsedData" title="details" class="var-name">$_parsedData</a>
-				</div>
-																<div class="var-title">
-					<span class="var-type"><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Response.html">Apache_Solr_HttpTransport_Response</a></span>
-					<a href="#$_response" title="details" class="var-name">$_response</a>
-				</div>
-											</div>
-		</div>
-	</div>
-
-	<a name="sec-method-summary"></a>
-	<div class="info-box">
-		<div class="info-box-title">Method Summary</span></div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-															<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
-							
-															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
-				 
-				|
-						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
-		</div>
-		<div class="info-box-body">			
-			<div class="method-summary">
-																																																																																						
-				<div class="method-definition">
-											<span class="method-result"><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Response.html">Apache_Solr_HttpTransport_Response</a></span>
-										<a href="#__construct" title="details" class="method-name">__construct</a>
-											(<span class="var-type"><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Response.html">Apache_Solr_HttpTransport_Response</a></span>&nbsp;<span class="var-name">$response</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$createDocuments</span> = <span class="var-default">true</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$collapseSingleValueArrays</span> = <span class="var-default">true</span>])
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result">string</span>
-										<a href="#getEncoding" title="details" class="method-name">getEncoding</a>
-										()
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result">integer</span>
-										<a href="#getHttpStatus" title="details" class="method-name">getHttpStatus</a>
-										()
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result">string</span>
-										<a href="#getHttpStatusMessage" title="details" class="method-name">getHttpStatusMessage</a>
-										()
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result">string</span>
-										<a href="#getRawResponse" title="details" class="method-name">getRawResponse</a>
-										()
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result">string</span>
-										<a href="#getType" title="details" class="method-name">getType</a>
-										()
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result">void</span>
-										<a href="#_parseData" title="details" class="method-name">_parseData</a>
-										()
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result">mixed</span>
-										<a href="#__get" title="details" class="method-name">__get</a>
-											(<span class="var-type">string</span>&nbsp;<span class="var-name">$key</span>)
-									</div>
-														
-				<div class="method-definition">
-											<span class="method-result">boolean</span>
-										<a href="#__isset" title="details" class="method-name">__isset</a>
-											(<span class="var-type">string</span>&nbsp;<span class="var-name">$key</span>)
-									</div>
-											</div>
-		</div>
-	</div>		
-
-	<a name="sec-vars"></a>
-	<div class="info-box">
-		<div class="info-box-title">Variables</div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
-						
-			
-												<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
-							
-										| 
-									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-							
-					</div>
-		<div class="info-box-body">
-			
-<a name="var$_collapseSingleValueArrays" id="$_collapseSingleValueArrays"><!-- --></A>
-<div class="oddrow">
-
-	<div class="var-header">
-		<span class="var-title">
-			<span class="var-type">mixed</span>
-			<span class="var-name">$_collapseSingleValueArrays</span>
-			 = <span class="var-default"> true</span>			(line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_Response.php.html#a88">88</a></span>)
-		</span>
-	</div>
-
-	<!-- ========== Info from phpDoc block ========= -->
-	<ul class="tags">
-				<li><span class="field">access:</span> protected</li>
-			</ul>
-	
-	
-		
-		
-
-</div>
-<a name="var$_createDocuments" id="$_createDocuments"><!-- --></A>
-<div class="evenrow">
-
-	<div class="var-header">
-		<span class="var-title">
-			<span class="var-type">boolean</span>
-			<span class="var-name">$_createDocuments</span>
-			 = <span class="var-default"> true</span>			(line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_Response.php.html#a87">87</a></span>)
-		</span>
-	</div>
-
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Data parsing flags.  Determines what extra processing should be done  after the data is initially converted to a data structure.</p>
-	<ul class="tags">
-				<li><span class="field">access:</span> protected</li>
-			</ul>
-	
-	
-		
-		
-
-</div>
-<a name="var$_isParsed" id="$_isParsed"><!-- --></A>
-<div class="oddrow">
-
-	<div class="var-header">
-		<span class="var-title">
-			<span class="var-type">boolean</span>
-			<span class="var-name">$_isParsed</span>
-			 = <span class="var-default"> false</span>			(line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_Response.php.html#a72">72</a></span>)
-		</span>
-	</div>
-
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Whether the raw response has been parsed</p>
-	<ul class="tags">
-				<li><span class="field">access:</span> protected</li>
-			</ul>
-	
-	
-		
-		
-
-</div>
-<a name="var$_parsedData" id="$_parsedData"><!-- --></A>
-<div class="evenrow">
-
-	<div class="var-header">
-		<span class="var-title">
-			<span class="var-type">mixed</span>
-			<span class="var-name">$_parsedData</span>
-						(line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_Response.php.html#a79">79</a></span>)
-		</span>
-	</div>
-
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Parsed representation of the data</p>
-	<ul class="tags">
-				<li><span class="field">access:</span> protected</li>
-			</ul>
-	
-	
-		
-		
-
-</div>
-<a name="var$_response" id="$_response"><!-- --></A>
-<div class="oddrow">
-
-	<div class="var-header">
-		<span class="var-title">
-			<span class="var-type"><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Response.html">Apache_Solr_HttpTransport_Response</a></span>
-			<span class="var-name">$_response</span>
-						(line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_Response.php.html#a65">65</a></span>)
-		</span>
-	</div>
-
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Holds the raw response used in construction</p>
-	<ul class="tags">
-				<li><span class="field">var:</span> HTTP response</li>
-				<li><span class="field">access:</span> protected</li>
-			</ul>
-	
-	
-		
-		
-
-</div>
-						
-		</div>
-	</div>
-	
-	<a name="sec-methods"></a>
-	<div class="info-box">
-		<div class="info-box-title">Methods</div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
-																			<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
-							
-										<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
-						
-		</div>
-		<div class="info-box-body">
-			<A NAME='method_detail'></A>
-<a name="method__construct" id="__construct"><!-- --></a>
-<div class="evenrow">
-	
-	<div class="method-header">
-		<span class="method-title">Constructor __construct</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_Response.php.html#a97">97</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Constructor. Takes the raw HTTP response body and the exploded HTTP headers</p>
-	<ul class="tags">
-				<li><span class="field">return:</span> HTTP response</li>
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result"><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Response.html">Apache_Solr_HttpTransport_Response</a></span>
-		<span class="method-name">
-			__construct
-		</span>
-					(<span class="var-type"><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Response.html">Apache_Solr_HttpTransport_Response</a></span>&nbsp;<span class="var-name">$response</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$createDocuments</span> = <span class="var-default">true</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$collapseSingleValueArrays</span> = <span class="var-default">true</span>])
-			</div>
-	
-			<ul class="parameters">
-					<li>
-				<span class="var-type">boolean</span>
-				<span class="var-name">$createDocuments</span><span class="var-description">: Whether to convert the documents json_decoded as stdClass instances to Apache_Solr_Document instances</span>			</li>
-					<li>
-				<span class="var-type">boolean</span>
-				<span class="var-name">$collapseSingleValueArrays</span><span class="var-description">: Whether to make multivalued fields appear as single values</span>			</li>
-					<li>
-				<span class="var-type"><a href="../../Apache/Solr/Apache_Solr_HttpTransport_Response.html">Apache_Solr_HttpTransport_Response</a></span>
-				<span class="var-name">$response</span>			</li>
-				</ul>
-		
-			
-	</div>
-<a name="methodgetEncoding" id="getEncoding"><!-- --></a>
-<div class="oddrow">
-	
-	<div class="method-header">
-		<span class="method-title">getEncoding</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_Response.php.html#a139">139</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Get character encoding of this response. Should usually be utf-8, but just in case</p>
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">string</span>
-		<span class="method-name">
-			getEncoding
-		</span>
-				()
-			</div>
-	
-		
-			
-	</div>
-<a name="methodgetHttpStatus" id="getHttpStatus"><!-- --></a>
-<div class="evenrow">
-	
-	<div class="method-header">
-		<span class="method-title">getHttpStatus</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_Response.php.html#a109">109</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Get the HTTP status code</p>
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">integer</span>
-		<span class="method-name">
-			getHttpStatus
-		</span>
-				()
-			</div>
-	
-		
-			
-	</div>
-<a name="methodgetHttpStatusMessage" id="getHttpStatusMessage"><!-- --></a>
-<div class="oddrow">
-	
-	<div class="method-header">
-		<span class="method-title">getHttpStatusMessage</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_Response.php.html#a119">119</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Get the HTTP status message of the response</p>
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">string</span>
-		<span class="method-name">
-			getHttpStatusMessage
-		</span>
-				()
-			</div>
-	
-		
-			
-	</div>
-<a name="methodgetRawResponse" id="getRawResponse"><!-- --></a>
-<div class="evenrow">
-	
-	<div class="method-header">
-		<span class="method-title">getRawResponse</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_Response.php.html#a149">149</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Get the raw response as it was given to this object</p>
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">string</span>
-		<span class="method-name">
-			getRawResponse
-		</span>
-				()
-			</div>
-	
-		
-			
-	</div>
-<a name="methodgetType" id="getType"><!-- --></a>
-<div class="oddrow">
-	
-	<div class="method-header">
-		<span class="method-title">getType</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_Response.php.html#a129">129</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Get content type of this Solr response</p>
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">string</span>
-		<span class="method-name">
-			getType
-		</span>
-				()
-			</div>
-	
-		
-			
-	</div>
-<a name="method_parseData" id="_parseData"><!-- --></a>
-<div class="evenrow">
-	
-	<div class="method-header">
-		<span class="method-title">_parseData</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_Response.php.html#a198">198</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Parse the raw response into the parsed_data array for access</p>
-	<ul class="tags">
-				<li><span class="field">throws:</span> Apache_Solr_ParserException If the data could not be parsed</li>
-				<li><span class="field">access:</span> protected</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">void</span>
-		<span class="method-name">
-			_parseData
-		</span>
-				()
-			</div>
-	
-		
-			
-	</div>
-<a name="method__get" id="__get"><!-- --></a>
-<div class="oddrow">
-	
-	<div class="method-header">
-		<span class="method-title">__get</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_Response.php.html#a160">160</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Magic get to expose the parsed data and to lazily load it</p>
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">mixed</span>
-		<span class="method-name">
-			__get
-		</span>
-					(<span class="var-type">string</span>&nbsp;<span class="var-name">$key</span>)
-			</div>
-	
-			<ul class="parameters">
-					<li>
-				<span class="var-type">string</span>
-				<span class="var-name">$key</span>			</li>
-				</ul>
-		
-			
-	</div>
-<a name="method__isset" id="__isset"><!-- --></a>
-<div class="evenrow">
-	
-	<div class="method-header">
-		<span class="method-title">__isset</span> (line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_Response.php.html#a182">182</a></span>)
-	</div> 
-	
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">Magic function for isset function on parsed data</p>
-	<ul class="tags">
-				<li><span class="field">access:</span> public</li>
-			</ul>
-	
-	<div class="method-signature">
-		<span class="method-result">boolean</span>
-		<span class="method-name">
-			__isset
-		</span>
-					(<span class="var-type">string</span>&nbsp;<span class="var-name">$key</span>)
-			</div>
-	
-			<ul class="parameters">
-					<li>
-				<span class="var-type">string</span>
-				<span class="var-name">$key</span>			</li>
-				</ul>
-		
-			
-	</div>
-						
-		</div>
-	</div>
-
-	<a name="sec-consts"></a>
-	<div class="info-box">
-		<div class="info-box-title">Class Constants</div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-										<a href="#sec-var-summary">Constants</a> (<span class="disabled">details</span>)
-						
-			
-												<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
-														| 
-									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-							
-					</div>
-		<div class="info-box-body">
-			<a name="constSVN_ID" id="SVN_ID"><!-- --></A>
-<div class="oddrow">
-
-	<div class="const-header">
-		<img src="../../media/images/Variable.png" />
-		<span class="const-title">
-			<span class="const-name">SVN_ID</span>
-			 = <span class="const-default"> '$Id: Response.php 54 2011-02-04 16:29:18Z donovan.jimenez $'</span>
-			(line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_Response.php.html#a58">58</a></span>)
-		</span>
-	</div>
-
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">SVN ID meta data for this class</p>
-	
-	
-</div>
-<a name="constSVN_REVISION" id="SVN_REVISION"><!-- --></A>
-<div class="evenrow">
-
-	<div class="const-header">
-		<img src="../../media/images/Variable.png" />
-		<span class="const-title">
-			<span class="const-name">SVN_REVISION</span>
-			 = <span class="const-default"> '$Revision: 54 $'</span>
-			(line <span class="line-number"><a href="../../__filesource/fsource_Apache_Solr_Response.php.html#a53">53</a></span>)
-		</span>
-	</div>
-
-	<!-- ========== Info from phpDoc block ========= -->
-<p class="short-description">SVN Revision meta data for this class</p>
-	
-	
-</div>
-						
-		</div>
-	</div>
-
-	<p class="notes" id="credit">
-		Documentation generated on Wed, 04 May 2011 11:01:15 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
-	</p>
-	</div></body>
-</html>

ファイルの差分が大きいため隠しています
+ 0 - 40
SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_Service.html


ファイルの差分が大きいため隠しています
+ 0 - 178
SolrPhpClient/phpdocs/Apache/Solr/Apache_Solr_Service_Balancer.html


ファイルの差分が大きいため隠しています
+ 0 - 28
SolrPhpClient/phpdocs/Apache/Solr/_Document.php.html


+ 0 - 63
SolrPhpClient/phpdocs/Apache/Solr/_Exception.php.html

@@ -1,63 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-  <html xmlns="http://www.w3.org/1999/xhtml">
-		<head>
-			<!-- template designed by Marco Von Ballmoos -->
-			<title>Docs for page Exception.php</title>
-			<link rel="stylesheet" href="../../media/stylesheet.css" />
-			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-		</head>
-		<body>
-			<div class="page-body">			
-<h2 class="file-name">/Exception.php</h2>
-
-<a name="sec-description"></a>
-<div class="info-box">
-	<div class="info-box-title">Description</div>
-	<div class="nav-bar">
-					<span class="disabled">Description</span> |
-							<a href="#sec-classes">Classes</a>
-														</div>
-	<div class="info-box-body">	
-		<!-- ========== Info from phpDoc block ========= -->
-	<ul class="tags">
-				<li><span class="field">filesource:</span> <a href="../../__filesource/fsource_Apache_Solr_Exception.php.html">Source Code for this file</a></li>
-			</ul>
-		
-			</div>
-</div>
-		
-	<a name="sec-classes"></a>	
-	<div class="info-box">
-		<div class="info-box-title">Classes</div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-			<span class="disabled">Classes</span>
-																	</div>
-		<div class="info-box-body">	
-			<table cellpadding="2" cellspacing="0" class="class-table">
-				<tr>
-					<th class="class-table-header">Class</th>
-					<th class="class-table-header">Description</th>
-				</tr>
-								<tr>
-					<td style="padding-right: 2em; vertical-align: top">
-						<a href="../../Apache/Solr/Apache_Solr_Exception.html">Apache_Solr_Exception</a>
-					</td>
-					<td>
-											Copyright (c) 2007-2011, Servigistics, Inc.
-										</td>
-				</tr>
-							</table>
-		</div>
-	</div>
-
-	
-	
-	
-	
-	<p class="notes" id="credit">
-		Documentation generated on Wed, 04 May 2011 11:01:13 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
-	</p>
-	</div></body>
-</html>

ファイルの差分が大きいため隠しています
+ 0 - 28
SolrPhpClient/phpdocs/Apache/Solr/_HttpTransport---Abstract.php.html


ファイルの差分が大きいため隠しています
+ 0 - 29
SolrPhpClient/phpdocs/Apache/Solr/_HttpTransport---Curl.php.html


ファイルの差分が大きいため隠しています
+ 0 - 29
SolrPhpClient/phpdocs/Apache/Solr/_HttpTransport---CurlNoReuse.php.html


ファイルの差分が大きいため隠しています
+ 0 - 29
SolrPhpClient/phpdocs/Apache/Solr/_HttpTransport---FileGetContents.php.html


ファイルの差分が大きいため隠しています
+ 0 - 29
SolrPhpClient/phpdocs/Apache/Solr/_HttpTransport---Interface.php.html


ファイルの差分が大きいため隠しています
+ 0 - 28
SolrPhpClient/phpdocs/Apache/Solr/_HttpTransport---Response.php.html


+ 0 - 63
SolrPhpClient/phpdocs/Apache/Solr/_HttpTransportException.php.html

@@ -1,63 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-  <html xmlns="http://www.w3.org/1999/xhtml">
-		<head>
-			<!-- template designed by Marco Von Ballmoos -->
-			<title>Docs for page HttpTransportException.php</title>
-			<link rel="stylesheet" href="../../media/stylesheet.css" />
-			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-		</head>
-		<body>
-			<div class="page-body">			
-<h2 class="file-name">/HttpTransportException.php</h2>
-
-<a name="sec-description"></a>
-<div class="info-box">
-	<div class="info-box-title">Description</div>
-	<div class="nav-bar">
-					<span class="disabled">Description</span> |
-							<a href="#sec-classes">Classes</a>
-														</div>
-	<div class="info-box-body">	
-		<!-- ========== Info from phpDoc block ========= -->
-	<ul class="tags">
-				<li><span class="field">filesource:</span> <a href="../../__filesource/fsource_Apache_Solr_HttpTransportException.php.html">Source Code for this file</a></li>
-			</ul>
-		
-			</div>
-</div>
-		
-	<a name="sec-classes"></a>	
-	<div class="info-box">
-		<div class="info-box-title">Classes</div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-			<span class="disabled">Classes</span>
-																	</div>
-		<div class="info-box-body">	
-			<table cellpadding="2" cellspacing="0" class="class-table">
-				<tr>
-					<th class="class-table-header">Class</th>
-					<th class="class-table-header">Description</th>
-				</tr>
-								<tr>
-					<td style="padding-right: 2em; vertical-align: top">
-						<a href="../../Apache/Solr/Apache_Solr_HttpTransportException.html">Apache_Solr_HttpTransportException</a>
-					</td>
-					<td>
-											Copyright (c) 2007-2011, Servigistics, Inc.
-										</td>
-				</tr>
-							</table>
-		</div>
-	</div>
-
-	
-	
-	
-	
-	<p class="notes" id="credit">
-		Documentation generated on Wed, 04 May 2011 11:01:14 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
-	</p>
-	</div></body>
-</html>

+ 0 - 63
SolrPhpClient/phpdocs/Apache/Solr/_InvalidArgumentException.php.html

@@ -1,63 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-  <html xmlns="http://www.w3.org/1999/xhtml">
-		<head>
-			<!-- template designed by Marco Von Ballmoos -->
-			<title>Docs for page InvalidArgumentException.php</title>
-			<link rel="stylesheet" href="../../media/stylesheet.css" />
-			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-		</head>
-		<body>
-			<div class="page-body">			
-<h2 class="file-name">/InvalidArgumentException.php</h2>
-
-<a name="sec-description"></a>
-<div class="info-box">
-	<div class="info-box-title">Description</div>
-	<div class="nav-bar">
-					<span class="disabled">Description</span> |
-							<a href="#sec-classes">Classes</a>
-														</div>
-	<div class="info-box-body">	
-		<!-- ========== Info from phpDoc block ========= -->
-	<ul class="tags">
-				<li><span class="field">filesource:</span> <a href="../../__filesource/fsource_Apache_Solr_InvalidArgumentException.php.html">Source Code for this file</a></li>
-			</ul>
-		
-			</div>
-</div>
-		
-	<a name="sec-classes"></a>	
-	<div class="info-box">
-		<div class="info-box-title">Classes</div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-			<span class="disabled">Classes</span>
-																	</div>
-		<div class="info-box-body">	
-			<table cellpadding="2" cellspacing="0" class="class-table">
-				<tr>
-					<th class="class-table-header">Class</th>
-					<th class="class-table-header">Description</th>
-				</tr>
-								<tr>
-					<td style="padding-right: 2em; vertical-align: top">
-						<a href="../../Apache/Solr/Apache_Solr_InvalidArgumentException.html">Apache_Solr_InvalidArgumentException</a>
-					</td>
-					<td>
-											Copyright (c) 2007-2011, Servigistics, Inc.
-										</td>
-				</tr>
-							</table>
-		</div>
-	</div>
-
-	
-	
-	
-	
-	<p class="notes" id="credit">
-		Documentation generated on Wed, 04 May 2011 11:01:15 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
-	</p>
-	</div></body>
-</html>

+ 0 - 63
SolrPhpClient/phpdocs/Apache/Solr/_NoServiceAvailableException.php.html

@@ -1,63 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-  <html xmlns="http://www.w3.org/1999/xhtml">
-		<head>
-			<!-- template designed by Marco Von Ballmoos -->
-			<title>Docs for page NoServiceAvailableException.php</title>
-			<link rel="stylesheet" href="../../media/stylesheet.css" />
-			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-		</head>
-		<body>
-			<div class="page-body">			
-<h2 class="file-name">/NoServiceAvailableException.php</h2>
-
-<a name="sec-description"></a>
-<div class="info-box">
-	<div class="info-box-title">Description</div>
-	<div class="nav-bar">
-					<span class="disabled">Description</span> |
-							<a href="#sec-classes">Classes</a>
-														</div>
-	<div class="info-box-body">	
-		<!-- ========== Info from phpDoc block ========= -->
-	<ul class="tags">
-				<li><span class="field">filesource:</span> <a href="../../__filesource/fsource_Apache_Solr_NoServiceAvailableException.php.html">Source Code for this file</a></li>
-			</ul>
-		
-			</div>
-</div>
-		
-	<a name="sec-classes"></a>	
-	<div class="info-box">
-		<div class="info-box-title">Classes</div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-			<span class="disabled">Classes</span>
-																	</div>
-		<div class="info-box-body">	
-			<table cellpadding="2" cellspacing="0" class="class-table">
-				<tr>
-					<th class="class-table-header">Class</th>
-					<th class="class-table-header">Description</th>
-				</tr>
-								<tr>
-					<td style="padding-right: 2em; vertical-align: top">
-						<a href="../../Apache/Solr/Apache_Solr_NoServiceAvailableException.html">Apache_Solr_NoServiceAvailableException</a>
-					</td>
-					<td>
-											Copyright (c) 2007-2011, Servigistics, Inc.
-										</td>
-				</tr>
-							</table>
-		</div>
-	</div>
-
-	
-	
-	
-	
-	<p class="notes" id="credit">
-		Documentation generated on Wed, 04 May 2011 11:01:15 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
-	</p>
-	</div></body>
-</html>

+ 0 - 63
SolrPhpClient/phpdocs/Apache/Solr/_ParserException.php.html

@@ -1,63 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-  <html xmlns="http://www.w3.org/1999/xhtml">
-		<head>
-			<!-- template designed by Marco Von Ballmoos -->
-			<title>Docs for page ParserException.php</title>
-			<link rel="stylesheet" href="../../media/stylesheet.css" />
-			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-		</head>
-		<body>
-			<div class="page-body">			
-<h2 class="file-name">/ParserException.php</h2>
-
-<a name="sec-description"></a>
-<div class="info-box">
-	<div class="info-box-title">Description</div>
-	<div class="nav-bar">
-					<span class="disabled">Description</span> |
-							<a href="#sec-classes">Classes</a>
-														</div>
-	<div class="info-box-body">	
-		<!-- ========== Info from phpDoc block ========= -->
-	<ul class="tags">
-				<li><span class="field">filesource:</span> <a href="../../__filesource/fsource_Apache_Solr_ParserException.php.html">Source Code for this file</a></li>
-			</ul>
-		
-			</div>
-</div>
-		
-	<a name="sec-classes"></a>	
-	<div class="info-box">
-		<div class="info-box-title">Classes</div>
-		<div class="nav-bar">
-			<a href="#sec-description">Description</a> |
-			<span class="disabled">Classes</span>
-																	</div>
-		<div class="info-box-body">	
-			<table cellpadding="2" cellspacing="0" class="class-table">
-				<tr>
-					<th class="class-table-header">Class</th>
-					<th class="class-table-header">Description</th>
-				</tr>
-								<tr>
-					<td style="padding-right: 2em; vertical-align: top">
-						<a href="../../Apache/Solr/Apache_Solr_ParserException.html">Apache_Solr_ParserException</a>
-					</td>
-					<td>
-											Copyright (c) 2007-2011, Servigistics, Inc.
-										</td>
-				</tr>
-							</table>
-		</div>
-	</div>
-
-	
-	
-	
-	
-	<p class="notes" id="credit">
-		Documentation generated on Wed, 04 May 2011 11:01:15 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
-	</p>
-	</div></body>
-</html>

ファイルの差分が大きいため隠しています
+ 0 - 29
SolrPhpClient/phpdocs/Apache/Solr/_Response.php.html


ファイルの差分が大きいため隠しています
+ 0 - 29
SolrPhpClient/phpdocs/Apache/Solr/_Service---Balancer.php.html


ファイルの差分が大きいため隠しています
+ 0 - 29
SolrPhpClient/phpdocs/Apache/Solr/_Service.php.html


ファイルの差分が大きいため隠しています
+ 0 - 166
SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_Document.php.html


+ 0 - 70
SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_Exception.php.html

@@ -1,70 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-  <html xmlns="http://www.w3.org/1999/xhtml">
-		<head>
-			<!-- template designed by Marco Von Ballmoos -->
-			<title>File Source for Exception.php</title>
-			<link rel="stylesheet" href="../media/stylesheet.css" />
-			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-		</head>
-		<body>
-						<h1>Source for file Exception.php</h1>
-<p>Documentation is available at <a href="../Apache/Solr/_Exception.php.html">Exception.php</a></p>
-<div class="src-code">
-<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php">&lt;?php</span></div></li>
-<li><div class="src-line"><a name="a2"></a><span class="src-doc">/**</span></div></li>
-<li><div class="src-line"><a name="a3"></a><span class="src-doc">&nbsp;*&nbsp;Copyright&nbsp;(c)&nbsp;2007-2011,&nbsp;Servigistics,&nbsp;Inc.</span></div></li>
-<li><div class="src-line"><a name="a4"></a><span class="src-doc">&nbsp;*&nbsp;All&nbsp;rights&nbsp;reserved.</span></div></li>
-<li><div class="src-line"><a name="a5"></a><span class="src-doc">&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a6"></a><span class="src-doc">&nbsp;*&nbsp;Redistribution&nbsp;and&nbsp;use&nbsp;in&nbsp;source&nbsp;and&nbsp;binary&nbsp;forms,&nbsp;with&nbsp;or&nbsp;without</span></div></li>
-<li><div class="src-line"><a name="a7"></a><span class="src-doc">&nbsp;*&nbsp;modification,&nbsp;are&nbsp;permitted&nbsp;provided&nbsp;that&nbsp;the&nbsp;following&nbsp;conditions&nbsp;are&nbsp;met:</span></div></li>
-<li><div class="src-line"><a name="a8"></a><span class="src-doc">&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a9"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;-&nbsp;Redistributions&nbsp;of&nbsp;source&nbsp;code&nbsp;must&nbsp;retain&nbsp;the&nbsp;above&nbsp;copyright&nbsp;notice,</span></div></li>
-<li><div class="src-line"><a name="a10"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;this&nbsp;list&nbsp;of&nbsp;conditions&nbsp;and&nbsp;the&nbsp;following&nbsp;disclaimer.</span></div></li>
-<li><div class="src-line"><a name="a11"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;-&nbsp;Redistributions&nbsp;in&nbsp;binary&nbsp;form&nbsp;must&nbsp;reproduce&nbsp;the&nbsp;above&nbsp;copyright</span></div></li>
-<li><div class="src-line"><a name="a12"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;notice,&nbsp;this&nbsp;list&nbsp;of&nbsp;conditions&nbsp;and&nbsp;the&nbsp;following&nbsp;disclaimer&nbsp;in&nbsp;the</span></div></li>
-<li><div class="src-line"><a name="a13"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;documentation&nbsp;and/or&nbsp;other&nbsp;materials&nbsp;provided&nbsp;with&nbsp;the&nbsp;distribution.</span></div></li>
-<li><div class="src-line"><a name="a14"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;-&nbsp;Neither&nbsp;the&nbsp;name&nbsp;of&nbsp;Servigistics,&nbsp;Inc.&nbsp;nor&nbsp;the&nbsp;names&nbsp;of</span></div></li>
-<li><div class="src-line"><a name="a15"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;its&nbsp;contributors&nbsp;may&nbsp;be&nbsp;used&nbsp;to&nbsp;endorse&nbsp;or&nbsp;promote&nbsp;products&nbsp;derived&nbsp;from</span></div></li>
-<li><div class="src-line"><a name="a16"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;this&nbsp;software&nbsp;without&nbsp;specific&nbsp;prior&nbsp;written&nbsp;permission.</span></div></li>
-<li><div class="src-line"><a name="a17"></a><span class="src-doc">&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a18"></a><span class="src-doc">&nbsp;*&nbsp;THIS&nbsp;SOFTWARE&nbsp;IS&nbsp;PROVIDED&nbsp;BY&nbsp;THE&nbsp;COPYRIGHT&nbsp;HOLDERS&nbsp;AND&nbsp;CONTRIBUTORS&nbsp;&quot;AS&nbsp;IS&quot;</span></div></li>
-<li><div class="src-line"><a name="a19"></a><span class="src-doc">&nbsp;*&nbsp;AND&nbsp;ANY&nbsp;EXPRESS&nbsp;OR&nbsp;IMPLIED&nbsp;WARRANTIES,&nbsp;INCLUDING,&nbsp;BUT&nbsp;NOT&nbsp;LIMITED&nbsp;TO,&nbsp;THE</span></div></li>
-<li><div class="src-line"><a name="a20"></a><span class="src-doc">&nbsp;*&nbsp;IMPLIED&nbsp;WARRANTIES&nbsp;OF&nbsp;MERCHANTABILITY&nbsp;AND&nbsp;FITNESS&nbsp;FOR&nbsp;A&nbsp;PARTICULAR&nbsp;PURPOSE</span></div></li>
-<li><div class="src-line"><a name="a21"></a><span class="src-doc">&nbsp;*&nbsp;ARE&nbsp;DISCLAIMED.&nbsp;IN&nbsp;NO&nbsp;EVENT&nbsp;SHALL&nbsp;THE&nbsp;COPYRIGHT&nbsp;OWNER&nbsp;OR&nbsp;CONTRIBUTORS&nbsp;BE</span></div></li>
-<li><div class="src-line"><a name="a22"></a><span class="src-doc">&nbsp;*&nbsp;LIABLE&nbsp;FOR&nbsp;ANY&nbsp;DIRECT,&nbsp;INDIRECT,&nbsp;INCIDENTAL,&nbsp;SPECIAL,&nbsp;EXEMPLARY,&nbsp;OR</span></div></li>
-<li><div class="src-line"><a name="a23"></a><span class="src-doc">&nbsp;*&nbsp;CONSEQUENTIAL&nbsp;DAMAGES&nbsp;(INCLUDING,&nbsp;BUT&nbsp;NOT&nbsp;LIMITED&nbsp;TO,&nbsp;PROCUREMENT&nbsp;OF</span></div></li>
-<li><div class="src-line"><a name="a24"></a><span class="src-doc">&nbsp;*&nbsp;SUBSTITUTE&nbsp;GOODS&nbsp;OR&nbsp;SERVICES;&nbsp;LOSS&nbsp;OF&nbsp;USE,&nbsp;DATA,&nbsp;OR&nbsp;PROFITS;&nbsp;OR&nbsp;BUSINESS</span></div></li>
-<li><div class="src-line"><a name="a25"></a><span class="src-doc">&nbsp;*&nbsp;INTERRUPTION)&nbsp;HOWEVER&nbsp;CAUSED&nbsp;AND&nbsp;ON&nbsp;ANY&nbsp;THEORY&nbsp;OF&nbsp;LIABILITY,&nbsp;WHETHER&nbsp;IN</span></div></li>
-<li><div class="src-line"><a name="a26"></a><span class="src-doc">&nbsp;*&nbsp;CONTRACT,&nbsp;STRICT&nbsp;LIABILITY,&nbsp;OR&nbsp;TORT&nbsp;(INCLUDING&nbsp;NEGLIGENCE&nbsp;OR&nbsp;OTHERWISE)</span></div></li>
-<li><div class="src-line"><a name="a27"></a><span class="src-doc">&nbsp;*&nbsp;ARISING&nbsp;IN&nbsp;ANY&nbsp;WAY&nbsp;OUT&nbsp;OF&nbsp;THE&nbsp;USE&nbsp;OF&nbsp;THIS&nbsp;SOFTWARE,&nbsp;EVEN&nbsp;IF&nbsp;ADVISED&nbsp;OF&nbsp;THE</span></div></li>
-<li><div class="src-line"><a name="a28"></a><span class="src-doc">&nbsp;*&nbsp;POSSIBILITY&nbsp;OF&nbsp;SUCH&nbsp;DAMAGE.</span></div></li>
-<li><div class="src-line"><a name="a29"></a><span class="src-doc">&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a30"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@copyright</span><span class="src-doc">&nbsp;Copyright&nbsp;2007-2011&nbsp;Servigistics,&nbsp;Inc.&nbsp;(http://servigistics.com)</span></div></li>
-<li><div class="src-line"><a name="a31"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@license</span><span class="src-doc">&nbsp;http://solr-php-client.googlecode.com/svn/trunk/COPYING&nbsp;New&nbsp;BSD</span></div></li>
-<li><div class="src-line"><a name="a32"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@version</span><span class="src-doc">&nbsp;$Id:&nbsp;Exception.php&nbsp;54&nbsp;2011-02-04&nbsp;16:29:18Z&nbsp;donovan.jimenez&nbsp;$</span></div></li>
-<li><div class="src-line"><a name="a33"></a><span class="src-doc">&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a34"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@package</span><span class="src-doc">&nbsp;Apache</span></div></li>
-<li><div class="src-line"><a name="a35"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@subpackage</span><span class="src-doc">&nbsp;Solr</span></div></li>
-<li><div class="src-line"><a name="a36"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@author</span><span class="src-doc">&nbsp;Donovan&nbsp;Jimenez&nbsp;&lt;djimenez@conduit-it.com&gt;</span></div></li>
-<li><div class="src-line"><a name="a37"></a><span class="src-doc">&nbsp;*/</span></div></li>
-<li><div class="src-line"><a name="a38"></a>&nbsp;</div></li>
-<li><div class="src-line"><a name="a39"></a><span class="src-key">class&nbsp;</span><a href="../Apache/Solr/Apache_Solr_Exception.html">Apache_Solr_Exception</a>&nbsp;<span class="src-key">extends&nbsp;</span><span class="src-id">Exception</span></div></li>
-<li><div class="src-line"><a name="a40"></a><span class="src-sym">{</span></div></li>
-<li><div class="src-line"><a name="a41"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-doc">/**</span></div></li>
-<li><div class="src-line"><a name="a42"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;SVN&nbsp;Revision&nbsp;meta&nbsp;data&nbsp;for&nbsp;this&nbsp;class</span></div></li>
-<li><div class="src-line"><a name="a43"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
-<li><div class="src-line"><a name="a44"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">const&nbsp;</span><a href="../Apache/Solr/Apache_Solr_Exception.html#constSVN_REVISION">SVN_REVISION</a>&nbsp;=&nbsp;<span class="src-str">'$Revision:&nbsp;54&nbsp;$'</span><span class="src-sym">;</span></div></li>
-<li><div class="src-line"><a name="a45"></a>&nbsp;</div></li>
-<li><div class="src-line"><a name="a46"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-doc">/**</span></div></li>
-<li><div class="src-line"><a name="a47"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;SVN&nbsp;ID&nbsp;meta&nbsp;data&nbsp;for&nbsp;this&nbsp;class</span></div></li>
-<li><div class="src-line"><a name="a48"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
-<li><div class="src-line"><a name="a49"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">const&nbsp;</span><a href="../Apache/Solr/Apache_Solr_Exception.html#constSVN_ID">SVN_ID</a>&nbsp;=&nbsp;<span class="src-str">'$Id:&nbsp;Exception.php&nbsp;54&nbsp;2011-02-04&nbsp;16:29:18Z&nbsp;donovan.jimenez&nbsp;$'</span><span class="src-sym">;</span></div></li>
-<li><div class="src-line"><a name="a50"></a><span class="src-sym">}</span></div></li>
-</ol></div>
-</div>
-	<p class="notes" id="credit">
-		Documentation generated on Wed, 04 May 2011 11:01:13 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
-	</p>
-	</body>
-</html>

+ 0 - 109
SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_HttpTransportAbstract.php.html

@@ -1,109 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-  <html xmlns="http://www.w3.org/1999/xhtml">
-		<head>
-			<!-- template designed by Marco Von Ballmoos -->
-			<title>File Source for Abstract.php</title>
-			<link rel="stylesheet" href="../media/stylesheet.css" />
-			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-		</head>
-		<body>
-						<h1>Source for file Abstract.php</h1>
-<p>Documentation is available at <a href="../Apache/Solr/_HttpTransport---Abstract.php.html">Abstract.php</a></p>
-<div class="src-code">
-<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php">&lt;?php</span></div></li>
-<li><div class="src-line"><a name="a2"></a><span class="src-doc">/**</span></div></li>
-<li><div class="src-line"><a name="a3"></a><span class="src-doc">&nbsp;*&nbsp;Copyright&nbsp;(c)&nbsp;2007-2011,&nbsp;Servigistics,&nbsp;Inc.</span></div></li>
-<li><div class="src-line"><a name="a4"></a><span class="src-doc">&nbsp;*&nbsp;All&nbsp;rights&nbsp;reserved.</span></div></li>
-<li><div class="src-line"><a name="a5"></a><span class="src-doc">&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a6"></a><span class="src-doc">&nbsp;*&nbsp;Redistribution&nbsp;and&nbsp;use&nbsp;in&nbsp;source&nbsp;and&nbsp;binary&nbsp;forms,&nbsp;with&nbsp;or&nbsp;without</span></div></li>
-<li><div class="src-line"><a name="a7"></a><span class="src-doc">&nbsp;*&nbsp;modification,&nbsp;are&nbsp;permitted&nbsp;provided&nbsp;that&nbsp;the&nbsp;following&nbsp;conditions&nbsp;are&nbsp;met:</span></div></li>
-<li><div class="src-line"><a name="a8"></a><span class="src-doc">&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a9"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;-&nbsp;Redistributions&nbsp;of&nbsp;source&nbsp;code&nbsp;must&nbsp;retain&nbsp;the&nbsp;above&nbsp;copyright&nbsp;notice,</span></div></li>
-<li><div class="src-line"><a name="a10"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;this&nbsp;list&nbsp;of&nbsp;conditions&nbsp;and&nbsp;the&nbsp;following&nbsp;disclaimer.</span></div></li>
-<li><div class="src-line"><a name="a11"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;-&nbsp;Redistributions&nbsp;in&nbsp;binary&nbsp;form&nbsp;must&nbsp;reproduce&nbsp;the&nbsp;above&nbsp;copyright</span></div></li>
-<li><div class="src-line"><a name="a12"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;notice,&nbsp;this&nbsp;list&nbsp;of&nbsp;conditions&nbsp;and&nbsp;the&nbsp;following&nbsp;disclaimer&nbsp;in&nbsp;the</span></div></li>
-<li><div class="src-line"><a name="a13"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;documentation&nbsp;and/or&nbsp;other&nbsp;materials&nbsp;provided&nbsp;with&nbsp;the&nbsp;distribution.</span></div></li>
-<li><div class="src-line"><a name="a14"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;-&nbsp;Neither&nbsp;the&nbsp;name&nbsp;of&nbsp;Servigistics,&nbsp;Inc.&nbsp;nor&nbsp;the&nbsp;names&nbsp;of</span></div></li>
-<li><div class="src-line"><a name="a15"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;its&nbsp;contributors&nbsp;may&nbsp;be&nbsp;used&nbsp;to&nbsp;endorse&nbsp;or&nbsp;promote&nbsp;products&nbsp;derived&nbsp;from</span></div></li>
-<li><div class="src-line"><a name="a16"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;this&nbsp;software&nbsp;without&nbsp;specific&nbsp;prior&nbsp;written&nbsp;permission.</span></div></li>
-<li><div class="src-line"><a name="a17"></a><span class="src-doc">&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a18"></a><span class="src-doc">&nbsp;*&nbsp;THIS&nbsp;SOFTWARE&nbsp;IS&nbsp;PROVIDED&nbsp;BY&nbsp;THE&nbsp;COPYRIGHT&nbsp;HOLDERS&nbsp;AND&nbsp;CONTRIBUTORS&nbsp;&quot;AS&nbsp;IS&quot;</span></div></li>
-<li><div class="src-line"><a name="a19"></a><span class="src-doc">&nbsp;*&nbsp;AND&nbsp;ANY&nbsp;EXPRESS&nbsp;OR&nbsp;IMPLIED&nbsp;WARRANTIES,&nbsp;INCLUDING,&nbsp;BUT&nbsp;NOT&nbsp;LIMITED&nbsp;TO,&nbsp;THE</span></div></li>
-<li><div class="src-line"><a name="a20"></a><span class="src-doc">&nbsp;*&nbsp;IMPLIED&nbsp;WARRANTIES&nbsp;OF&nbsp;MERCHANTABILITY&nbsp;AND&nbsp;FITNESS&nbsp;FOR&nbsp;A&nbsp;PARTICULAR&nbsp;PURPOSE</span></div></li>
-<li><div class="src-line"><a name="a21"></a><span class="src-doc">&nbsp;*&nbsp;ARE&nbsp;DISCLAIMED.&nbsp;IN&nbsp;NO&nbsp;EVENT&nbsp;SHALL&nbsp;THE&nbsp;COPYRIGHT&nbsp;OWNER&nbsp;OR&nbsp;CONTRIBUTORS&nbsp;BE</span></div></li>
-<li><div class="src-line"><a name="a22"></a><span class="src-doc">&nbsp;*&nbsp;LIABLE&nbsp;FOR&nbsp;ANY&nbsp;DIRECT,&nbsp;INDIRECT,&nbsp;INCIDENTAL,&nbsp;SPECIAL,&nbsp;EXEMPLARY,&nbsp;OR</span></div></li>
-<li><div class="src-line"><a name="a23"></a><span class="src-doc">&nbsp;*&nbsp;CONSEQUENTIAL&nbsp;DAMAGES&nbsp;(INCLUDING,&nbsp;BUT&nbsp;NOT&nbsp;LIMITED&nbsp;TO,&nbsp;PROCUREMENT&nbsp;OF</span></div></li>
-<li><div class="src-line"><a name="a24"></a><span class="src-doc">&nbsp;*&nbsp;SUBSTITUTE&nbsp;GOODS&nbsp;OR&nbsp;SERVICES;&nbsp;LOSS&nbsp;OF&nbsp;USE,&nbsp;DATA,&nbsp;OR&nbsp;PROFITS;&nbsp;OR&nbsp;BUSINESS</span></div></li>
-<li><div class="src-line"><a name="a25"></a><span class="src-doc">&nbsp;*&nbsp;INTERRUPTION)&nbsp;HOWEVER&nbsp;CAUSED&nbsp;AND&nbsp;ON&nbsp;ANY&nbsp;THEORY&nbsp;OF&nbsp;LIABILITY,&nbsp;WHETHER&nbsp;IN</span></div></li>
-<li><div class="src-line"><a name="a26"></a><span class="src-doc">&nbsp;*&nbsp;CONTRACT,&nbsp;STRICT&nbsp;LIABILITY,&nbsp;OR&nbsp;TORT&nbsp;(INCLUDING&nbsp;NEGLIGENCE&nbsp;OR&nbsp;OTHERWISE)</span></div></li>
-<li><div class="src-line"><a name="a27"></a><span class="src-doc">&nbsp;*&nbsp;ARISING&nbsp;IN&nbsp;ANY&nbsp;WAY&nbsp;OUT&nbsp;OF&nbsp;THE&nbsp;USE&nbsp;OF&nbsp;THIS&nbsp;SOFTWARE,&nbsp;EVEN&nbsp;IF&nbsp;ADVISED&nbsp;OF&nbsp;THE</span></div></li>
-<li><div class="src-line"><a name="a28"></a><span class="src-doc">&nbsp;*&nbsp;POSSIBILITY&nbsp;OF&nbsp;SUCH&nbsp;DAMAGE.</span></div></li>
-<li><div class="src-line"><a name="a29"></a><span class="src-doc">&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a30"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@copyright</span><span class="src-doc">&nbsp;Copyright&nbsp;2007-2011&nbsp;Servigistics,&nbsp;Inc.&nbsp;(http://servigistics.com)</span></div></li>
-<li><div class="src-line"><a name="a31"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@license</span><span class="src-doc">&nbsp;http://solr-php-client.googlecode.com/svn/trunk/COPYING&nbsp;New&nbsp;BSD</span></div></li>
-<li><div class="src-line"><a name="a32"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@version</span><span class="src-doc">&nbsp;$Id:&nbsp;$</span></div></li>
-<li><div class="src-line"><a name="a33"></a><span class="src-doc">&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a34"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@package</span><span class="src-doc">&nbsp;Apache</span></div></li>
-<li><div class="src-line"><a name="a35"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@subpackage</span><span class="src-doc">&nbsp;Solr</span></div></li>
-<li><div class="src-line"><a name="a36"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@author</span><span class="src-doc">&nbsp;Timo&nbsp;Schmidt&nbsp;&lt;timo.schmidt@aoemedia.de&gt;,&nbsp;Donovan&nbsp;Jimenez&nbsp;&lt;djimenez@conduit-it.com&gt;</span></div></li>
-<li><div class="src-line"><a name="a37"></a><span class="src-doc">&nbsp;*/</span></div></li>
-<li><div class="src-line"><a name="a38"></a>&nbsp;</div></li>
-<li><div class="src-line"><a name="a39"></a><span class="src-doc">/**</span></div></li>
-<li><div class="src-line"><a name="a40"></a><span class="src-doc">&nbsp;*&nbsp;Convenience&nbsp;class&nbsp;that&nbsp;implements&nbsp;the&nbsp;transport&nbsp;implementation.&nbsp;Can&nbsp;be&nbsp;extended&nbsp;by</span></div></li>
-<li><div class="src-line"><a name="a41"></a><span class="src-doc">&nbsp;*&nbsp;real&nbsp;implementations&nbsp;to&nbsp;do&nbsp;some&nbsp;of&nbsp;the&nbsp;common&nbsp;book&nbsp;keeping</span></div></li>
-<li><div class="src-line"><a name="a42"></a><span class="src-doc">&nbsp;*/</span></div></li>
-<li><div class="src-line"><a name="a43"></a><span class="src-key">abstract&nbsp;</span><span class="src-key">class&nbsp;</span><a href="../Apache/Solr/Apache_Solr_HttpTransport_Abstract.html">Apache_Solr_HttpTransport_Abstract</a>&nbsp;<span class="src-key">implements&nbsp;</span><span class="src-id">Apache_Solr_HttpTransport_Interface</span></div></li>
-<li><div class="src-line"><a name="a44"></a><span class="src-sym">{&nbsp;&nbsp;&nbsp;&nbsp;</span></div></li>
-<li><div class="src-line"><a name="a45"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-doc">/**</span></div></li>
-<li><div class="src-line"><a name="a46"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Our&nbsp;default&nbsp;timeout&nbsp;value&nbsp;for&nbsp;requests&nbsp;that&nbsp;don't&nbsp;specify&nbsp;a&nbsp;timeout</span></div></li>
-<li><div class="src-line"><a name="a47"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a48"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;</span><span class="src-doc-coretag">@var&nbsp;</span><span class="src-doc-type">float&nbsp;</span></div></li>
-<li><div class="src-line"><a name="a49"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
-<li><div class="src-line"><a name="a50"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">private&nbsp;</span><span class="src-var">$_defaultTimeout&nbsp;</span>=&nbsp;<span class="src-id">false</span><span class="src-sym">;</span></div></li>
-<li><div class="src-line"><a name="a51"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
-<li><div class="src-line"><a name="a52"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-doc">/**</span></div></li>
-<li><div class="src-line"><a name="a53"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Get&nbsp;the&nbsp;current&nbsp;default&nbsp;timeout&nbsp;setting&nbsp;(initially&nbsp;the&nbsp;default_socket_timeout&nbsp;ini&nbsp;setting)</span></div></li>
-<li><div class="src-line"><a name="a54"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;in&nbsp;seconds</span></div></li>
-<li><div class="src-line"><a name="a55"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a56"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;</span><span class="src-doc-coretag">@return&nbsp;</span><span class="src-doc-type">float&nbsp;</span></div></li>
-<li><div class="src-line"><a name="a57"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
-<li><div class="src-line"><a name="a58"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">public&nbsp;</span><span class="src-key">function&nbsp;</span><a href="../Apache/Solr/Apache_Solr_HttpTransport_Abstract.html#methodgetDefaultTimeout">getDefaultTimeout</a><span class="src-sym">(</span><span class="src-sym">)</span></div></li>
-<li><div class="src-line"><a name="a59"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
-<li><div class="src-line"><a name="a60"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;lazy&nbsp;load&nbsp;the&nbsp;default&nbsp;timeout&nbsp;from&nbsp;the&nbsp;ini&nbsp;settings</span></div></li>
-<li><div class="src-line"><a name="a61"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><span class="src-var">_defaultTimeout&nbsp;</span>===&nbsp;<span class="src-id">false</span><span class="src-sym">)</span></div></li>
-<li><div class="src-line"><a name="a62"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
-<li><div class="src-line"><a name="a63"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><span class="src-var">_defaultTimeout&nbsp;</span>=&nbsp;(int)&nbsp;<a href="http://www.php.net/ini_get">ini_get</a><span class="src-sym">(</span><span class="src-str">'default_socket_timeout'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
-<li><div class="src-line"><a name="a64"></a>&nbsp;</div></li>
-<li><div class="src-line"><a name="a65"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;double&nbsp;check&nbsp;we&nbsp;didn't&nbsp;get&nbsp;0&nbsp;for&nbsp;a&nbsp;timeout</span></div></li>
-<li><div class="src-line"><a name="a66"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><span class="src-var">_defaultTimeout&nbsp;</span>&lt;=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
-<li><div class="src-line"><a name="a67"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
-<li><div class="src-line"><a name="a68"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><span class="src-var">_defaultTimeout&nbsp;</span>=&nbsp;<span class="src-num">60</span><span class="src-sym">;</span></div></li>
-<li><div class="src-line"><a name="a69"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
-<li><div class="src-line"><a name="a70"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
-<li><div class="src-line"><a name="a71"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
-<li><div class="src-line"><a name="a72"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><span class="src-var">_defaultTimeout</span><span class="src-sym">;</span></div></li>
-<li><div class="src-line"><a name="a73"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
-<li><div class="src-line"><a name="a74"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
-<li><div class="src-line"><a name="a75"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-doc">/**</span></div></li>
-<li><div class="src-line"><a name="a76"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Set&nbsp;the&nbsp;current&nbsp;default&nbsp;timeout&nbsp;for&nbsp;all&nbsp;HTTP&nbsp;requests</span></div></li>
-<li><div class="src-line"><a name="a77"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a78"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;</span><span class="src-doc-coretag">@param&nbsp;</span><span class="src-doc-type">float&nbsp;</span><span class="src-doc-var">$timeout&nbsp;</span></div></li>
-<li><div class="src-line"><a name="a79"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
-<li><div class="src-line"><a name="a80"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">public&nbsp;</span><span class="src-key">function&nbsp;</span><a href="../Apache/Solr/Apache_Solr_HttpTransport_Abstract.html#methodsetDefaultTimeout">setDefaultTimeout</a><span class="src-sym">(</span><span class="src-var">$timeout</span><span class="src-sym">)</span></div></li>
-<li><div class="src-line"><a name="a81"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
-<li><div class="src-line"><a name="a82"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$timeout&nbsp;</span>=&nbsp;(float)&nbsp;<span class="src-var">$timeout</span><span class="src-sym">;</span></div></li>
-<li><div class="src-line"><a name="a83"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
-<li><div class="src-line"><a name="a84"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-var">$timeout&nbsp;</span>&gt;=&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
-<li><div class="src-line"><a name="a85"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
-<li><div class="src-line"><a name="a86"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><span class="src-var">_defaultTimeout&nbsp;</span>=&nbsp;<span class="src-var">$timeout</span><span class="src-sym">;</span></div></li>
-<li><div class="src-line"><a name="a87"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
-<li><div class="src-line"><a name="a88"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}&nbsp;&nbsp;&nbsp;&nbsp;</span></div></li>
-<li><div class="src-line"><a name="a89"></a><span class="src-sym">}</span></div></li>
-</ol></div>
-</div>
-	<p class="notes" id="credit">
-		Documentation generated on Wed, 04 May 2011 11:01:08 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
-	</p>
-	</body>
-</html>

ファイルの差分が大きいため隠しています
+ 0 - 137
SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_HttpTransportCurl.php.html


ファイルの差分が大きいため隠しています
+ 0 - 110
SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_HttpTransportCurlNoReuse.php.html


ファイルの差分が大きいため隠しています
+ 0 - 77
SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_HttpTransportException.php.html


ファイルの差分が大きいため隠しています
+ 0 - 95
SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_HttpTransportFileGetContents.php.html


ファイルの差分が大きいため隠しています
+ 0 - 83
SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_HttpTransportInterface.php.html


ファイルの差分が大きいため隠しています
+ 0 - 178
SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_HttpTransportResponse.php.html


+ 0 - 70
SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_InvalidArgumentException.php.html

@@ -1,70 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-  <html xmlns="http://www.w3.org/1999/xhtml">
-		<head>
-			<!-- template designed by Marco Von Ballmoos -->
-			<title>File Source for InvalidArgumentException.php</title>
-			<link rel="stylesheet" href="../media/stylesheet.css" />
-			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-		</head>
-		<body>
-						<h1>Source for file InvalidArgumentException.php</h1>
-<p>Documentation is available at <a href="../Apache/Solr/_InvalidArgumentException.php.html">InvalidArgumentException.php</a></p>
-<div class="src-code">
-<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php">&lt;?php</span></div></li>
-<li><div class="src-line"><a name="a2"></a><span class="src-doc">/**</span></div></li>
-<li><div class="src-line"><a name="a3"></a><span class="src-doc">&nbsp;*&nbsp;Copyright&nbsp;(c)&nbsp;2007-2011,&nbsp;Servigistics,&nbsp;Inc.</span></div></li>
-<li><div class="src-line"><a name="a4"></a><span class="src-doc">&nbsp;*&nbsp;All&nbsp;rights&nbsp;reserved.</span></div></li>
-<li><div class="src-line"><a name="a5"></a><span class="src-doc">&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a6"></a><span class="src-doc">&nbsp;*&nbsp;Redistribution&nbsp;and&nbsp;use&nbsp;in&nbsp;source&nbsp;and&nbsp;binary&nbsp;forms,&nbsp;with&nbsp;or&nbsp;without</span></div></li>
-<li><div class="src-line"><a name="a7"></a><span class="src-doc">&nbsp;*&nbsp;modification,&nbsp;are&nbsp;permitted&nbsp;provided&nbsp;that&nbsp;the&nbsp;following&nbsp;conditions&nbsp;are&nbsp;met:</span></div></li>
-<li><div class="src-line"><a name="a8"></a><span class="src-doc">&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a9"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;-&nbsp;Redistributions&nbsp;of&nbsp;source&nbsp;code&nbsp;must&nbsp;retain&nbsp;the&nbsp;above&nbsp;copyright&nbsp;notice,</span></div></li>
-<li><div class="src-line"><a name="a10"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;this&nbsp;list&nbsp;of&nbsp;conditions&nbsp;and&nbsp;the&nbsp;following&nbsp;disclaimer.</span></div></li>
-<li><div class="src-line"><a name="a11"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;-&nbsp;Redistributions&nbsp;in&nbsp;binary&nbsp;form&nbsp;must&nbsp;reproduce&nbsp;the&nbsp;above&nbsp;copyright</span></div></li>
-<li><div class="src-line"><a name="a12"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;notice,&nbsp;this&nbsp;list&nbsp;of&nbsp;conditions&nbsp;and&nbsp;the&nbsp;following&nbsp;disclaimer&nbsp;in&nbsp;the</span></div></li>
-<li><div class="src-line"><a name="a13"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;documentation&nbsp;and/or&nbsp;other&nbsp;materials&nbsp;provided&nbsp;with&nbsp;the&nbsp;distribution.</span></div></li>
-<li><div class="src-line"><a name="a14"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;-&nbsp;Neither&nbsp;the&nbsp;name&nbsp;of&nbsp;Servigistics,&nbsp;Inc.&nbsp;nor&nbsp;the&nbsp;names&nbsp;of</span></div></li>
-<li><div class="src-line"><a name="a15"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;its&nbsp;contributors&nbsp;may&nbsp;be&nbsp;used&nbsp;to&nbsp;endorse&nbsp;or&nbsp;promote&nbsp;products&nbsp;derived&nbsp;from</span></div></li>
-<li><div class="src-line"><a name="a16"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;this&nbsp;software&nbsp;without&nbsp;specific&nbsp;prior&nbsp;written&nbsp;permission.</span></div></li>
-<li><div class="src-line"><a name="a17"></a><span class="src-doc">&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a18"></a><span class="src-doc">&nbsp;*&nbsp;THIS&nbsp;SOFTWARE&nbsp;IS&nbsp;PROVIDED&nbsp;BY&nbsp;THE&nbsp;COPYRIGHT&nbsp;HOLDERS&nbsp;AND&nbsp;CONTRIBUTORS&nbsp;&quot;AS&nbsp;IS&quot;</span></div></li>
-<li><div class="src-line"><a name="a19"></a><span class="src-doc">&nbsp;*&nbsp;AND&nbsp;ANY&nbsp;EXPRESS&nbsp;OR&nbsp;IMPLIED&nbsp;WARRANTIES,&nbsp;INCLUDING,&nbsp;BUT&nbsp;NOT&nbsp;LIMITED&nbsp;TO,&nbsp;THE</span></div></li>
-<li><div class="src-line"><a name="a20"></a><span class="src-doc">&nbsp;*&nbsp;IMPLIED&nbsp;WARRANTIES&nbsp;OF&nbsp;MERCHANTABILITY&nbsp;AND&nbsp;FITNESS&nbsp;FOR&nbsp;A&nbsp;PARTICULAR&nbsp;PURPOSE</span></div></li>
-<li><div class="src-line"><a name="a21"></a><span class="src-doc">&nbsp;*&nbsp;ARE&nbsp;DISCLAIMED.&nbsp;IN&nbsp;NO&nbsp;EVENT&nbsp;SHALL&nbsp;THE&nbsp;COPYRIGHT&nbsp;OWNER&nbsp;OR&nbsp;CONTRIBUTORS&nbsp;BE</span></div></li>
-<li><div class="src-line"><a name="a22"></a><span class="src-doc">&nbsp;*&nbsp;LIABLE&nbsp;FOR&nbsp;ANY&nbsp;DIRECT,&nbsp;INDIRECT,&nbsp;INCIDENTAL,&nbsp;SPECIAL,&nbsp;EXEMPLARY,&nbsp;OR</span></div></li>
-<li><div class="src-line"><a name="a23"></a><span class="src-doc">&nbsp;*&nbsp;CONSEQUENTIAL&nbsp;DAMAGES&nbsp;(INCLUDING,&nbsp;BUT&nbsp;NOT&nbsp;LIMITED&nbsp;TO,&nbsp;PROCUREMENT&nbsp;OF</span></div></li>
-<li><div class="src-line"><a name="a24"></a><span class="src-doc">&nbsp;*&nbsp;SUBSTITUTE&nbsp;GOODS&nbsp;OR&nbsp;SERVICES;&nbsp;LOSS&nbsp;OF&nbsp;USE,&nbsp;DATA,&nbsp;OR&nbsp;PROFITS;&nbsp;OR&nbsp;BUSINESS</span></div></li>
-<li><div class="src-line"><a name="a25"></a><span class="src-doc">&nbsp;*&nbsp;INTERRUPTION)&nbsp;HOWEVER&nbsp;CAUSED&nbsp;AND&nbsp;ON&nbsp;ANY&nbsp;THEORY&nbsp;OF&nbsp;LIABILITY,&nbsp;WHETHER&nbsp;IN</span></div></li>
-<li><div class="src-line"><a name="a26"></a><span class="src-doc">&nbsp;*&nbsp;CONTRACT,&nbsp;STRICT&nbsp;LIABILITY,&nbsp;OR&nbsp;TORT&nbsp;(INCLUDING&nbsp;NEGLIGENCE&nbsp;OR&nbsp;OTHERWISE)</span></div></li>
-<li><div class="src-line"><a name="a27"></a><span class="src-doc">&nbsp;*&nbsp;ARISING&nbsp;IN&nbsp;ANY&nbsp;WAY&nbsp;OUT&nbsp;OF&nbsp;THE&nbsp;USE&nbsp;OF&nbsp;THIS&nbsp;SOFTWARE,&nbsp;EVEN&nbsp;IF&nbsp;ADVISED&nbsp;OF&nbsp;THE</span></div></li>
-<li><div class="src-line"><a name="a28"></a><span class="src-doc">&nbsp;*&nbsp;POSSIBILITY&nbsp;OF&nbsp;SUCH&nbsp;DAMAGE.</span></div></li>
-<li><div class="src-line"><a name="a29"></a><span class="src-doc">&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a30"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@copyright</span><span class="src-doc">&nbsp;Copyright&nbsp;2007-2011&nbsp;Servigistics,&nbsp;Inc.&nbsp;(http://servigistics.com)</span></div></li>
-<li><div class="src-line"><a name="a31"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@license</span><span class="src-doc">&nbsp;http://solr-php-client.googlecode.com/svn/trunk/COPYING&nbsp;New&nbsp;BSD</span></div></li>
-<li><div class="src-line"><a name="a32"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@version</span><span class="src-doc">&nbsp;$Id:&nbsp;InvalidArgumentException.php&nbsp;54&nbsp;2011-02-04&nbsp;16:29:18Z&nbsp;donovan.jimenez&nbsp;$</span></div></li>
-<li><div class="src-line"><a name="a33"></a><span class="src-doc">&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a34"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@package</span><span class="src-doc">&nbsp;Apache</span></div></li>
-<li><div class="src-line"><a name="a35"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@subpackage</span><span class="src-doc">&nbsp;Solr</span></div></li>
-<li><div class="src-line"><a name="a36"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@author</span><span class="src-doc">&nbsp;Donovan&nbsp;Jimenez&nbsp;&lt;djimenez@conduit-it.com&gt;</span></div></li>
-<li><div class="src-line"><a name="a37"></a><span class="src-doc">&nbsp;*/</span></div></li>
-<li><div class="src-line"><a name="a38"></a>&nbsp;</div></li>
-<li><div class="src-line"><a name="a39"></a><span class="src-key">class&nbsp;</span><a href="../Apache/Solr/Apache_Solr_InvalidArgumentException.html">Apache_Solr_InvalidArgumentException</a>&nbsp;<span class="src-key">extends&nbsp;</span><a href="../Apache/Solr/Apache_Solr_Exception.html">Apache_Solr_Exception</a></div></li>
-<li><div class="src-line"><a name="a40"></a><span class="src-sym">{</span></div></li>
-<li><div class="src-line"><a name="a41"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-doc">/**</span></div></li>
-<li><div class="src-line"><a name="a42"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;SVN&nbsp;Revision&nbsp;meta&nbsp;data&nbsp;for&nbsp;this&nbsp;class</span></div></li>
-<li><div class="src-line"><a name="a43"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
-<li><div class="src-line"><a name="a44"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">const&nbsp;</span><a href="../Apache/Solr/Apache_Solr_InvalidArgumentException.html#constSVN_REVISION">SVN_REVISION</a>&nbsp;=&nbsp;<span class="src-str">'$Revision:&nbsp;54&nbsp;$'</span><span class="src-sym">;</span></div></li>
-<li><div class="src-line"><a name="a45"></a>&nbsp;</div></li>
-<li><div class="src-line"><a name="a46"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-doc">/**</span></div></li>
-<li><div class="src-line"><a name="a47"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;SVN&nbsp;ID&nbsp;meta&nbsp;data&nbsp;for&nbsp;this&nbsp;class</span></div></li>
-<li><div class="src-line"><a name="a48"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
-<li><div class="src-line"><a name="a49"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">const&nbsp;</span><a href="../Apache/Solr/Apache_Solr_InvalidArgumentException.html#constSVN_ID">SVN_ID</a>&nbsp;=&nbsp;<span class="src-str">'$Id:&nbsp;InvalidArgumentException.php&nbsp;54&nbsp;2011-02-04&nbsp;16:29:18Z&nbsp;donovan.jimenez&nbsp;$'</span><span class="src-sym">;</span></div></li>
-<li><div class="src-line"><a name="a50"></a><span class="src-sym">}</span></div></li>
-</ol></div>
-</div>
-	<p class="notes" id="credit">
-		Documentation generated on Wed, 04 May 2011 11:01:15 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
-	</p>
-	</body>
-</html>

+ 0 - 70
SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_NoServiceAvailableException.php.html

@@ -1,70 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-  <html xmlns="http://www.w3.org/1999/xhtml">
-		<head>
-			<!-- template designed by Marco Von Ballmoos -->
-			<title>File Source for NoServiceAvailableException.php</title>
-			<link rel="stylesheet" href="../media/stylesheet.css" />
-			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-		</head>
-		<body>
-						<h1>Source for file NoServiceAvailableException.php</h1>
-<p>Documentation is available at <a href="../Apache/Solr/_NoServiceAvailableException.php.html">NoServiceAvailableException.php</a></p>
-<div class="src-code">
-<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php">&lt;?php</span></div></li>
-<li><div class="src-line"><a name="a2"></a><span class="src-doc">/**</span></div></li>
-<li><div class="src-line"><a name="a3"></a><span class="src-doc">&nbsp;*&nbsp;Copyright&nbsp;(c)&nbsp;2007-2011,&nbsp;Servigistics,&nbsp;Inc.</span></div></li>
-<li><div class="src-line"><a name="a4"></a><span class="src-doc">&nbsp;*&nbsp;All&nbsp;rights&nbsp;reserved.</span></div></li>
-<li><div class="src-line"><a name="a5"></a><span class="src-doc">&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a6"></a><span class="src-doc">&nbsp;*&nbsp;Redistribution&nbsp;and&nbsp;use&nbsp;in&nbsp;source&nbsp;and&nbsp;binary&nbsp;forms,&nbsp;with&nbsp;or&nbsp;without</span></div></li>
-<li><div class="src-line"><a name="a7"></a><span class="src-doc">&nbsp;*&nbsp;modification,&nbsp;are&nbsp;permitted&nbsp;provided&nbsp;that&nbsp;the&nbsp;following&nbsp;conditions&nbsp;are&nbsp;met:</span></div></li>
-<li><div class="src-line"><a name="a8"></a><span class="src-doc">&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a9"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;-&nbsp;Redistributions&nbsp;of&nbsp;source&nbsp;code&nbsp;must&nbsp;retain&nbsp;the&nbsp;above&nbsp;copyright&nbsp;notice,</span></div></li>
-<li><div class="src-line"><a name="a10"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;this&nbsp;list&nbsp;of&nbsp;conditions&nbsp;and&nbsp;the&nbsp;following&nbsp;disclaimer.</span></div></li>
-<li><div class="src-line"><a name="a11"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;-&nbsp;Redistributions&nbsp;in&nbsp;binary&nbsp;form&nbsp;must&nbsp;reproduce&nbsp;the&nbsp;above&nbsp;copyright</span></div></li>
-<li><div class="src-line"><a name="a12"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;notice,&nbsp;this&nbsp;list&nbsp;of&nbsp;conditions&nbsp;and&nbsp;the&nbsp;following&nbsp;disclaimer&nbsp;in&nbsp;the</span></div></li>
-<li><div class="src-line"><a name="a13"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;documentation&nbsp;and/or&nbsp;other&nbsp;materials&nbsp;provided&nbsp;with&nbsp;the&nbsp;distribution.</span></div></li>
-<li><div class="src-line"><a name="a14"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;-&nbsp;Neither&nbsp;the&nbsp;name&nbsp;of&nbsp;Servigistics,&nbsp;Inc.&nbsp;nor&nbsp;the&nbsp;names&nbsp;of</span></div></li>
-<li><div class="src-line"><a name="a15"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;its&nbsp;contributors&nbsp;may&nbsp;be&nbsp;used&nbsp;to&nbsp;endorse&nbsp;or&nbsp;promote&nbsp;products&nbsp;derived&nbsp;from</span></div></li>
-<li><div class="src-line"><a name="a16"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;this&nbsp;software&nbsp;without&nbsp;specific&nbsp;prior&nbsp;written&nbsp;permission.</span></div></li>
-<li><div class="src-line"><a name="a17"></a><span class="src-doc">&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a18"></a><span class="src-doc">&nbsp;*&nbsp;THIS&nbsp;SOFTWARE&nbsp;IS&nbsp;PROVIDED&nbsp;BY&nbsp;THE&nbsp;COPYRIGHT&nbsp;HOLDERS&nbsp;AND&nbsp;CONTRIBUTORS&nbsp;&quot;AS&nbsp;IS&quot;</span></div></li>
-<li><div class="src-line"><a name="a19"></a><span class="src-doc">&nbsp;*&nbsp;AND&nbsp;ANY&nbsp;EXPRESS&nbsp;OR&nbsp;IMPLIED&nbsp;WARRANTIES,&nbsp;INCLUDING,&nbsp;BUT&nbsp;NOT&nbsp;LIMITED&nbsp;TO,&nbsp;THE</span></div></li>
-<li><div class="src-line"><a name="a20"></a><span class="src-doc">&nbsp;*&nbsp;IMPLIED&nbsp;WARRANTIES&nbsp;OF&nbsp;MERCHANTABILITY&nbsp;AND&nbsp;FITNESS&nbsp;FOR&nbsp;A&nbsp;PARTICULAR&nbsp;PURPOSE</span></div></li>
-<li><div class="src-line"><a name="a21"></a><span class="src-doc">&nbsp;*&nbsp;ARE&nbsp;DISCLAIMED.&nbsp;IN&nbsp;NO&nbsp;EVENT&nbsp;SHALL&nbsp;THE&nbsp;COPYRIGHT&nbsp;OWNER&nbsp;OR&nbsp;CONTRIBUTORS&nbsp;BE</span></div></li>
-<li><div class="src-line"><a name="a22"></a><span class="src-doc">&nbsp;*&nbsp;LIABLE&nbsp;FOR&nbsp;ANY&nbsp;DIRECT,&nbsp;INDIRECT,&nbsp;INCIDENTAL,&nbsp;SPECIAL,&nbsp;EXEMPLARY,&nbsp;OR</span></div></li>
-<li><div class="src-line"><a name="a23"></a><span class="src-doc">&nbsp;*&nbsp;CONSEQUENTIAL&nbsp;DAMAGES&nbsp;(INCLUDING,&nbsp;BUT&nbsp;NOT&nbsp;LIMITED&nbsp;TO,&nbsp;PROCUREMENT&nbsp;OF</span></div></li>
-<li><div class="src-line"><a name="a24"></a><span class="src-doc">&nbsp;*&nbsp;SUBSTITUTE&nbsp;GOODS&nbsp;OR&nbsp;SERVICES;&nbsp;LOSS&nbsp;OF&nbsp;USE,&nbsp;DATA,&nbsp;OR&nbsp;PROFITS;&nbsp;OR&nbsp;BUSINESS</span></div></li>
-<li><div class="src-line"><a name="a25"></a><span class="src-doc">&nbsp;*&nbsp;INTERRUPTION)&nbsp;HOWEVER&nbsp;CAUSED&nbsp;AND&nbsp;ON&nbsp;ANY&nbsp;THEORY&nbsp;OF&nbsp;LIABILITY,&nbsp;WHETHER&nbsp;IN</span></div></li>
-<li><div class="src-line"><a name="a26"></a><span class="src-doc">&nbsp;*&nbsp;CONTRACT,&nbsp;STRICT&nbsp;LIABILITY,&nbsp;OR&nbsp;TORT&nbsp;(INCLUDING&nbsp;NEGLIGENCE&nbsp;OR&nbsp;OTHERWISE)</span></div></li>
-<li><div class="src-line"><a name="a27"></a><span class="src-doc">&nbsp;*&nbsp;ARISING&nbsp;IN&nbsp;ANY&nbsp;WAY&nbsp;OUT&nbsp;OF&nbsp;THE&nbsp;USE&nbsp;OF&nbsp;THIS&nbsp;SOFTWARE,&nbsp;EVEN&nbsp;IF&nbsp;ADVISED&nbsp;OF&nbsp;THE</span></div></li>
-<li><div class="src-line"><a name="a28"></a><span class="src-doc">&nbsp;*&nbsp;POSSIBILITY&nbsp;OF&nbsp;SUCH&nbsp;DAMAGE.</span></div></li>
-<li><div class="src-line"><a name="a29"></a><span class="src-doc">&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a30"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@copyright</span><span class="src-doc">&nbsp;Copyright&nbsp;2007-2011&nbsp;Servigistics,&nbsp;Inc.&nbsp;(http://servigistics.com)</span></div></li>
-<li><div class="src-line"><a name="a31"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@license</span><span class="src-doc">&nbsp;http://solr-php-client.googlecode.com/svn/trunk/COPYING&nbsp;New&nbsp;BSD</span></div></li>
-<li><div class="src-line"><a name="a32"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@version</span><span class="src-doc">&nbsp;$Id:&nbsp;NoServiceAvailableException.php&nbsp;54&nbsp;2011-02-04&nbsp;16:29:18Z&nbsp;donovan.jimenez&nbsp;$</span></div></li>
-<li><div class="src-line"><a name="a33"></a><span class="src-doc">&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a34"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@package</span><span class="src-doc">&nbsp;Apache</span></div></li>
-<li><div class="src-line"><a name="a35"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@subpackage</span><span class="src-doc">&nbsp;Solr</span></div></li>
-<li><div class="src-line"><a name="a36"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@author</span><span class="src-doc">&nbsp;Donovan&nbsp;Jimenez&nbsp;&lt;djimenez@conduit-it.com&gt;</span></div></li>
-<li><div class="src-line"><a name="a37"></a><span class="src-doc">&nbsp;*/</span></div></li>
-<li><div class="src-line"><a name="a38"></a>&nbsp;</div></li>
-<li><div class="src-line"><a name="a39"></a><span class="src-key">class&nbsp;</span><a href="../Apache/Solr/Apache_Solr_NoServiceAvailableException.html">Apache_Solr_NoServiceAvailableException</a>&nbsp;<span class="src-key">extends&nbsp;</span><a href="../Apache/Solr/Apache_Solr_Exception.html">Apache_Solr_Exception</a></div></li>
-<li><div class="src-line"><a name="a40"></a><span class="src-sym">{</span></div></li>
-<li><div class="src-line"><a name="a41"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-doc">/**</span></div></li>
-<li><div class="src-line"><a name="a42"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;SVN&nbsp;Revision&nbsp;meta&nbsp;data&nbsp;for&nbsp;this&nbsp;class</span></div></li>
-<li><div class="src-line"><a name="a43"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
-<li><div class="src-line"><a name="a44"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">const&nbsp;</span><a href="../Apache/Solr/Apache_Solr_NoServiceAvailableException.html#constSVN_REVISION">SVN_REVISION</a>&nbsp;=&nbsp;<span class="src-str">'$Revision:&nbsp;54&nbsp;$'</span><span class="src-sym">;</span></div></li>
-<li><div class="src-line"><a name="a45"></a>&nbsp;</div></li>
-<li><div class="src-line"><a name="a46"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-doc">/**</span></div></li>
-<li><div class="src-line"><a name="a47"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;SVN&nbsp;ID&nbsp;meta&nbsp;data&nbsp;for&nbsp;this&nbsp;class</span></div></li>
-<li><div class="src-line"><a name="a48"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
-<li><div class="src-line"><a name="a49"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">const&nbsp;</span><a href="../Apache/Solr/Apache_Solr_NoServiceAvailableException.html#constSVN_ID">SVN_ID</a>&nbsp;=&nbsp;<span class="src-str">'$Id:&nbsp;NoServiceAvailableException.php&nbsp;54&nbsp;2011-02-04&nbsp;16:29:18Z&nbsp;donovan.jimenez&nbsp;$'</span><span class="src-sym">;</span></div></li>
-<li><div class="src-line"><a name="a50"></a><span class="src-sym">}</span></div></li>
-</ol></div>
-</div>
-	<p class="notes" id="credit">
-		Documentation generated on Wed, 04 May 2011 11:01:15 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
-	</p>
-	</body>
-</html>

+ 0 - 70
SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_ParserException.php.html

@@ -1,70 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-  <html xmlns="http://www.w3.org/1999/xhtml">
-		<head>
-			<!-- template designed by Marco Von Ballmoos -->
-			<title>File Source for ParserException.php</title>
-			<link rel="stylesheet" href="../media/stylesheet.css" />
-			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-		</head>
-		<body>
-						<h1>Source for file ParserException.php</h1>
-<p>Documentation is available at <a href="../Apache/Solr/_ParserException.php.html">ParserException.php</a></p>
-<div class="src-code">
-<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php">&lt;?php</span></div></li>
-<li><div class="src-line"><a name="a2"></a><span class="src-doc">/**</span></div></li>
-<li><div class="src-line"><a name="a3"></a><span class="src-doc">&nbsp;*&nbsp;Copyright&nbsp;(c)&nbsp;2007-2011,&nbsp;Servigistics,&nbsp;Inc.</span></div></li>
-<li><div class="src-line"><a name="a4"></a><span class="src-doc">&nbsp;*&nbsp;All&nbsp;rights&nbsp;reserved.</span></div></li>
-<li><div class="src-line"><a name="a5"></a><span class="src-doc">&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a6"></a><span class="src-doc">&nbsp;*&nbsp;Redistribution&nbsp;and&nbsp;use&nbsp;in&nbsp;source&nbsp;and&nbsp;binary&nbsp;forms,&nbsp;with&nbsp;or&nbsp;without</span></div></li>
-<li><div class="src-line"><a name="a7"></a><span class="src-doc">&nbsp;*&nbsp;modification,&nbsp;are&nbsp;permitted&nbsp;provided&nbsp;that&nbsp;the&nbsp;following&nbsp;conditions&nbsp;are&nbsp;met:</span></div></li>
-<li><div class="src-line"><a name="a8"></a><span class="src-doc">&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a9"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;-&nbsp;Redistributions&nbsp;of&nbsp;source&nbsp;code&nbsp;must&nbsp;retain&nbsp;the&nbsp;above&nbsp;copyright&nbsp;notice,</span></div></li>
-<li><div class="src-line"><a name="a10"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;this&nbsp;list&nbsp;of&nbsp;conditions&nbsp;and&nbsp;the&nbsp;following&nbsp;disclaimer.</span></div></li>
-<li><div class="src-line"><a name="a11"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;-&nbsp;Redistributions&nbsp;in&nbsp;binary&nbsp;form&nbsp;must&nbsp;reproduce&nbsp;the&nbsp;above&nbsp;copyright</span></div></li>
-<li><div class="src-line"><a name="a12"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;notice,&nbsp;this&nbsp;list&nbsp;of&nbsp;conditions&nbsp;and&nbsp;the&nbsp;following&nbsp;disclaimer&nbsp;in&nbsp;the</span></div></li>
-<li><div class="src-line"><a name="a13"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;documentation&nbsp;and/or&nbsp;other&nbsp;materials&nbsp;provided&nbsp;with&nbsp;the&nbsp;distribution.</span></div></li>
-<li><div class="src-line"><a name="a14"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;-&nbsp;Neither&nbsp;the&nbsp;name&nbsp;of&nbsp;Servigistics,&nbsp;Inc.&nbsp;nor&nbsp;the&nbsp;names&nbsp;of</span></div></li>
-<li><div class="src-line"><a name="a15"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;its&nbsp;contributors&nbsp;may&nbsp;be&nbsp;used&nbsp;to&nbsp;endorse&nbsp;or&nbsp;promote&nbsp;products&nbsp;derived&nbsp;from</span></div></li>
-<li><div class="src-line"><a name="a16"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;this&nbsp;software&nbsp;without&nbsp;specific&nbsp;prior&nbsp;written&nbsp;permission.</span></div></li>
-<li><div class="src-line"><a name="a17"></a><span class="src-doc">&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a18"></a><span class="src-doc">&nbsp;*&nbsp;THIS&nbsp;SOFTWARE&nbsp;IS&nbsp;PROVIDED&nbsp;BY&nbsp;THE&nbsp;COPYRIGHT&nbsp;HOLDERS&nbsp;AND&nbsp;CONTRIBUTORS&nbsp;&quot;AS&nbsp;IS&quot;</span></div></li>
-<li><div class="src-line"><a name="a19"></a><span class="src-doc">&nbsp;*&nbsp;AND&nbsp;ANY&nbsp;EXPRESS&nbsp;OR&nbsp;IMPLIED&nbsp;WARRANTIES,&nbsp;INCLUDING,&nbsp;BUT&nbsp;NOT&nbsp;LIMITED&nbsp;TO,&nbsp;THE</span></div></li>
-<li><div class="src-line"><a name="a20"></a><span class="src-doc">&nbsp;*&nbsp;IMPLIED&nbsp;WARRANTIES&nbsp;OF&nbsp;MERCHANTABILITY&nbsp;AND&nbsp;FITNESS&nbsp;FOR&nbsp;A&nbsp;PARTICULAR&nbsp;PURPOSE</span></div></li>
-<li><div class="src-line"><a name="a21"></a><span class="src-doc">&nbsp;*&nbsp;ARE&nbsp;DISCLAIMED.&nbsp;IN&nbsp;NO&nbsp;EVENT&nbsp;SHALL&nbsp;THE&nbsp;COPYRIGHT&nbsp;OWNER&nbsp;OR&nbsp;CONTRIBUTORS&nbsp;BE</span></div></li>
-<li><div class="src-line"><a name="a22"></a><span class="src-doc">&nbsp;*&nbsp;LIABLE&nbsp;FOR&nbsp;ANY&nbsp;DIRECT,&nbsp;INDIRECT,&nbsp;INCIDENTAL,&nbsp;SPECIAL,&nbsp;EXEMPLARY,&nbsp;OR</span></div></li>
-<li><div class="src-line"><a name="a23"></a><span class="src-doc">&nbsp;*&nbsp;CONSEQUENTIAL&nbsp;DAMAGES&nbsp;(INCLUDING,&nbsp;BUT&nbsp;NOT&nbsp;LIMITED&nbsp;TO,&nbsp;PROCUREMENT&nbsp;OF</span></div></li>
-<li><div class="src-line"><a name="a24"></a><span class="src-doc">&nbsp;*&nbsp;SUBSTITUTE&nbsp;GOODS&nbsp;OR&nbsp;SERVICES;&nbsp;LOSS&nbsp;OF&nbsp;USE,&nbsp;DATA,&nbsp;OR&nbsp;PROFITS;&nbsp;OR&nbsp;BUSINESS</span></div></li>
-<li><div class="src-line"><a name="a25"></a><span class="src-doc">&nbsp;*&nbsp;INTERRUPTION)&nbsp;HOWEVER&nbsp;CAUSED&nbsp;AND&nbsp;ON&nbsp;ANY&nbsp;THEORY&nbsp;OF&nbsp;LIABILITY,&nbsp;WHETHER&nbsp;IN</span></div></li>
-<li><div class="src-line"><a name="a26"></a><span class="src-doc">&nbsp;*&nbsp;CONTRACT,&nbsp;STRICT&nbsp;LIABILITY,&nbsp;OR&nbsp;TORT&nbsp;(INCLUDING&nbsp;NEGLIGENCE&nbsp;OR&nbsp;OTHERWISE)</span></div></li>
-<li><div class="src-line"><a name="a27"></a><span class="src-doc">&nbsp;*&nbsp;ARISING&nbsp;IN&nbsp;ANY&nbsp;WAY&nbsp;OUT&nbsp;OF&nbsp;THE&nbsp;USE&nbsp;OF&nbsp;THIS&nbsp;SOFTWARE,&nbsp;EVEN&nbsp;IF&nbsp;ADVISED&nbsp;OF&nbsp;THE</span></div></li>
-<li><div class="src-line"><a name="a28"></a><span class="src-doc">&nbsp;*&nbsp;POSSIBILITY&nbsp;OF&nbsp;SUCH&nbsp;DAMAGE.</span></div></li>
-<li><div class="src-line"><a name="a29"></a><span class="src-doc">&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a30"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@copyright</span><span class="src-doc">&nbsp;Copyright&nbsp;2007-2011&nbsp;Servigistics,&nbsp;Inc.&nbsp;(http://servigistics.com)</span></div></li>
-<li><div class="src-line"><a name="a31"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@license</span><span class="src-doc">&nbsp;http://solr-php-client.googlecode.com/svn/trunk/COPYING&nbsp;New&nbsp;BSD</span></div></li>
-<li><div class="src-line"><a name="a32"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@version</span><span class="src-doc">&nbsp;$Id:&nbsp;ParserException.php&nbsp;54&nbsp;2011-02-04&nbsp;16:29:18Z&nbsp;donovan.jimenez&nbsp;$</span></div></li>
-<li><div class="src-line"><a name="a33"></a><span class="src-doc">&nbsp;*</span></div></li>
-<li><div class="src-line"><a name="a34"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@package</span><span class="src-doc">&nbsp;Apache</span></div></li>
-<li><div class="src-line"><a name="a35"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@subpackage</span><span class="src-doc">&nbsp;Solr</span></div></li>
-<li><div class="src-line"><a name="a36"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@author</span><span class="src-doc">&nbsp;Donovan&nbsp;Jimenez&nbsp;&lt;djimenez@conduit-it.com&gt;</span></div></li>
-<li><div class="src-line"><a name="a37"></a><span class="src-doc">&nbsp;*/</span></div></li>
-<li><div class="src-line"><a name="a38"></a>&nbsp;</div></li>
-<li><div class="src-line"><a name="a39"></a><span class="src-key">class&nbsp;</span><a href="../Apache/Solr/Apache_Solr_ParserException.html">Apache_Solr_ParserException</a>&nbsp;<span class="src-key">extends&nbsp;</span><a href="../Apache/Solr/Apache_Solr_Exception.html">Apache_Solr_Exception</a></div></li>
-<li><div class="src-line"><a name="a40"></a><span class="src-sym">{</span></div></li>
-<li><div class="src-line"><a name="a41"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-doc">/**</span></div></li>
-<li><div class="src-line"><a name="a42"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;SVN&nbsp;Revision&nbsp;meta&nbsp;data&nbsp;for&nbsp;this&nbsp;class</span></div></li>
-<li><div class="src-line"><a name="a43"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
-<li><div class="src-line"><a name="a44"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">const&nbsp;</span><a href="../Apache/Solr/Apache_Solr_ParserException.html#constSVN_REVISION">SVN_REVISION</a>&nbsp;=&nbsp;<span class="src-str">'$Revision:&nbsp;54&nbsp;$'</span><span class="src-sym">;</span></div></li>
-<li><div class="src-line"><a name="a45"></a>&nbsp;</div></li>
-<li><div class="src-line"><a name="a46"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-doc">/**</span></div></li>
-<li><div class="src-line"><a name="a47"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;SVN&nbsp;ID&nbsp;meta&nbsp;data&nbsp;for&nbsp;this&nbsp;class</span></div></li>
-<li><div class="src-line"><a name="a48"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
-<li><div class="src-line"><a name="a49"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">const&nbsp;</span><a href="../Apache/Solr/Apache_Solr_ParserException.html#constSVN_ID">SVN_ID</a>&nbsp;=&nbsp;<span class="src-str">'$Id:&nbsp;ParserException.php&nbsp;54&nbsp;2011-02-04&nbsp;16:29:18Z&nbsp;donovan.jimenez&nbsp;$'</span><span class="src-sym">;</span></div></li>
-<li><div class="src-line"><a name="a50"></a><span class="src-sym">}</span></div></li>
-</ol></div>
-</div>
-	<p class="notes" id="credit">
-		Documentation generated on Wed, 04 May 2011 11:01:15 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
-	</p>
-	</body>
-</html>

ファイルの差分が大きいため隠しています
+ 0 - 109
SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_Response.php.html


ファイルの差分が大きいため隠しています
+ 0 - 173
SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_Service.php.html


ファイルの差分が大きいため隠しています
+ 0 - 133
SolrPhpClient/phpdocs/__filesource/fsource_Apache_Solr_ServiceBalancer.php.html


+ 0 - 13
SolrPhpClient/phpdocs/blank.html

@@ -1,13 +0,0 @@
-<html>
-<head>
-	<title>Generated Documentation</title>
-			<link rel="stylesheet" href="media/stylesheet.css" />
-			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-</head>
-<body>
-<div align="center"><h1>Generated Documentation</h1></div>
-<b>Welcome to Apache!</b><br />
-<br />
-This documentation was generated by <a href="http://www.phpdoc.org">phpDocumentor v1.4.3</a><br />
-</body>
-</html>

+ 0 - 56
SolrPhpClient/phpdocs/classtrees_Apache.html

@@ -1,56 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-  <html xmlns="http://www.w3.org/1999/xhtml">
-		<head>
-			<!-- template designed by Marco Von Ballmoos -->
-			<title></title>
-			<link rel="stylesheet" href="media/stylesheet.css" />
-			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-		</head>
-		<body>
-						
-<!-- Start of Class Data -->
-<H2>
-	
-</H2>
-<h2>Root interface Apache_Solr_HttpTransport_Interface</h2>
-<ul>
-<li><a href="Apache/Solr/Apache_Solr_HttpTransport_Interface.html">Apache_Solr_HttpTransport_Interface</a></li></ul>
-
-<h2>Root class Apache_Solr_Document</h2>
-<ul>
-<li><a href="Apache/Solr/Apache_Solr_Document.html">Apache_Solr_Document</a></li></ul>
-
-<h2>Root class Apache_Solr_HttpTransport_Abstract</h2>
-<ul>
-<li><a href="Apache/Solr/Apache_Solr_HttpTransport_Abstract.html">Apache_Solr_HttpTransport_Abstract</a> (implements <a href="Apache/Solr/Apache_Solr_HttpTransport_Interface.html">Apache_Solr_HttpTransport_Interface</a>)<ul>
-<li><a href="Apache/Solr/Apache_Solr_HttpTransport_Curl.html">Apache_Solr_HttpTransport_Curl</a></li><li><a href="Apache/Solr/Apache_Solr_HttpTransport_CurlNoReuse.html">Apache_Solr_HttpTransport_CurlNoReuse</a></li><li><a href="Apache/Solr/Apache_Solr_HttpTransport_FileGetContents.html">Apache_Solr_HttpTransport_FileGetContents</a></li></ul></li>
-</ul>
-
-<h2>Root class Apache_Solr_HttpTransport_Response</h2>
-<ul>
-<li><a href="Apache/Solr/Apache_Solr_HttpTransport_Response.html">Apache_Solr_HttpTransport_Response</a></li></ul>
-
-<h2>Root class Apache_Solr_Response</h2>
-<ul>
-<li><a href="Apache/Solr/Apache_Solr_Response.html">Apache_Solr_Response</a></li></ul>
-
-<h2>Root class Apache_Solr_Service</h2>
-<ul>
-<li><a href="Apache/Solr/Apache_Solr_Service.html">Apache_Solr_Service</a></li></ul>
-
-<h2>Root class Apache_Solr_Service_Balancer</h2>
-<ul>
-<li><a href="Apache/Solr/Apache_Solr_Service_Balancer.html">Apache_Solr_Service_Balancer</a></li></ul>
-
-<h2>Root class Exception</h2>
-<ul>
-<li><a href="Apache/Solr/Apache_Solr_Exception.html">Apache_Solr_Exception</a><ul>
-<li><a href="Apache/Solr/Apache_Solr_HttpTransportException.html">Apache_Solr_HttpTransportException</a></li><li><a href="Apache/Solr/Apache_Solr_InvalidArgumentException.html">Apache_Solr_InvalidArgumentException</a></li><li><a href="Apache/Solr/Apache_Solr_NoServiceAvailableException.html">Apache_Solr_NoServiceAvailableException</a></li><li><a href="Apache/Solr/Apache_Solr_ParserException.html">Apache_Solr_ParserException</a></li></ul></li>
-</ul>
-
-	<p class="notes" id="credit">
-		Documentation generated on Wed, 04 May 2011 11:01:08 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
-	</p>
-	</body>
-</html>

+ 0 - 1726
SolrPhpClient/phpdocs/elementindex.html

@@ -1,1726 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-  <html xmlns="http://www.w3.org/1999/xhtml">
-		<head>
-			<!-- template designed by Marco Von Ballmoos -->
-			<title></title>
-			<link rel="stylesheet" href="media/stylesheet.css" />
-			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-		</head>
-		<body>
-						<a name="top"></a>
-<h2>Full index</h2>
-<h3>Package indexes</h3>
-<ul>
-	<li><a href="elementindex_Apache.html">Apache</a></li>
-</ul>
-<br />
-<div class="index-letter-menu">
-	<a class="index-letter" href="elementindex.html#a">a</a>
-	<a class="index-letter" href="elementindex.html#b">b</a>
-	<a class="index-letter" href="elementindex.html#c">c</a>
-	<a class="index-letter" href="elementindex.html#d">d</a>
-	<a class="index-letter" href="elementindex.html#e">e</a>
-	<a class="index-letter" href="elementindex.html#f">f</a>
-	<a class="index-letter" href="elementindex.html#g">g</a>
-	<a class="index-letter" href="elementindex.html#h">h</a>
-	<a class="index-letter" href="elementindex.html#i">i</a>
-	<a class="index-letter" href="elementindex.html#m">m</a>
-	<a class="index-letter" href="elementindex.html#n">n</a>
-	<a class="index-letter" href="elementindex.html#o">o</a>
-	<a class="index-letter" href="elementindex.html#p">p</a>
-	<a class="index-letter" href="elementindex.html#r">r</a>
-	<a class="index-letter" href="elementindex.html#s">s</a>
-	<a class="index-letter" href="elementindex.html#t">t</a>
-	<a class="index-letter" href="elementindex.html#u">u</a>
-	<a class="index-letter" href="elementindex.html#_">_</a>
-</div>
-
-	<a name="a"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">a</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="method-title">add</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodadd">Apache_Solr_Service::add()</a> in Service.php</div>
-							<div class="index-item-description">Raw Add Method. Takes a raw post body and sends it to the update service.  Post body  should be a complete and well formed &quot;add&quot; xml document.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">add</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodadd">Apache_Solr_Service_Balancer::add()</a> in Balancer.php</div>
-							<div class="index-item-description">Raw Add Method. Takes a raw post body and sends it to the update service.  Post body  should be a complete and well formed &quot;add&quot; xml document.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">addDocument</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodaddDocument">Apache_Solr_Service_Balancer::addDocument()</a> in Balancer.php</div>
-							<div class="index-item-description">Add a Solr Document to the index</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">addDocument</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodaddDocument">Apache_Solr_Service::addDocument()</a> in Service.php</div>
-							<div class="index-item-description">Add a Solr Document to the index</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">addDocuments</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodaddDocuments">Apache_Solr_Service_Balancer::addDocuments()</a> in Balancer.php</div>
-							<div class="index-item-description">Add an array of Solr Documents to the index all at once</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">addDocuments</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodaddDocuments">Apache_Solr_Service::addDocuments()</a> in Service.php</div>
-							<div class="index-item-description">Add an array of Solr Documents to the index all at once</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">addField</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodaddField">Apache_Solr_Document::addField()</a> in Document.php</div>
-							<div class="index-item-description">Add a value to a multi-valued field</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">addReadService</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodaddReadService">Apache_Solr_Service_Balancer::addReadService()</a> in Balancer.php</div>
-							<div class="index-item-description">Adds a service instance or service descriptor (if it is already  not added)</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">addWriteService</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodaddWriteService">Apache_Solr_Service_Balancer::addWriteService()</a> in Balancer.php</div>
-							<div class="index-item-description">Adds a service instance or service descriptor (if it is already  not added)</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_Document
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html">Apache_Solr_Document</a> in Document.php</div>
-							<div class="index-item-description">Holds Key / Value pairs that represent a Solr Document along with any associated boost  values. Field values can be accessed by direct dereferencing such as:</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_Exception
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Exception.html">Apache_Solr_Exception</a> in Exception.php</div>
-							<div class="index-item-description">Copyright (c) 2007-2011, Servigistics, Inc.</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_HttpTransportException
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransportException.html">Apache_Solr_HttpTransportException</a> in HttpTransportException.php</div>
-							<div class="index-item-description">Copyright (c) 2007-2011, Servigistics, Inc.</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_HttpTransport_Abstract
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Abstract.html">Apache_Solr_HttpTransport_Abstract</a> in Abstract.php</div>
-							<div class="index-item-description">Convenience class that implements the transport implementation. Can be extended by</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_HttpTransport_Curl
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Curl.html">Apache_Solr_HttpTransport_Curl</a> in Curl.php</div>
-							<div class="index-item-description">A Curl based HTTP transport. Uses a single curl session for all requests.</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_HttpTransport_CurlNoReuse
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_CurlNoReuse.html">Apache_Solr_HttpTransport_CurlNoReuse</a> in CurlNoReuse.php</div>
-							<div class="index-item-description">An alternative Curl HTTP transport that opens and closes a curl session for  every request. This isn't the recommended way to use curl, but some version of  PHP have memory issues.</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_HttpTransport_FileGetContents
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_FileGetContents.html">Apache_Solr_HttpTransport_FileGetContents</a> in FileGetContents.php</div>
-							<div class="index-item-description">HTTP Transport implemenation that uses the builtin http URL wrappers and file_get_contents</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_HttpTransport_Interface
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Interface.html">Apache_Solr_HttpTransport_Interface</a> in Interface.php</div>
-							<div class="index-item-description">Interface that all Transport (HTTP Requester) implementations must implement. These</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_HttpTransport_Response
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Response.html">Apache_Solr_HttpTransport_Response</a> in Response.php</div>
-							<div class="index-item-description">Represents the required pieces of an HTTP response provided by HTTP transport</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_InvalidArgumentException
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_InvalidArgumentException.html">Apache_Solr_InvalidArgumentException</a> in InvalidArgumentException.php</div>
-							<div class="index-item-description">Copyright (c) 2007-2011, Servigistics, Inc.</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_NoServiceAvailableException
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_NoServiceAvailableException.html">Apache_Solr_NoServiceAvailableException</a> in NoServiceAvailableException.php</div>
-							<div class="index-item-description">Copyright (c) 2007-2011, Servigistics, Inc.</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_ParserException
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_ParserException.html">Apache_Solr_ParserException</a> in ParserException.php</div>
-							<div class="index-item-description">Copyright (c) 2007-2011, Servigistics, Inc.</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_Response
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html">Apache_Solr_Response</a> in Response.php</div>
-							<div class="index-item-description">Represents a Solr response.  Parses the raw response into a set of stdClass objects  and associative arrays for easy access.</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_Service
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html">Apache_Solr_Service</a> in Service.php</div>
-							<div class="index-item-description">Starting point for the Solr API. Represents a Solr server resource and has  methods for pinging, adding, deleting, committing, optimizing and searching.</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_Service_Balancer
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html">Apache_Solr_Service_Balancer</a> in Balancer.php</div>
-							<div class="index-item-description">Reference Implementation for using multiple Solr services in a distribution. Functionality</div>
-					</dd>
-			<dt class="field">
-						<span class="include-title">Abstract.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_HttpTransport---Abstract.php.html">Abstract.php</a> in Abstract.php</div>
-					</dd>
-		</dl>
-	<a name="b"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">b</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="include-title">Balancer.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_Service---Balancer.php.html">Balancer.php</a> in Balancer.php</div>
-					</dd>
-		</dl>
-	<a name="c"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">c</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="method-title">clear</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodclear">Apache_Solr_Document::clear()</a> in Document.php</div>
-							<div class="index-item-description">Clear all boosts and fields from this document</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">commit</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodcommit">Apache_Solr_Service_Balancer::commit()</a> in Balancer.php</div>
-							<div class="index-item-description">Send a commit command.  Will be synchronous unless both wait parameters are set  to false.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">commit</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodcommit">Apache_Solr_Service::commit()</a> in Service.php</div>
-							<div class="index-item-description">Send a commit command.  Will be synchronous unless both wait parameters are set to false.</div>
-					</dd>
-			<dt class="field">
-						<span class="include-title">Curl.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_HttpTransport---Curl.php.html">Curl.php</a> in Curl.php</div>
-					</dd>
-			<dt class="field">
-						<span class="include-title">CurlNoReuse.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_HttpTransport---CurlNoReuse.php.html">CurlNoReuse.php</a> in CurlNoReuse.php</div>
-					</dd>
-		</dl>
-	<a name="d"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">d</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="method-title">delete</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methoddelete">Apache_Solr_Service_Balancer::delete()</a> in Balancer.php</div>
-							<div class="index-item-description">Raw Delete Method. Takes a raw post body and sends it to the update service. Body should be  a complete and well formed &quot;delete&quot; xml document</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">delete</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methoddelete">Apache_Solr_Service::delete()</a> in Service.php</div>
-							<div class="index-item-description">Raw Delete Method. Takes a raw post body and sends it to the update service. Body should be  a complete and well formed &quot;delete&quot; xml document</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">deleteById</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methoddeleteById">Apache_Solr_Service_Balancer::deleteById()</a> in Balancer.php</div>
-							<div class="index-item-description">Create a delete document based on document ID</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">deleteById</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methoddeleteById">Apache_Solr_Service::deleteById()</a> in Service.php</div>
-							<div class="index-item-description">Create a delete document based on document ID</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">deleteByMultipleIds</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methoddeleteByMultipleIds">Apache_Solr_Service_Balancer::deleteByMultipleIds()</a> in Balancer.php</div>
-							<div class="index-item-description">Create and post a delete document based on multiple document IDs.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">deleteByMultipleIds</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methoddeleteByMultipleIds">Apache_Solr_Service::deleteByMultipleIds()</a> in Service.php</div>
-							<div class="index-item-description">Create and post a delete document based on multiple document IDs.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">deleteByQuery</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methoddeleteByQuery">Apache_Solr_Service_Balancer::deleteByQuery()</a> in Balancer.php</div>
-							<div class="index-item-description">Create a delete document based on a query and submit it</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">deleteByQuery</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methoddeleteByQuery">Apache_Solr_Service::deleteByQuery()</a> in Service.php</div>
-							<div class="index-item-description">Create a delete document based on a query and submit it</div>
-					</dd>
-			<dt class="field">
-						<span class="include-title">Document.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_Document.php.html">Document.php</a> in Document.php</div>
-					</dd>
-		</dl>
-	<a name="e"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">e</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="method-title">escape</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodescape">Apache_Solr_Service_Balancer::escape()</a> in Balancer.php</div>
-							<div class="index-item-description">Escape a value for special query characters such as ':', '(', ')', '*', '?', etc.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">escape</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodescape">Apache_Solr_Service::escape()</a> in Service.php</div>
-							<div class="index-item-description">Escape a value for special query characters such as ':', '(', ')', '*', '?', etc.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">escapePhrase</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodescapePhrase">Apache_Solr_Service_Balancer::escapePhrase()</a> in Balancer.php</div>
-							<div class="index-item-description">Escape a value meant to be contained in a phrase for special query characters</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">escapePhrase</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodescapePhrase">Apache_Solr_Service::escapePhrase()</a> in Service.php</div>
-							<div class="index-item-description">Escape a value meant to be contained in a phrase for special query characters</div>
-					</dd>
-			<dt class="field">
-						<span class="include-title">Exception.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_Exception.php.html">Exception.php</a> in Exception.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">extract</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodextract">Apache_Solr_Service_Balancer::extract()</a> in Balancer.php</div>
-							<div class="index-item-description">Use Solr Cell to extract document contents. See <a href="http://wiki.apache.org/solr/ExtractingRequestHandler">http://wiki.apache.org/solr/ExtractingRequestHandler</a> for information on how  to use Solr Cell and what parameters are available.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">extract</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodextract">Apache_Solr_Service::extract()</a> in Service.php</div>
-							<div class="index-item-description">Use Solr Cell to extract document contents. See <a href="http://wiki.apache.org/solr/ExtractingRequestHandler">http://wiki.apache.org/solr/ExtractingRequestHandler</a> for information on how  to use Solr Cell and what parameters are available.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">extractFromString</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodextractFromString">Apache_Solr_Service_Balancer::extractFromString()</a> in Balancer.php</div>
-							<div class="index-item-description">Use Solr Cell to extract document contents. See <a href="http://wiki.apache.org/solr/ExtractingRequestHandler">http://wiki.apache.org/solr/ExtractingRequestHandler</a> for information on how  to use Solr Cell and what parameters are available.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">extractFromString</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodextractFromString">Apache_Solr_Service::extractFromString()</a> in Service.php</div>
-							<div class="index-item-description">Use Solr Cell to extract document contents. See <a href="http://wiki.apache.org/solr/ExtractingRequestHandler">http://wiki.apache.org/solr/ExtractingRequestHandler</a> for information on how  to use Solr Cell and what parameters are available.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">extractFromUrl</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodextractFromUrl">Apache_Solr_Service::extractFromUrl()</a> in Service.php</div>
-							<div class="index-item-description">Use Solr Cell to extract document contents. See <a href="http://wiki.apache.org/solr/ExtractingRequestHandler">http://wiki.apache.org/solr/ExtractingRequestHandler</a> for information on how  to use Solr Cell and what parameters are available.</div>
-					</dd>
-			<dt class="field">
-						EXTRACT_SERVLET
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#constEXTRACT_SERVLET">Apache_Solr_Service::EXTRACT_SERVLET</a> in Service.php</div>
-					</dd>
-		</dl>
-	<a name="f"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">f</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="include-title">FileGetContents.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_HttpTransport---FileGetContents.php.html">FileGetContents.php</a> in FileGetContents.php</div>
-					</dd>
-		</dl>
-	<a name="g"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">g</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="method-title">getBody</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Response.html#methodgetBody">Apache_Solr_HttpTransport_Response::getBody()</a> in Response.php</div>
-							<div class="index-item-description">Get the raw response body</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getBoost</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodgetBoost">Apache_Solr_Document::getBoost()</a> in Document.php</div>
-							<div class="index-item-description">Get current document boost</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getCollapseSingleValueArrays</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodgetCollapseSingleValueArrays">Apache_Solr_Service::getCollapseSingleValueArrays()</a> in Service.php</div>
-							<div class="index-item-description">Get the current state of the collapse single value arrays flag.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getCreateDocuments</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodgetCreateDocuments">Apache_Solr_Service_Balancer::getCreateDocuments()</a> in Balancer.php</div>
-							<div class="index-item-description">Get the current state of teh create documents flag.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getCreateDocuments</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodgetCreateDocuments">Apache_Solr_Service::getCreateDocuments()</a> in Service.php</div>
-							<div class="index-item-description">Get the current state of teh create documents flag.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getDefaultStatusMessage</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Response.html#methodgetDefaultStatusMessage">Apache_Solr_HttpTransport_Response::getDefaultStatusMessage()</a> in Response.php</div>
-							<div class="index-item-description">Get the HTTP status message based on status code</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getDefaultTimeout</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Abstract.html#methodgetDefaultTimeout">Apache_Solr_HttpTransport_Abstract::getDefaultTimeout()</a> in Abstract.php</div>
-							<div class="index-item-description">Get the current default timeout setting (initially the default_socket_timeout ini setting)  in seconds</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getDefaultTimeout</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Interface.html#methodgetDefaultTimeout">Apache_Solr_HttpTransport_Interface::getDefaultTimeout()</a> in Interface.php</div>
-							<div class="index-item-description">Get the current default timeout for all HTTP requests</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getDefaultTimeout</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodgetDefaultTimeout">Apache_Solr_Service::getDefaultTimeout()</a> in Service.php</div>
-							<div class="index-item-description">Get the current default timeout setting (initially the default_socket_timeout ini setting)  in seconds</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getEncoding</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Response.html#methodgetEncoding">Apache_Solr_HttpTransport_Response::getEncoding()</a> in Response.php</div>
-							<div class="index-item-description">Get the charset encoding of the response body.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getEncoding</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#methodgetEncoding">Apache_Solr_Response::getEncoding()</a> in Response.php</div>
-							<div class="index-item-description">Get character encoding of this response. Should usually be utf-8, but just in case</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getField</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodgetField">Apache_Solr_Document::getField()</a> in Document.php</div>
-							<div class="index-item-description">Get field information</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getFieldBoost</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodgetFieldBoost">Apache_Solr_Document::getFieldBoost()</a> in Document.php</div>
-							<div class="index-item-description">Get the currently set field boost for a document field</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getFieldBoosts</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodgetFieldBoosts">Apache_Solr_Document::getFieldBoosts()</a> in Document.php</div>
-							<div class="index-item-description">Return current field boosts, indexed by field name</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getFieldNames</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodgetFieldNames">Apache_Solr_Document::getFieldNames()</a> in Document.php</div>
-							<div class="index-item-description">Get the names of all fields in this document</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getFieldValues</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodgetFieldValues">Apache_Solr_Document::getFieldValues()</a> in Document.php</div>
-							<div class="index-item-description">Get the values of all fields in this document</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getHost</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodgetHost">Apache_Solr_Service::getHost()</a> in Service.php</div>
-							<div class="index-item-description">Returns the set host</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getHttpStatus</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#methodgetHttpStatus">Apache_Solr_Response::getHttpStatus()</a> in Response.php</div>
-							<div class="index-item-description">Get the HTTP status code</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getHttpStatusMessage</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#methodgetHttpStatusMessage">Apache_Solr_Response::getHttpStatusMessage()</a> in Response.php</div>
-							<div class="index-item-description">Get the HTTP status message of the response</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getHttpTransport</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodgetHttpTransport">Apache_Solr_Service::getHttpTransport()</a> in Service.php</div>
-							<div class="index-item-description">Get the current configured HTTP Transport</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getIterator</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodgetIterator">Apache_Solr_Document::getIterator()</a> in Document.php</div>
-							<div class="index-item-description">IteratorAggregate implementation function. Allows usage:</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getMimeType</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Response.html#methodgetMimeType">Apache_Solr_HttpTransport_Response::getMimeType()</a> in Response.php</div>
-							<div class="index-item-description">Get the mimetype of the response body</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getNamedListTreatment</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodgetNamedListTreatment">Apache_Solr_Service::getNamedListTreatment()</a> in Service.php</div>
-							<div class="index-item-description">Get the current setting for named list treatment.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getPath</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodgetPath">Apache_Solr_Service::getPath()</a> in Service.php</div>
-							<div class="index-item-description">Get the set path.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getPort</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodgetPort">Apache_Solr_Service::getPort()</a> in Service.php</div>
-							<div class="index-item-description">Get the set port</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getRawResponse</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#methodgetRawResponse">Apache_Solr_Response::getRawResponse()</a> in Response.php</div>
-							<div class="index-item-description">Get the raw response as it was given to this object</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getResponse</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransportException.html#methodgetResponse">Apache_Solr_HttpTransportException::getResponse()</a> in HttpTransportException.php</div>
-							<div class="index-item-description">Get the response for which this exception was generated</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getStatusCode</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Response.html#methodgetStatusCode">Apache_Solr_HttpTransport_Response::getStatusCode()</a> in Response.php</div>
-							<div class="index-item-description">Get the status code of the response</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getStatusMessage</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Response.html#methodgetStatusMessage">Apache_Solr_HttpTransport_Response::getStatusMessage()</a> in Response.php</div>
-							<div class="index-item-description">Get the status message of the response</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getType</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#methodgetType">Apache_Solr_Response::getType()</a> in Response.php</div>
-							<div class="index-item-description">Get content type of this Solr response</div>
-					</dd>
-		</dl>
-	<a name="h"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">h</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="include-title">HttpTransportException.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_HttpTransportException.php.html">HttpTransportException.php</a> in HttpTransportException.php</div>
-					</dd>
-		</dl>
-	<a name="i"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">i</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="include-title">Interface.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_HttpTransport---Interface.php.html">Interface.php</a> in Interface.php</div>
-					</dd>
-			<dt class="field">
-						<span class="include-title">InvalidArgumentException.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_InvalidArgumentException.php.html">InvalidArgumentException.php</a> in InvalidArgumentException.php</div>
-					</dd>
-		</dl>
-	<a name="m"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">m</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						METHOD_GET
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#constMETHOD_GET">Apache_Solr_Service::METHOD_GET</a> in Service.php</div>
-							<div class="index-item-description">Search HTTP Methods</div>
-					</dd>
-			<dt class="field">
-						METHOD_POST
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#constMETHOD_POST">Apache_Solr_Service::METHOD_POST</a> in Service.php</div>
-					</dd>
-		</dl>
-	<a name="n"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">n</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						NAMED_LIST_FLAT
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#constNAMED_LIST_FLAT">Apache_Solr_Service::NAMED_LIST_FLAT</a> in Service.php</div>
-							<div class="index-item-description">NamedList Treatment constants</div>
-					</dd>
-			<dt class="field">
-						NAMED_LIST_MAP
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#constNAMED_LIST_MAP">Apache_Solr_Service::NAMED_LIST_MAP</a> in Service.php</div>
-					</dd>
-			<dt class="field">
-						<span class="include-title">NoServiceAvailableException.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_NoServiceAvailableException.php.html">NoServiceAvailableException.php</a> in NoServiceAvailableException.php</div>
-					</dd>
-		</dl>
-	<a name="o"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">o</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="method-title">optimize</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodoptimize">Apache_Solr_Service::optimize()</a> in Service.php</div>
-							<div class="index-item-description">Send an optimize command.  Will be synchronous unless both wait parameters are set  to false.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">optimize</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodoptimize">Apache_Solr_Service_Balancer::optimize()</a> in Balancer.php</div>
-							<div class="index-item-description">Send an optimize command.  Will be synchronous unless both wait parameters are set  to false.</div>
-					</dd>
-		</dl>
-	<a name="p"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">p</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="include-title">ParserException.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_ParserException.php.html">ParserException.php</a> in ParserException.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">performGetRequest</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_CurlNoReuse.html#methodperformGetRequest">Apache_Solr_HttpTransport_CurlNoReuse::performGetRequest()</a> in CurlNoReuse.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">performGetRequest</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Curl.html#methodperformGetRequest">Apache_Solr_HttpTransport_Curl::performGetRequest()</a> in Curl.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">performGetRequest</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_FileGetContents.html#methodperformGetRequest">Apache_Solr_HttpTransport_FileGetContents::performGetRequest()</a> in FileGetContents.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">performGetRequest</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Interface.html#methodperformGetRequest">Apache_Solr_HttpTransport_Interface::performGetRequest()</a> in Interface.php</div>
-							<div class="index-item-description">Perform a GET HTTP operation with an optional timeout and return the response  contents, use getLastResponseHeaders to retrieve HTTP headers</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">performHeadRequest</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Interface.html#methodperformHeadRequest">Apache_Solr_HttpTransport_Interface::performHeadRequest()</a> in Interface.php</div>
-							<div class="index-item-description">Perform a HEAD HTTP operation with an optional timeout and return the response  headers - NOTE: head requests have no response body</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">performHeadRequest</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_FileGetContents.html#methodperformHeadRequest">Apache_Solr_HttpTransport_FileGetContents::performHeadRequest()</a> in FileGetContents.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">performHeadRequest</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_CurlNoReuse.html#methodperformHeadRequest">Apache_Solr_HttpTransport_CurlNoReuse::performHeadRequest()</a> in CurlNoReuse.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">performHeadRequest</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Curl.html#methodperformHeadRequest">Apache_Solr_HttpTransport_Curl::performHeadRequest()</a> in Curl.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">performPostRequest</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_CurlNoReuse.html#methodperformPostRequest">Apache_Solr_HttpTransport_CurlNoReuse::performPostRequest()</a> in CurlNoReuse.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">performPostRequest</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Interface.html#methodperformPostRequest">Apache_Solr_HttpTransport_Interface::performPostRequest()</a> in Interface.php</div>
-							<div class="index-item-description">Perform a POST HTTP operation with an optional timeout and return the response  contents, use getLastResponseHeaders to retrieve HTTP headers</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">performPostRequest</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Curl.html#methodperformPostRequest">Apache_Solr_HttpTransport_Curl::performPostRequest()</a> in Curl.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">performPostRequest</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_FileGetContents.html#methodperformPostRequest">Apache_Solr_HttpTransport_FileGetContents::performPostRequest()</a> in FileGetContents.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">phrase</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodphrase">Apache_Solr_Service::phrase()</a> in Service.php</div>
-							<div class="index-item-description">Convenience function for creating phrase syntax from a value</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">phrase</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodphrase">Apache_Solr_Service_Balancer::phrase()</a> in Balancer.php</div>
-							<div class="index-item-description">Convenience function for creating phrase syntax from a value</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">ping</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodping">Apache_Solr_Service::ping()</a> in Service.php</div>
-							<div class="index-item-description">Call the /admin/ping servlet, can be used to quickly tell if a connection to the  server is able to be made.</div>
-					</dd>
-			<dt class="field">
-						PING_SERVLET
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#constPING_SERVLET">Apache_Solr_Service::PING_SERVLET</a> in Service.php</div>
-							<div class="index-item-description">Servlet mappings</div>
-					</dd>
-		</dl>
-	<a name="r"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">r</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="include-title">Response.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_HttpTransport---Response.php.html">Response.php</a> in Response.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">removeReadService</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodremoveReadService">Apache_Solr_Service_Balancer::removeReadService()</a> in Balancer.php</div>
-							<div class="index-item-description">Removes a service instance or descriptor from the available services</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">removeWriteService</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodremoveWriteService">Apache_Solr_Service_Balancer::removeWriteService()</a> in Balancer.php</div>
-							<div class="index-item-description">Removes a service instance or descriptor from the available services</div>
-					</dd>
-			<dt class="field">
-						<span class="include-title">Response.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_Response.php.html">Response.php</a> in Response.php</div>
-					</dd>
-		</dl>
-	<a name="s"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">s</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="method-title">search</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodsearch">Apache_Solr_Service::search()</a> in Service.php</div>
-							<div class="index-item-description">Simple Search interface</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">search</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodsearch">Apache_Solr_Service_Balancer::search()</a> in Balancer.php</div>
-							<div class="index-item-description">Simple Search interface</div>
-					</dd>
-			<dt class="field">
-						SEARCH_SERVLET
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#constSEARCH_SERVLET">Apache_Solr_Service::SEARCH_SERVLET</a> in Service.php</div>
-					</dd>
-			<dt class="field">
-						<span class="include-title">Service.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_Service.php.html">Service.php</a> in Service.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setBoost</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodsetBoost">Apache_Solr_Document::setBoost()</a> in Document.php</div>
-							<div class="index-item-description">Set document boost factor</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setCollapseSingleValueArrays</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodsetCollapseSingleValueArrays">Apache_Solr_Service::setCollapseSingleValueArrays()</a> in Service.php</div>
-							<div class="index-item-description">Set the collapse single value arrays flag.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setCreateDocuments</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodsetCreateDocuments">Apache_Solr_Service::setCreateDocuments()</a> in Service.php</div>
-							<div class="index-item-description">Set the create documents flag. This determines whether <a href="Apache/Solr/Apache_Solr_Response.html">Apache_Solr_Response</a> objects will  parse the response and create <a href="Apache/Solr/Apache_Solr_Document.html">Apache_Solr_Document</a> instances in place.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setCreateDocuments</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodsetCreateDocuments">Apache_Solr_Service_Balancer::setCreateDocuments()</a> in Balancer.php</div>
-							<div class="index-item-description">Set the create documents flag. This determines whether <a href="Apache/Solr/Apache_Solr_Response.html">Apache_Solr_Response</a> objects will  parse the response and create <a href="Apache/Solr/Apache_Solr_Document.html">Apache_Solr_Document</a> instances in place.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setDefaultTimeout</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Abstract.html#methodsetDefaultTimeout">Apache_Solr_HttpTransport_Abstract::setDefaultTimeout()</a> in Abstract.php</div>
-							<div class="index-item-description">Set the current default timeout for all HTTP requests</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setDefaultTimeout</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodsetDefaultTimeout">Apache_Solr_Service::setDefaultTimeout()</a> in Service.php</div>
-							<div class="index-item-description">Set the default timeout for all calls that aren't passed a specific timeout</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setDefaultTimeout</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Interface.html#methodsetDefaultTimeout">Apache_Solr_HttpTransport_Interface::setDefaultTimeout()</a> in Interface.php</div>
-							<div class="index-item-description">Set the current default timeout for all HTTP requests</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setField</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodsetField">Apache_Solr_Document::setField()</a> in Document.php</div>
-							<div class="index-item-description">Set a field value. Multi-valued fields should be set as arrays  or instead use the addField(...) function which will automatically  make sure the field is an array.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setFieldBoost</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodsetFieldBoost">Apache_Solr_Document::setFieldBoost()</a> in Document.php</div>
-							<div class="index-item-description">Set the field boost for a document field</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setHost</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodsetHost">Apache_Solr_Service::setHost()</a> in Service.php</div>
-							<div class="index-item-description">Set the host used. If empty will fallback to constants</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setHttpTransport</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodsetHttpTransport">Apache_Solr_Service::setHttpTransport()</a> in Service.php</div>
-							<div class="index-item-description">Set the HTTP Transport implemenation that will be used for all HTTP requests</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setMultiValue</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodsetMultiValue">Apache_Solr_Document::setMultiValue()</a> in Document.php</div>
-							<div class="index-item-description">Handle the array manipulation for a multi-valued field</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setNamedListTreatment</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodsetNamedListTreatment">Apache_Solr_Service::setNamedListTreatment()</a> in Service.php</div>
-							<div class="index-item-description">Set how NamedLists should be formatted in the response data. This mainly effects  the facet counts format.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setPath</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodsetPath">Apache_Solr_Service::setPath()</a> in Service.php</div>
-							<div class="index-item-description">Set the path used. If empty will fallback to constants</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setPort</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodsetPort">Apache_Solr_Service::setPort()</a> in Service.php</div>
-							<div class="index-item-description">Set the port used. If empty will fallback to constants</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setQueryDelimiter</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodsetQueryDelimiter">Apache_Solr_Service::setQueryDelimiter()</a> in Service.php</div>
-							<div class="index-item-description">Set the string used to separate the path form the query string.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setQueryStringDelimiter</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodsetQueryStringDelimiter">Apache_Solr_Service::setQueryStringDelimiter()</a> in Service.php</div>
-							<div class="index-item-description">Set the string used to separate the parameters in thequery string  Defaulted to '&amp;'</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setReadPingTimeout</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodsetReadPingTimeout">Apache_Solr_Service_Balancer::setReadPingTimeout()</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setUseBackoff</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodsetUseBackoff">Apache_Solr_Service_Balancer::setUseBackoff()</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setWritePingTimeout</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodsetWritePingTimeout">Apache_Solr_Service_Balancer::setWritePingTimeout()</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						SOLR_WRITER
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#constSOLR_WRITER">Apache_Solr_Service::SOLR_WRITER</a> in Service.php</div>
-							<div class="index-item-description">Response writer we'll request - JSON. See http://code.google.com/p/solr-php-client/issues/detail?id=6#c1 for reasoning</div>
-					</dd>
-			<dt class="field">
-						SVN_ID
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#constSVN_ID">Apache_Solr_Service_Balancer::SVN_ID</a> in Balancer.php</div>
-							<div class="index-item-description">SVN ID meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_ID
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Curl.html#constSVN_ID">Apache_Solr_HttpTransport_Curl::SVN_ID</a> in Curl.php</div>
-							<div class="index-item-description">SVN ID meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_ID
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#constSVN_ID">Apache_Solr_Service::SVN_ID</a> in Service.php</div>
-							<div class="index-item-description">SVN ID meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_ID
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#constSVN_ID">Apache_Solr_Response::SVN_ID</a> in Response.php</div>
-							<div class="index-item-description">SVN ID meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_ID
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_ParserException.html#constSVN_ID">Apache_Solr_ParserException::SVN_ID</a> in ParserException.php</div>
-							<div class="index-item-description">SVN ID meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_ID
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_InvalidArgumentException.html#constSVN_ID">Apache_Solr_InvalidArgumentException::SVN_ID</a> in InvalidArgumentException.php</div>
-							<div class="index-item-description">SVN ID meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_ID
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_FileGetContents.html#constSVN_ID">Apache_Solr_HttpTransport_FileGetContents::SVN_ID</a> in FileGetContents.php</div>
-							<div class="index-item-description">SVN ID meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_ID
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransportException.html#constSVN_ID">Apache_Solr_HttpTransportException::SVN_ID</a> in HttpTransportException.php</div>
-							<div class="index-item-description">SVN ID meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_ID
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Exception.html#constSVN_ID">Apache_Solr_Exception::SVN_ID</a> in Exception.php</div>
-							<div class="index-item-description">SVN ID meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_ID
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_NoServiceAvailableException.html#constSVN_ID">Apache_Solr_NoServiceAvailableException::SVN_ID</a> in NoServiceAvailableException.php</div>
-							<div class="index-item-description">SVN ID meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_ID
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_CurlNoReuse.html#constSVN_ID">Apache_Solr_HttpTransport_CurlNoReuse::SVN_ID</a> in CurlNoReuse.php</div>
-							<div class="index-item-description">SVN ID meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_ID
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#constSVN_ID">Apache_Solr_Document::SVN_ID</a> in Document.php</div>
-							<div class="index-item-description">SVN ID meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_REVISION
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#constSVN_REVISION">Apache_Solr_Service::SVN_REVISION</a> in Service.php</div>
-							<div class="index-item-description">SVN Revision meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_REVISION
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#constSVN_REVISION">Apache_Solr_Document::SVN_REVISION</a> in Document.php</div>
-							<div class="index-item-description">SVN Revision meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_REVISION
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Exception.html#constSVN_REVISION">Apache_Solr_Exception::SVN_REVISION</a> in Exception.php</div>
-							<div class="index-item-description">SVN Revision meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_REVISION
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_FileGetContents.html#constSVN_REVISION">Apache_Solr_HttpTransport_FileGetContents::SVN_REVISION</a> in FileGetContents.php</div>
-							<div class="index-item-description">SVN Revision meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_REVISION
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransportException.html#constSVN_REVISION">Apache_Solr_HttpTransportException::SVN_REVISION</a> in HttpTransportException.php</div>
-							<div class="index-item-description">SVN Revision meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_REVISION
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#constSVN_REVISION">Apache_Solr_Response::SVN_REVISION</a> in Response.php</div>
-							<div class="index-item-description">SVN Revision meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_REVISION
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_CurlNoReuse.html#constSVN_REVISION">Apache_Solr_HttpTransport_CurlNoReuse::SVN_REVISION</a> in CurlNoReuse.php</div>
-							<div class="index-item-description">SVN Revision meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_REVISION
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_NoServiceAvailableException.html#constSVN_REVISION">Apache_Solr_NoServiceAvailableException::SVN_REVISION</a> in NoServiceAvailableException.php</div>
-							<div class="index-item-description">SVN Revision meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_REVISION
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#constSVN_REVISION">Apache_Solr_Service_Balancer::SVN_REVISION</a> in Balancer.php</div>
-							<div class="index-item-description">SVN Revision meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_REVISION
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Curl.html#constSVN_REVISION">Apache_Solr_HttpTransport_Curl::SVN_REVISION</a> in Curl.php</div>
-							<div class="index-item-description">SVN Revision meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_REVISION
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_InvalidArgumentException.html#constSVN_REVISION">Apache_Solr_InvalidArgumentException::SVN_REVISION</a> in InvalidArgumentException.php</div>
-							<div class="index-item-description">SVN Revision meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_REVISION
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_ParserException.html#constSVN_REVISION">Apache_Solr_ParserException::SVN_REVISION</a> in ParserException.php</div>
-							<div class="index-item-description">SVN Revision meta data for this class</div>
-					</dd>
-		</dl>
-	<a name="t"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">t</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="method-title">threads</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodthreads">Apache_Solr_Service::threads()</a> in Service.php</div>
-							<div class="index-item-description">Call the /admin/threads servlet and retrieve information about all threads in the  Solr servlet's thread group. Useful for diagnostics.</div>
-					</dd>
-			<dt class="field">
-						THREADS_SERVLET
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#constTHREADS_SERVLET">Apache_Solr_Service::THREADS_SERVLET</a> in Service.php</div>
-					</dd>
-		</dl>
-	<a name="u"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">u</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						UPDATE_SERVLET
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#constUPDATE_SERVLET">Apache_Solr_Service::UPDATE_SERVLET</a> in Service.php</div>
-					</dd>
-		</dl>
-	<a name="_"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">_</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="var-title">$_backoffEscalation</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#var$_backoffEscalation">Apache_Solr_Service_Balancer::$_backoffEscalation</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_backoffLimit</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#var$_backoffLimit">Apache_Solr_Service_Balancer::$_backoffLimit</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_collapseSingleValueArrays</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_collapseSingleValueArrays">Apache_Solr_Service::$_collapseSingleValueArrays</a> in Service.php</div>
-							<div class="index-item-description">Whether <a href="Apache/Solr/Apache_Solr_Response.html">Apache_Solr_Response</a> objects should have multivalue fields with only a single value  collapsed to appear as a single value would.</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_collapseSingleValueArrays</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#var$_collapseSingleValueArrays">Apache_Solr_Response::$_collapseSingleValueArrays</a> in Response.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_createDocuments</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#var$_createDocuments">Apache_Solr_Response::$_createDocuments</a> in Response.php</div>
-							<div class="index-item-description">Data parsing flags.  Determines what extra processing should be done  after the data is initially converted to a data structure.</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_createDocuments</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_createDocuments">Apache_Solr_Service::$_createDocuments</a> in Service.php</div>
-							<div class="index-item-description">Whether <a href="Apache/Solr/Apache_Solr_Response.html">Apache_Solr_Response</a> objects should create <a href="Apache/Solr/Apache_Solr_Document.html">Apache_Solr_Document</a>s in  the returned parsed data</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_createDocuments</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#var$_createDocuments">Apache_Solr_Service_Balancer::$_createDocuments</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_currentReadService</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#var$_currentReadService">Apache_Solr_Service_Balancer::$_currentReadService</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_currentWriteService</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#var$_currentWriteService">Apache_Solr_Service_Balancer::$_currentWriteService</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_defaultBackoff</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#var$_defaultBackoff">Apache_Solr_Service_Balancer::$_defaultBackoff</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_documentBoost</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#var$_documentBoost">Apache_Solr_Document::$_documentBoost</a> in Document.php</div>
-							<div class="index-item-description">Document boost value</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_fieldBoosts</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#var$_fieldBoosts">Apache_Solr_Document::$_fieldBoosts</a> in Document.php</div>
-							<div class="index-item-description">Document field boost values, indexed by name</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_fields</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#var$_fields">Apache_Solr_Document::$_fields</a> in Document.php</div>
-							<div class="index-item-description">Document field values, indexed by name</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_host</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_host">Apache_Solr_Service::$_host</a> in Service.php</div>
-							<div class="index-item-description">Server identification strings</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_httpTransport</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_httpTransport">Apache_Solr_Service::$_httpTransport</a> in Service.php</div>
-							<div class="index-item-description">HTTP Transport implementation (pluggable)</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_isParsed</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#var$_isParsed">Apache_Solr_Response::$_isParsed</a> in Response.php</div>
-							<div class="index-item-description">Whether the raw response has been parsed</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_namedListTreatment</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_namedListTreatment">Apache_Solr_Service::$_namedListTreatment</a> in Service.php</div>
-							<div class="index-item-description">How NamedLists should be formatted in the output.  This specifically effects facet counts. Valid values  are <a href="Apache/Solr/Apache_Solr_Service.html#constNAMED_LIST_MAP">Apache_Solr_Service::NAMED_LIST_MAP</a> (default) or <a href="Apache/Solr/Apache_Solr_Service.html#constNAMED_LIST_FLAT">Apache_Solr_Service::NAMED_LIST_FLAT</a>.</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_parsedData</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#var$_parsedData">Apache_Solr_Response::$_parsedData</a> in Response.php</div>
-							<div class="index-item-description">Parsed representation of the data</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_path</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_path">Apache_Solr_Service::$_path</a> in Service.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_pingUrl</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_pingUrl">Apache_Solr_Service::$_pingUrl</a> in Service.php</div>
-							<div class="index-item-description">Constructed servlet full path URLs</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_port</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_port">Apache_Solr_Service::$_port</a> in Service.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_queryBracketsEscaped</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_queryBracketsEscaped">Apache_Solr_Service::$_queryBracketsEscaped</a> in Service.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_queryDelimiter</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_queryDelimiter">Apache_Solr_Service::$_queryDelimiter</a> in Service.php</div>
-							<div class="index-item-description">Query delimiters. Someone might want to be able to change  these (to use &amp;amp; instead of &amp; for example), so I've provided them.</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_queryStringDelimiter</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_queryStringDelimiter">Apache_Solr_Service::$_queryStringDelimiter</a> in Service.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_readableServices</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#var$_readableServices">Apache_Solr_Service_Balancer::$_readableServices</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_readPingTimeout</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#var$_readPingTimeout">Apache_Solr_Service_Balancer::$_readPingTimeout</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_response</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#var$_response">Apache_Solr_Response::$_response</a> in Response.php</div>
-							<div class="index-item-description">Holds the raw response used in construction</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_searchUrl</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_searchUrl">Apache_Solr_Service::$_searchUrl</a> in Service.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_threadsUrl</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_threadsUrl">Apache_Solr_Service::$_threadsUrl</a> in Service.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_updateUrl</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_updateUrl">Apache_Solr_Service::$_updateUrl</a> in Service.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_urlsInited</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_urlsInited">Apache_Solr_Service::$_urlsInited</a> in Service.php</div>
-							<div class="index-item-description">Keep track of whether our URLs have been constructed</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_useBackoff</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#var$_useBackoff">Apache_Solr_Service_Balancer::$_useBackoff</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_writeableServices</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#var$_writeableServices">Apache_Solr_Service_Balancer::$_writeableServices</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_writePingTimeout</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#var$_writePingTimeout">Apache_Solr_Service_Balancer::$_writePingTimeout</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">_constructUrl</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#method_constructUrl">Apache_Solr_Service::_constructUrl()</a> in Service.php</div>
-							<div class="index-item-description">Return a valid http URL given this server's host, port and path and a provided servlet name</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">_documentToXmlFragment</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#method_documentToXmlFragment">Apache_Solr_Service::_documentToXmlFragment()</a> in Service.php</div>
-							<div class="index-item-description">Create an XML fragment from a <a href="Apache/Solr/Apache_Solr_Document.html">Apache_Solr_Document</a> instance appropriate for use inside a Solr add call</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">_generateQueryString</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#method_generateQueryString">Apache_Solr_Service::_generateQueryString()</a> in Service.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">_getServiceId</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#method_getServiceId">Apache_Solr_Service_Balancer::_getServiceId()</a> in Balancer.php</div>
-							<div class="index-item-description">Generates a service ID</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">_initUrls</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#method_initUrls">Apache_Solr_Service::_initUrls()</a> in Service.php</div>
-							<div class="index-item-description">Construct the Full URLs for the three servlets we reference</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">_parseData</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#method_parseData">Apache_Solr_Response::_parseData()</a> in Response.php</div>
-							<div class="index-item-description">Parse the raw response into the parsed_data array for access</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">_selectReadService</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#method_selectReadService">Apache_Solr_Service_Balancer::_selectReadService()</a> in Balancer.php</div>
-							<div class="index-item-description">Iterate through available read services and select the first with a ping  that satisfies configured timeout restrictions (or the default)</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">_selectWriteService</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#method_selectWriteService">Apache_Solr_Service_Balancer::_selectWriteService()</a> in Balancer.php</div>
-							<div class="index-item-description">Iterate through available write services and select the first with a ping  that satisfies configured timeout restrictions (or the default)</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">_selectWriteServiceSafe</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#method_selectWriteServiceSafe">Apache_Solr_Service_Balancer::_selectWriteServiceSafe()</a> in Balancer.php</div>
-							<div class="index-item-description">Iterate through available write services and select the first with a ping</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">_sendRawGet</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#method_sendRawGet">Apache_Solr_Service::_sendRawGet()</a> in Service.php</div>
-							<div class="index-item-description">Central method for making a get operation against this Solr Server</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">_sendRawPost</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#method_sendRawPost">Apache_Solr_Service::_sendRawPost()</a> in Service.php</div>
-							<div class="index-item-description">Central method for making a post operation against this Solr Server</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">_stripCtrlChars</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#method_stripCtrlChars">Apache_Solr_Service::_stripCtrlChars()</a> in Service.php</div>
-							<div class="index-item-description">Replace control (non-printable) characters from string that are invalid to Solr's XML parser with a space.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__construct</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#method__construct">Apache_Solr_Service::__construct()</a> in Service.php</div>
-							<div class="index-item-description">Constructor. All parameters are optional and will take on default values  if not specified.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__construct</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Response.html#method__construct">Apache_Solr_HttpTransport_Response::__construct()</a> in Response.php</div>
-							<div class="index-item-description">Construct a HTTP transport response</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__construct</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_FileGetContents.html#method__construct">Apache_Solr_HttpTransport_FileGetContents::__construct()</a> in FileGetContents.php</div>
-							<div class="index-item-description">Initializes our reuseable get and post stream contexts</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__construct</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Curl.html#method__construct">Apache_Solr_HttpTransport_Curl::__construct()</a> in Curl.php</div>
-							<div class="index-item-description">Initializes a curl session</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__construct</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransportException.html#method__construct">Apache_Solr_HttpTransportException::__construct()</a> in HttpTransportException.php</div>
-							<div class="index-item-description">HttpTransportException Constructor</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__construct</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#method__construct">Apache_Solr_Response::__construct()</a> in Response.php</div>
-							<div class="index-item-description">Constructor. Takes the raw HTTP response body and the exploded HTTP headers</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__construct</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#method__construct">Apache_Solr_Service_Balancer::__construct()</a> in Balancer.php</div>
-							<div class="index-item-description">Constructor. Takes arrays of read and write service instances or descriptions</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__destruct</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Curl.html#method__destruct">Apache_Solr_HttpTransport_Curl::__destruct()</a> in Curl.php</div>
-							<div class="index-item-description">Closes a curl session</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__get</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#method__get">Apache_Solr_Response::__get()</a> in Response.php</div>
-							<div class="index-item-description">Magic get to expose the parsed data and to lazily load it</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__get</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#method__get">Apache_Solr_Document::__get()</a> in Document.php</div>
-							<div class="index-item-description">Magic get for field values</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__isset</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#method__isset">Apache_Solr_Document::__isset()</a> in Document.php</div>
-							<div class="index-item-description">Magic isset for fields values.  Do not call directly. Allows usage:</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__isset</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#method__isset">Apache_Solr_Response::__isset()</a> in Response.php</div>
-							<div class="index-item-description">Magic function for isset function on parsed data</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__set</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#method__set">Apache_Solr_Document::__set()</a> in Document.php</div>
-							<div class="index-item-description">Magic set for field values. Multi-valued fields should be set as arrays  or instead use the addField(...) function which will automatically  make sure the field is an array.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__unset</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#method__unset">Apache_Solr_Document::__unset()</a> in Document.php</div>
-							<div class="index-item-description">Magic unset for field values. Do not call directly. Allows usage:</div>
-					</dd>
-		</dl>
-
-<div class="index-letter-menu">
-	<a class="index-letter" href="elementindex.html#a">a</a>
-	<a class="index-letter" href="elementindex.html#b">b</a>
-	<a class="index-letter" href="elementindex.html#c">c</a>
-	<a class="index-letter" href="elementindex.html#d">d</a>
-	<a class="index-letter" href="elementindex.html#e">e</a>
-	<a class="index-letter" href="elementindex.html#f">f</a>
-	<a class="index-letter" href="elementindex.html#g">g</a>
-	<a class="index-letter" href="elementindex.html#h">h</a>
-	<a class="index-letter" href="elementindex.html#i">i</a>
-	<a class="index-letter" href="elementindex.html#m">m</a>
-	<a class="index-letter" href="elementindex.html#n">n</a>
-	<a class="index-letter" href="elementindex.html#o">o</a>
-	<a class="index-letter" href="elementindex.html#p">p</a>
-	<a class="index-letter" href="elementindex.html#r">r</a>
-	<a class="index-letter" href="elementindex.html#s">s</a>
-	<a class="index-letter" href="elementindex.html#t">t</a>
-	<a class="index-letter" href="elementindex.html#u">u</a>
-	<a class="index-letter" href="elementindex.html#_">_</a>
-</div>	</body>
-</html>

+ 0 - 1723
SolrPhpClient/phpdocs/elementindex_Apache.html

@@ -1,1723 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-  <html xmlns="http://www.w3.org/1999/xhtml">
-		<head>
-			<!-- template designed by Marco Von Ballmoos -->
-			<title></title>
-			<link rel="stylesheet" href="media/stylesheet.css" />
-			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-		</head>
-		<body>
-						<a name="top"></a>
-<h2>[Apache] element index</h2>
-<a href="elementindex.html">All elements</a>
-<br />
-<div class="index-letter-menu">
-	<a class="index-letter" href="elementindex_Apache.html#a">a</a>
-	<a class="index-letter" href="elementindex_Apache.html#b">b</a>
-	<a class="index-letter" href="elementindex_Apache.html#c">c</a>
-	<a class="index-letter" href="elementindex_Apache.html#d">d</a>
-	<a class="index-letter" href="elementindex_Apache.html#e">e</a>
-	<a class="index-letter" href="elementindex_Apache.html#f">f</a>
-	<a class="index-letter" href="elementindex_Apache.html#g">g</a>
-	<a class="index-letter" href="elementindex_Apache.html#h">h</a>
-	<a class="index-letter" href="elementindex_Apache.html#i">i</a>
-	<a class="index-letter" href="elementindex_Apache.html#m">m</a>
-	<a class="index-letter" href="elementindex_Apache.html#n">n</a>
-	<a class="index-letter" href="elementindex_Apache.html#o">o</a>
-	<a class="index-letter" href="elementindex_Apache.html#p">p</a>
-	<a class="index-letter" href="elementindex_Apache.html#r">r</a>
-	<a class="index-letter" href="elementindex_Apache.html#s">s</a>
-	<a class="index-letter" href="elementindex_Apache.html#t">t</a>
-	<a class="index-letter" href="elementindex_Apache.html#u">u</a>
-	<a class="index-letter" href="elementindex_Apache.html#_">_</a>
-</div>
-
-	<a name="_"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">_</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="var-title">$_backoffEscalation</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#var$_backoffEscalation">Apache_Solr_Service_Balancer::$_backoffEscalation</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_backoffLimit</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#var$_backoffLimit">Apache_Solr_Service_Balancer::$_backoffLimit</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_collapseSingleValueArrays</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_collapseSingleValueArrays">Apache_Solr_Service::$_collapseSingleValueArrays</a> in Service.php</div>
-							<div class="index-item-description">Whether <a href="Apache/Solr/Apache_Solr_Response.html">Apache_Solr_Response</a> objects should have multivalue fields with only a single value  collapsed to appear as a single value would.</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_collapseSingleValueArrays</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#var$_collapseSingleValueArrays">Apache_Solr_Response::$_collapseSingleValueArrays</a> in Response.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_createDocuments</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#var$_createDocuments">Apache_Solr_Response::$_createDocuments</a> in Response.php</div>
-							<div class="index-item-description">Data parsing flags.  Determines what extra processing should be done  after the data is initially converted to a data structure.</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_createDocuments</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_createDocuments">Apache_Solr_Service::$_createDocuments</a> in Service.php</div>
-							<div class="index-item-description">Whether <a href="Apache/Solr/Apache_Solr_Response.html">Apache_Solr_Response</a> objects should create <a href="Apache/Solr/Apache_Solr_Document.html">Apache_Solr_Document</a>s in  the returned parsed data</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_createDocuments</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#var$_createDocuments">Apache_Solr_Service_Balancer::$_createDocuments</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_currentReadService</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#var$_currentReadService">Apache_Solr_Service_Balancer::$_currentReadService</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_currentWriteService</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#var$_currentWriteService">Apache_Solr_Service_Balancer::$_currentWriteService</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_defaultBackoff</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#var$_defaultBackoff">Apache_Solr_Service_Balancer::$_defaultBackoff</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_documentBoost</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#var$_documentBoost">Apache_Solr_Document::$_documentBoost</a> in Document.php</div>
-							<div class="index-item-description">Document boost value</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_fieldBoosts</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#var$_fieldBoosts">Apache_Solr_Document::$_fieldBoosts</a> in Document.php</div>
-							<div class="index-item-description">Document field boost values, indexed by name</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_fields</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#var$_fields">Apache_Solr_Document::$_fields</a> in Document.php</div>
-							<div class="index-item-description">Document field values, indexed by name</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_host</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_host">Apache_Solr_Service::$_host</a> in Service.php</div>
-							<div class="index-item-description">Server identification strings</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_httpTransport</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_httpTransport">Apache_Solr_Service::$_httpTransport</a> in Service.php</div>
-							<div class="index-item-description">HTTP Transport implementation (pluggable)</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_isParsed</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#var$_isParsed">Apache_Solr_Response::$_isParsed</a> in Response.php</div>
-							<div class="index-item-description">Whether the raw response has been parsed</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_namedListTreatment</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_namedListTreatment">Apache_Solr_Service::$_namedListTreatment</a> in Service.php</div>
-							<div class="index-item-description">How NamedLists should be formatted in the output.  This specifically effects facet counts. Valid values  are <a href="Apache/Solr/Apache_Solr_Service.html#constNAMED_LIST_MAP">Apache_Solr_Service::NAMED_LIST_MAP</a> (default) or <a href="Apache/Solr/Apache_Solr_Service.html#constNAMED_LIST_FLAT">Apache_Solr_Service::NAMED_LIST_FLAT</a>.</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_parsedData</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#var$_parsedData">Apache_Solr_Response::$_parsedData</a> in Response.php</div>
-							<div class="index-item-description">Parsed representation of the data</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_path</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_path">Apache_Solr_Service::$_path</a> in Service.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_pingUrl</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_pingUrl">Apache_Solr_Service::$_pingUrl</a> in Service.php</div>
-							<div class="index-item-description">Constructed servlet full path URLs</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_port</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_port">Apache_Solr_Service::$_port</a> in Service.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_queryBracketsEscaped</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_queryBracketsEscaped">Apache_Solr_Service::$_queryBracketsEscaped</a> in Service.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_queryDelimiter</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_queryDelimiter">Apache_Solr_Service::$_queryDelimiter</a> in Service.php</div>
-							<div class="index-item-description">Query delimiters. Someone might want to be able to change  these (to use &amp;amp; instead of &amp; for example), so I've provided them.</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_queryStringDelimiter</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_queryStringDelimiter">Apache_Solr_Service::$_queryStringDelimiter</a> in Service.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_readableServices</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#var$_readableServices">Apache_Solr_Service_Balancer::$_readableServices</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_readPingTimeout</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#var$_readPingTimeout">Apache_Solr_Service_Balancer::$_readPingTimeout</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_response</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#var$_response">Apache_Solr_Response::$_response</a> in Response.php</div>
-							<div class="index-item-description">Holds the raw response used in construction</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_searchUrl</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_searchUrl">Apache_Solr_Service::$_searchUrl</a> in Service.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_threadsUrl</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_threadsUrl">Apache_Solr_Service::$_threadsUrl</a> in Service.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_updateUrl</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_updateUrl">Apache_Solr_Service::$_updateUrl</a> in Service.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_urlsInited</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#var$_urlsInited">Apache_Solr_Service::$_urlsInited</a> in Service.php</div>
-							<div class="index-item-description">Keep track of whether our URLs have been constructed</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_useBackoff</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#var$_useBackoff">Apache_Solr_Service_Balancer::$_useBackoff</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_writeableServices</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#var$_writeableServices">Apache_Solr_Service_Balancer::$_writeableServices</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="var-title">$_writePingTimeout</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#var$_writePingTimeout">Apache_Solr_Service_Balancer::$_writePingTimeout</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">_constructUrl</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#method_constructUrl">Apache_Solr_Service::_constructUrl()</a> in Service.php</div>
-							<div class="index-item-description">Return a valid http URL given this server's host, port and path and a provided servlet name</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">_documentToXmlFragment</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#method_documentToXmlFragment">Apache_Solr_Service::_documentToXmlFragment()</a> in Service.php</div>
-							<div class="index-item-description">Create an XML fragment from a <a href="Apache/Solr/Apache_Solr_Document.html">Apache_Solr_Document</a> instance appropriate for use inside a Solr add call</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">_generateQueryString</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#method_generateQueryString">Apache_Solr_Service::_generateQueryString()</a> in Service.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">_getServiceId</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#method_getServiceId">Apache_Solr_Service_Balancer::_getServiceId()</a> in Balancer.php</div>
-							<div class="index-item-description">Generates a service ID</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">_initUrls</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#method_initUrls">Apache_Solr_Service::_initUrls()</a> in Service.php</div>
-							<div class="index-item-description">Construct the Full URLs for the three servlets we reference</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">_parseData</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#method_parseData">Apache_Solr_Response::_parseData()</a> in Response.php</div>
-							<div class="index-item-description">Parse the raw response into the parsed_data array for access</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">_selectReadService</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#method_selectReadService">Apache_Solr_Service_Balancer::_selectReadService()</a> in Balancer.php</div>
-							<div class="index-item-description">Iterate through available read services and select the first with a ping  that satisfies configured timeout restrictions (or the default)</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">_selectWriteService</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#method_selectWriteService">Apache_Solr_Service_Balancer::_selectWriteService()</a> in Balancer.php</div>
-							<div class="index-item-description">Iterate through available write services and select the first with a ping  that satisfies configured timeout restrictions (or the default)</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">_selectWriteServiceSafe</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#method_selectWriteServiceSafe">Apache_Solr_Service_Balancer::_selectWriteServiceSafe()</a> in Balancer.php</div>
-							<div class="index-item-description">Iterate through available write services and select the first with a ping</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">_sendRawGet</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#method_sendRawGet">Apache_Solr_Service::_sendRawGet()</a> in Service.php</div>
-							<div class="index-item-description">Central method for making a get operation against this Solr Server</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">_sendRawPost</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#method_sendRawPost">Apache_Solr_Service::_sendRawPost()</a> in Service.php</div>
-							<div class="index-item-description">Central method for making a post operation against this Solr Server</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">_stripCtrlChars</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#method_stripCtrlChars">Apache_Solr_Service::_stripCtrlChars()</a> in Service.php</div>
-							<div class="index-item-description">Replace control (non-printable) characters from string that are invalid to Solr's XML parser with a space.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__construct</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#method__construct">Apache_Solr_Service::__construct()</a> in Service.php</div>
-							<div class="index-item-description">Constructor. All parameters are optional and will take on default values  if not specified.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__construct</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Response.html#method__construct">Apache_Solr_HttpTransport_Response::__construct()</a> in Response.php</div>
-							<div class="index-item-description">Construct a HTTP transport response</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__construct</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_FileGetContents.html#method__construct">Apache_Solr_HttpTransport_FileGetContents::__construct()</a> in FileGetContents.php</div>
-							<div class="index-item-description">Initializes our reuseable get and post stream contexts</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__construct</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Curl.html#method__construct">Apache_Solr_HttpTransport_Curl::__construct()</a> in Curl.php</div>
-							<div class="index-item-description">Initializes a curl session</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__construct</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransportException.html#method__construct">Apache_Solr_HttpTransportException::__construct()</a> in HttpTransportException.php</div>
-							<div class="index-item-description">HttpTransportException Constructor</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__construct</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#method__construct">Apache_Solr_Response::__construct()</a> in Response.php</div>
-							<div class="index-item-description">Constructor. Takes the raw HTTP response body and the exploded HTTP headers</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__construct</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#method__construct">Apache_Solr_Service_Balancer::__construct()</a> in Balancer.php</div>
-							<div class="index-item-description">Constructor. Takes arrays of read and write service instances or descriptions</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__destruct</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Curl.html#method__destruct">Apache_Solr_HttpTransport_Curl::__destruct()</a> in Curl.php</div>
-							<div class="index-item-description">Closes a curl session</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__get</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#method__get">Apache_Solr_Response::__get()</a> in Response.php</div>
-							<div class="index-item-description">Magic get to expose the parsed data and to lazily load it</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__get</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#method__get">Apache_Solr_Document::__get()</a> in Document.php</div>
-							<div class="index-item-description">Magic get for field values</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__isset</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#method__isset">Apache_Solr_Document::__isset()</a> in Document.php</div>
-							<div class="index-item-description">Magic isset for fields values.  Do not call directly. Allows usage:</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__isset</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#method__isset">Apache_Solr_Response::__isset()</a> in Response.php</div>
-							<div class="index-item-description">Magic function for isset function on parsed data</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__set</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#method__set">Apache_Solr_Document::__set()</a> in Document.php</div>
-							<div class="index-item-description">Magic set for field values. Multi-valued fields should be set as arrays  or instead use the addField(...) function which will automatically  make sure the field is an array.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">__unset</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#method__unset">Apache_Solr_Document::__unset()</a> in Document.php</div>
-							<div class="index-item-description">Magic unset for field values. Do not call directly. Allows usage:</div>
-					</dd>
-		</dl>
-	<a name="a"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">a</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="method-title">add</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodadd">Apache_Solr_Service::add()</a> in Service.php</div>
-							<div class="index-item-description">Raw Add Method. Takes a raw post body and sends it to the update service.  Post body  should be a complete and well formed &quot;add&quot; xml document.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">add</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodadd">Apache_Solr_Service_Balancer::add()</a> in Balancer.php</div>
-							<div class="index-item-description">Raw Add Method. Takes a raw post body and sends it to the update service.  Post body  should be a complete and well formed &quot;add&quot; xml document.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">addDocument</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodaddDocument">Apache_Solr_Service_Balancer::addDocument()</a> in Balancer.php</div>
-							<div class="index-item-description">Add a Solr Document to the index</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">addDocument</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodaddDocument">Apache_Solr_Service::addDocument()</a> in Service.php</div>
-							<div class="index-item-description">Add a Solr Document to the index</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">addDocuments</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodaddDocuments">Apache_Solr_Service_Balancer::addDocuments()</a> in Balancer.php</div>
-							<div class="index-item-description">Add an array of Solr Documents to the index all at once</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">addDocuments</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodaddDocuments">Apache_Solr_Service::addDocuments()</a> in Service.php</div>
-							<div class="index-item-description">Add an array of Solr Documents to the index all at once</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">addField</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodaddField">Apache_Solr_Document::addField()</a> in Document.php</div>
-							<div class="index-item-description">Add a value to a multi-valued field</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">addReadService</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodaddReadService">Apache_Solr_Service_Balancer::addReadService()</a> in Balancer.php</div>
-							<div class="index-item-description">Adds a service instance or service descriptor (if it is already  not added)</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">addWriteService</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodaddWriteService">Apache_Solr_Service_Balancer::addWriteService()</a> in Balancer.php</div>
-							<div class="index-item-description">Adds a service instance or service descriptor (if it is already  not added)</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_Document
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html">Apache_Solr_Document</a> in Document.php</div>
-							<div class="index-item-description">Holds Key / Value pairs that represent a Solr Document along with any associated boost  values. Field values can be accessed by direct dereferencing such as:</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_Exception
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Exception.html">Apache_Solr_Exception</a> in Exception.php</div>
-							<div class="index-item-description">Copyright (c) 2007-2011, Servigistics, Inc.</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_HttpTransportException
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransportException.html">Apache_Solr_HttpTransportException</a> in HttpTransportException.php</div>
-							<div class="index-item-description">Copyright (c) 2007-2011, Servigistics, Inc.</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_HttpTransport_Abstract
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Abstract.html">Apache_Solr_HttpTransport_Abstract</a> in Abstract.php</div>
-							<div class="index-item-description">Convenience class that implements the transport implementation. Can be extended by</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_HttpTransport_Curl
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Curl.html">Apache_Solr_HttpTransport_Curl</a> in Curl.php</div>
-							<div class="index-item-description">A Curl based HTTP transport. Uses a single curl session for all requests.</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_HttpTransport_CurlNoReuse
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_CurlNoReuse.html">Apache_Solr_HttpTransport_CurlNoReuse</a> in CurlNoReuse.php</div>
-							<div class="index-item-description">An alternative Curl HTTP transport that opens and closes a curl session for  every request. This isn't the recommended way to use curl, but some version of  PHP have memory issues.</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_HttpTransport_FileGetContents
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_FileGetContents.html">Apache_Solr_HttpTransport_FileGetContents</a> in FileGetContents.php</div>
-							<div class="index-item-description">HTTP Transport implemenation that uses the builtin http URL wrappers and file_get_contents</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_HttpTransport_Interface
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Interface.html">Apache_Solr_HttpTransport_Interface</a> in Interface.php</div>
-							<div class="index-item-description">Interface that all Transport (HTTP Requester) implementations must implement. These</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_HttpTransport_Response
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Response.html">Apache_Solr_HttpTransport_Response</a> in Response.php</div>
-							<div class="index-item-description">Represents the required pieces of an HTTP response provided by HTTP transport</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_InvalidArgumentException
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_InvalidArgumentException.html">Apache_Solr_InvalidArgumentException</a> in InvalidArgumentException.php</div>
-							<div class="index-item-description">Copyright (c) 2007-2011, Servigistics, Inc.</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_NoServiceAvailableException
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_NoServiceAvailableException.html">Apache_Solr_NoServiceAvailableException</a> in NoServiceAvailableException.php</div>
-							<div class="index-item-description">Copyright (c) 2007-2011, Servigistics, Inc.</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_ParserException
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_ParserException.html">Apache_Solr_ParserException</a> in ParserException.php</div>
-							<div class="index-item-description">Copyright (c) 2007-2011, Servigistics, Inc.</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_Response
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html">Apache_Solr_Response</a> in Response.php</div>
-							<div class="index-item-description">Represents a Solr response.  Parses the raw response into a set of stdClass objects  and associative arrays for easy access.</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_Service
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html">Apache_Solr_Service</a> in Service.php</div>
-							<div class="index-item-description">Starting point for the Solr API. Represents a Solr server resource and has  methods for pinging, adding, deleting, committing, optimizing and searching.</div>
-					</dd>
-			<dt class="field">
-						Apache_Solr_Service_Balancer
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html">Apache_Solr_Service_Balancer</a> in Balancer.php</div>
-							<div class="index-item-description">Reference Implementation for using multiple Solr services in a distribution. Functionality</div>
-					</dd>
-			<dt class="field">
-						<span class="include-title">Abstract.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_HttpTransport---Abstract.php.html">Abstract.php</a> in Abstract.php</div>
-					</dd>
-		</dl>
-	<a name="b"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">b</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="include-title">Balancer.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_Service---Balancer.php.html">Balancer.php</a> in Balancer.php</div>
-					</dd>
-		</dl>
-	<a name="c"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">c</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="method-title">clear</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodclear">Apache_Solr_Document::clear()</a> in Document.php</div>
-							<div class="index-item-description">Clear all boosts and fields from this document</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">commit</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodcommit">Apache_Solr_Service_Balancer::commit()</a> in Balancer.php</div>
-							<div class="index-item-description">Send a commit command.  Will be synchronous unless both wait parameters are set  to false.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">commit</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodcommit">Apache_Solr_Service::commit()</a> in Service.php</div>
-							<div class="index-item-description">Send a commit command.  Will be synchronous unless both wait parameters are set to false.</div>
-					</dd>
-			<dt class="field">
-						<span class="include-title">Curl.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_HttpTransport---Curl.php.html">Curl.php</a> in Curl.php</div>
-					</dd>
-			<dt class="field">
-						<span class="include-title">CurlNoReuse.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_HttpTransport---CurlNoReuse.php.html">CurlNoReuse.php</a> in CurlNoReuse.php</div>
-					</dd>
-		</dl>
-	<a name="d"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">d</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="method-title">delete</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methoddelete">Apache_Solr_Service_Balancer::delete()</a> in Balancer.php</div>
-							<div class="index-item-description">Raw Delete Method. Takes a raw post body and sends it to the update service. Body should be  a complete and well formed &quot;delete&quot; xml document</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">delete</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methoddelete">Apache_Solr_Service::delete()</a> in Service.php</div>
-							<div class="index-item-description">Raw Delete Method. Takes a raw post body and sends it to the update service. Body should be  a complete and well formed &quot;delete&quot; xml document</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">deleteById</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methoddeleteById">Apache_Solr_Service_Balancer::deleteById()</a> in Balancer.php</div>
-							<div class="index-item-description">Create a delete document based on document ID</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">deleteById</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methoddeleteById">Apache_Solr_Service::deleteById()</a> in Service.php</div>
-							<div class="index-item-description">Create a delete document based on document ID</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">deleteByMultipleIds</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methoddeleteByMultipleIds">Apache_Solr_Service_Balancer::deleteByMultipleIds()</a> in Balancer.php</div>
-							<div class="index-item-description">Create and post a delete document based on multiple document IDs.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">deleteByMultipleIds</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methoddeleteByMultipleIds">Apache_Solr_Service::deleteByMultipleIds()</a> in Service.php</div>
-							<div class="index-item-description">Create and post a delete document based on multiple document IDs.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">deleteByQuery</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methoddeleteByQuery">Apache_Solr_Service_Balancer::deleteByQuery()</a> in Balancer.php</div>
-							<div class="index-item-description">Create a delete document based on a query and submit it</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">deleteByQuery</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methoddeleteByQuery">Apache_Solr_Service::deleteByQuery()</a> in Service.php</div>
-							<div class="index-item-description">Create a delete document based on a query and submit it</div>
-					</dd>
-			<dt class="field">
-						<span class="include-title">Document.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_Document.php.html">Document.php</a> in Document.php</div>
-					</dd>
-		</dl>
-	<a name="e"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">e</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="method-title">escape</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodescape">Apache_Solr_Service_Balancer::escape()</a> in Balancer.php</div>
-							<div class="index-item-description">Escape a value for special query characters such as ':', '(', ')', '*', '?', etc.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">escape</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodescape">Apache_Solr_Service::escape()</a> in Service.php</div>
-							<div class="index-item-description">Escape a value for special query characters such as ':', '(', ')', '*', '?', etc.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">escapePhrase</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodescapePhrase">Apache_Solr_Service_Balancer::escapePhrase()</a> in Balancer.php</div>
-							<div class="index-item-description">Escape a value meant to be contained in a phrase for special query characters</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">escapePhrase</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodescapePhrase">Apache_Solr_Service::escapePhrase()</a> in Service.php</div>
-							<div class="index-item-description">Escape a value meant to be contained in a phrase for special query characters</div>
-					</dd>
-			<dt class="field">
-						<span class="include-title">Exception.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_Exception.php.html">Exception.php</a> in Exception.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">extract</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodextract">Apache_Solr_Service_Balancer::extract()</a> in Balancer.php</div>
-							<div class="index-item-description">Use Solr Cell to extract document contents. See <a href="http://wiki.apache.org/solr/ExtractingRequestHandler">http://wiki.apache.org/solr/ExtractingRequestHandler</a> for information on how  to use Solr Cell and what parameters are available.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">extract</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodextract">Apache_Solr_Service::extract()</a> in Service.php</div>
-							<div class="index-item-description">Use Solr Cell to extract document contents. See <a href="http://wiki.apache.org/solr/ExtractingRequestHandler">http://wiki.apache.org/solr/ExtractingRequestHandler</a> for information on how  to use Solr Cell and what parameters are available.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">extractFromString</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodextractFromString">Apache_Solr_Service_Balancer::extractFromString()</a> in Balancer.php</div>
-							<div class="index-item-description">Use Solr Cell to extract document contents. See <a href="http://wiki.apache.org/solr/ExtractingRequestHandler">http://wiki.apache.org/solr/ExtractingRequestHandler</a> for information on how  to use Solr Cell and what parameters are available.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">extractFromString</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodextractFromString">Apache_Solr_Service::extractFromString()</a> in Service.php</div>
-							<div class="index-item-description">Use Solr Cell to extract document contents. See <a href="http://wiki.apache.org/solr/ExtractingRequestHandler">http://wiki.apache.org/solr/ExtractingRequestHandler</a> for information on how  to use Solr Cell and what parameters are available.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">extractFromUrl</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodextractFromUrl">Apache_Solr_Service::extractFromUrl()</a> in Service.php</div>
-							<div class="index-item-description">Use Solr Cell to extract document contents. See <a href="http://wiki.apache.org/solr/ExtractingRequestHandler">http://wiki.apache.org/solr/ExtractingRequestHandler</a> for information on how  to use Solr Cell and what parameters are available.</div>
-					</dd>
-			<dt class="field">
-						EXTRACT_SERVLET
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#constEXTRACT_SERVLET">Apache_Solr_Service::EXTRACT_SERVLET</a> in Service.php</div>
-					</dd>
-		</dl>
-	<a name="f"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">f</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="include-title">FileGetContents.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_HttpTransport---FileGetContents.php.html">FileGetContents.php</a> in FileGetContents.php</div>
-					</dd>
-		</dl>
-	<a name="g"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">g</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="method-title">getBody</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Response.html#methodgetBody">Apache_Solr_HttpTransport_Response::getBody()</a> in Response.php</div>
-							<div class="index-item-description">Get the raw response body</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getBoost</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodgetBoost">Apache_Solr_Document::getBoost()</a> in Document.php</div>
-							<div class="index-item-description">Get current document boost</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getCollapseSingleValueArrays</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodgetCollapseSingleValueArrays">Apache_Solr_Service::getCollapseSingleValueArrays()</a> in Service.php</div>
-							<div class="index-item-description">Get the current state of the collapse single value arrays flag.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getCreateDocuments</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodgetCreateDocuments">Apache_Solr_Service_Balancer::getCreateDocuments()</a> in Balancer.php</div>
-							<div class="index-item-description">Get the current state of teh create documents flag.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getCreateDocuments</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodgetCreateDocuments">Apache_Solr_Service::getCreateDocuments()</a> in Service.php</div>
-							<div class="index-item-description">Get the current state of teh create documents flag.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getDefaultStatusMessage</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Response.html#methodgetDefaultStatusMessage">Apache_Solr_HttpTransport_Response::getDefaultStatusMessage()</a> in Response.php</div>
-							<div class="index-item-description">Get the HTTP status message based on status code</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getDefaultTimeout</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Abstract.html#methodgetDefaultTimeout">Apache_Solr_HttpTransport_Abstract::getDefaultTimeout()</a> in Abstract.php</div>
-							<div class="index-item-description">Get the current default timeout setting (initially the default_socket_timeout ini setting)  in seconds</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getDefaultTimeout</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Interface.html#methodgetDefaultTimeout">Apache_Solr_HttpTransport_Interface::getDefaultTimeout()</a> in Interface.php</div>
-							<div class="index-item-description">Get the current default timeout for all HTTP requests</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getDefaultTimeout</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodgetDefaultTimeout">Apache_Solr_Service::getDefaultTimeout()</a> in Service.php</div>
-							<div class="index-item-description">Get the current default timeout setting (initially the default_socket_timeout ini setting)  in seconds</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getEncoding</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Response.html#methodgetEncoding">Apache_Solr_HttpTransport_Response::getEncoding()</a> in Response.php</div>
-							<div class="index-item-description">Get the charset encoding of the response body.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getEncoding</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#methodgetEncoding">Apache_Solr_Response::getEncoding()</a> in Response.php</div>
-							<div class="index-item-description">Get character encoding of this response. Should usually be utf-8, but just in case</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getField</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodgetField">Apache_Solr_Document::getField()</a> in Document.php</div>
-							<div class="index-item-description">Get field information</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getFieldBoost</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodgetFieldBoost">Apache_Solr_Document::getFieldBoost()</a> in Document.php</div>
-							<div class="index-item-description">Get the currently set field boost for a document field</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getFieldBoosts</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodgetFieldBoosts">Apache_Solr_Document::getFieldBoosts()</a> in Document.php</div>
-							<div class="index-item-description">Return current field boosts, indexed by field name</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getFieldNames</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodgetFieldNames">Apache_Solr_Document::getFieldNames()</a> in Document.php</div>
-							<div class="index-item-description">Get the names of all fields in this document</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getFieldValues</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodgetFieldValues">Apache_Solr_Document::getFieldValues()</a> in Document.php</div>
-							<div class="index-item-description">Get the values of all fields in this document</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getHost</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodgetHost">Apache_Solr_Service::getHost()</a> in Service.php</div>
-							<div class="index-item-description">Returns the set host</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getHttpStatus</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#methodgetHttpStatus">Apache_Solr_Response::getHttpStatus()</a> in Response.php</div>
-							<div class="index-item-description">Get the HTTP status code</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getHttpStatusMessage</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#methodgetHttpStatusMessage">Apache_Solr_Response::getHttpStatusMessage()</a> in Response.php</div>
-							<div class="index-item-description">Get the HTTP status message of the response</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getHttpTransport</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodgetHttpTransport">Apache_Solr_Service::getHttpTransport()</a> in Service.php</div>
-							<div class="index-item-description">Get the current configured HTTP Transport</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getIterator</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodgetIterator">Apache_Solr_Document::getIterator()</a> in Document.php</div>
-							<div class="index-item-description">IteratorAggregate implementation function. Allows usage:</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getMimeType</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Response.html#methodgetMimeType">Apache_Solr_HttpTransport_Response::getMimeType()</a> in Response.php</div>
-							<div class="index-item-description">Get the mimetype of the response body</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getNamedListTreatment</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodgetNamedListTreatment">Apache_Solr_Service::getNamedListTreatment()</a> in Service.php</div>
-							<div class="index-item-description">Get the current setting for named list treatment.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getPath</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodgetPath">Apache_Solr_Service::getPath()</a> in Service.php</div>
-							<div class="index-item-description">Get the set path.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getPort</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodgetPort">Apache_Solr_Service::getPort()</a> in Service.php</div>
-							<div class="index-item-description">Get the set port</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getRawResponse</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#methodgetRawResponse">Apache_Solr_Response::getRawResponse()</a> in Response.php</div>
-							<div class="index-item-description">Get the raw response as it was given to this object</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getResponse</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransportException.html#methodgetResponse">Apache_Solr_HttpTransportException::getResponse()</a> in HttpTransportException.php</div>
-							<div class="index-item-description">Get the response for which this exception was generated</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getStatusCode</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Response.html#methodgetStatusCode">Apache_Solr_HttpTransport_Response::getStatusCode()</a> in Response.php</div>
-							<div class="index-item-description">Get the status code of the response</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getStatusMessage</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Response.html#methodgetStatusMessage">Apache_Solr_HttpTransport_Response::getStatusMessage()</a> in Response.php</div>
-							<div class="index-item-description">Get the status message of the response</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">getType</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#methodgetType">Apache_Solr_Response::getType()</a> in Response.php</div>
-							<div class="index-item-description">Get content type of this Solr response</div>
-					</dd>
-		</dl>
-	<a name="h"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">h</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="include-title">HttpTransportException.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_HttpTransportException.php.html">HttpTransportException.php</a> in HttpTransportException.php</div>
-					</dd>
-		</dl>
-	<a name="i"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">i</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="include-title">Interface.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_HttpTransport---Interface.php.html">Interface.php</a> in Interface.php</div>
-					</dd>
-			<dt class="field">
-						<span class="include-title">InvalidArgumentException.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_InvalidArgumentException.php.html">InvalidArgumentException.php</a> in InvalidArgumentException.php</div>
-					</dd>
-		</dl>
-	<a name="m"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">m</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						METHOD_GET
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#constMETHOD_GET">Apache_Solr_Service::METHOD_GET</a> in Service.php</div>
-							<div class="index-item-description">Search HTTP Methods</div>
-					</dd>
-			<dt class="field">
-						METHOD_POST
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#constMETHOD_POST">Apache_Solr_Service::METHOD_POST</a> in Service.php</div>
-					</dd>
-		</dl>
-	<a name="n"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">n</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						NAMED_LIST_FLAT
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#constNAMED_LIST_FLAT">Apache_Solr_Service::NAMED_LIST_FLAT</a> in Service.php</div>
-							<div class="index-item-description">NamedList Treatment constants</div>
-					</dd>
-			<dt class="field">
-						NAMED_LIST_MAP
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#constNAMED_LIST_MAP">Apache_Solr_Service::NAMED_LIST_MAP</a> in Service.php</div>
-					</dd>
-			<dt class="field">
-						<span class="include-title">NoServiceAvailableException.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_NoServiceAvailableException.php.html">NoServiceAvailableException.php</a> in NoServiceAvailableException.php</div>
-					</dd>
-		</dl>
-	<a name="o"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">o</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="method-title">optimize</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodoptimize">Apache_Solr_Service::optimize()</a> in Service.php</div>
-							<div class="index-item-description">Send an optimize command.  Will be synchronous unless both wait parameters are set  to false.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">optimize</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodoptimize">Apache_Solr_Service_Balancer::optimize()</a> in Balancer.php</div>
-							<div class="index-item-description">Send an optimize command.  Will be synchronous unless both wait parameters are set  to false.</div>
-					</dd>
-		</dl>
-	<a name="p"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">p</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="include-title">ParserException.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_ParserException.php.html">ParserException.php</a> in ParserException.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">performGetRequest</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_CurlNoReuse.html#methodperformGetRequest">Apache_Solr_HttpTransport_CurlNoReuse::performGetRequest()</a> in CurlNoReuse.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">performGetRequest</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Curl.html#methodperformGetRequest">Apache_Solr_HttpTransport_Curl::performGetRequest()</a> in Curl.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">performGetRequest</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_FileGetContents.html#methodperformGetRequest">Apache_Solr_HttpTransport_FileGetContents::performGetRequest()</a> in FileGetContents.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">performGetRequest</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Interface.html#methodperformGetRequest">Apache_Solr_HttpTransport_Interface::performGetRequest()</a> in Interface.php</div>
-							<div class="index-item-description">Perform a GET HTTP operation with an optional timeout and return the response  contents, use getLastResponseHeaders to retrieve HTTP headers</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">performHeadRequest</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Interface.html#methodperformHeadRequest">Apache_Solr_HttpTransport_Interface::performHeadRequest()</a> in Interface.php</div>
-							<div class="index-item-description">Perform a HEAD HTTP operation with an optional timeout and return the response  headers - NOTE: head requests have no response body</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">performHeadRequest</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_FileGetContents.html#methodperformHeadRequest">Apache_Solr_HttpTransport_FileGetContents::performHeadRequest()</a> in FileGetContents.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">performHeadRequest</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_CurlNoReuse.html#methodperformHeadRequest">Apache_Solr_HttpTransport_CurlNoReuse::performHeadRequest()</a> in CurlNoReuse.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">performHeadRequest</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Curl.html#methodperformHeadRequest">Apache_Solr_HttpTransport_Curl::performHeadRequest()</a> in Curl.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">performPostRequest</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_CurlNoReuse.html#methodperformPostRequest">Apache_Solr_HttpTransport_CurlNoReuse::performPostRequest()</a> in CurlNoReuse.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">performPostRequest</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Interface.html#methodperformPostRequest">Apache_Solr_HttpTransport_Interface::performPostRequest()</a> in Interface.php</div>
-							<div class="index-item-description">Perform a POST HTTP operation with an optional timeout and return the response  contents, use getLastResponseHeaders to retrieve HTTP headers</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">performPostRequest</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Curl.html#methodperformPostRequest">Apache_Solr_HttpTransport_Curl::performPostRequest()</a> in Curl.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">performPostRequest</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_FileGetContents.html#methodperformPostRequest">Apache_Solr_HttpTransport_FileGetContents::performPostRequest()</a> in FileGetContents.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">phrase</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodphrase">Apache_Solr_Service::phrase()</a> in Service.php</div>
-							<div class="index-item-description">Convenience function for creating phrase syntax from a value</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">phrase</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodphrase">Apache_Solr_Service_Balancer::phrase()</a> in Balancer.php</div>
-							<div class="index-item-description">Convenience function for creating phrase syntax from a value</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">ping</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodping">Apache_Solr_Service::ping()</a> in Service.php</div>
-							<div class="index-item-description">Call the /admin/ping servlet, can be used to quickly tell if a connection to the  server is able to be made.</div>
-					</dd>
-			<dt class="field">
-						PING_SERVLET
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#constPING_SERVLET">Apache_Solr_Service::PING_SERVLET</a> in Service.php</div>
-							<div class="index-item-description">Servlet mappings</div>
-					</dd>
-		</dl>
-	<a name="r"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">r</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="include-title">Response.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_HttpTransport---Response.php.html">Response.php</a> in Response.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">removeReadService</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodremoveReadService">Apache_Solr_Service_Balancer::removeReadService()</a> in Balancer.php</div>
-							<div class="index-item-description">Removes a service instance or descriptor from the available services</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">removeWriteService</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodremoveWriteService">Apache_Solr_Service_Balancer::removeWriteService()</a> in Balancer.php</div>
-							<div class="index-item-description">Removes a service instance or descriptor from the available services</div>
-					</dd>
-			<dt class="field">
-						<span class="include-title">Response.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_Response.php.html">Response.php</a> in Response.php</div>
-					</dd>
-		</dl>
-	<a name="s"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">s</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="method-title">search</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodsearch">Apache_Solr_Service::search()</a> in Service.php</div>
-							<div class="index-item-description">Simple Search interface</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">search</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodsearch">Apache_Solr_Service_Balancer::search()</a> in Balancer.php</div>
-							<div class="index-item-description">Simple Search interface</div>
-					</dd>
-			<dt class="field">
-						SEARCH_SERVLET
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#constSEARCH_SERVLET">Apache_Solr_Service::SEARCH_SERVLET</a> in Service.php</div>
-					</dd>
-			<dt class="field">
-						<span class="include-title">Service.php</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/_Service.php.html">Service.php</a> in Service.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setBoost</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodsetBoost">Apache_Solr_Document::setBoost()</a> in Document.php</div>
-							<div class="index-item-description">Set document boost factor</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setCollapseSingleValueArrays</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodsetCollapseSingleValueArrays">Apache_Solr_Service::setCollapseSingleValueArrays()</a> in Service.php</div>
-							<div class="index-item-description">Set the collapse single value arrays flag.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setCreateDocuments</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodsetCreateDocuments">Apache_Solr_Service::setCreateDocuments()</a> in Service.php</div>
-							<div class="index-item-description">Set the create documents flag. This determines whether <a href="Apache/Solr/Apache_Solr_Response.html">Apache_Solr_Response</a> objects will  parse the response and create <a href="Apache/Solr/Apache_Solr_Document.html">Apache_Solr_Document</a> instances in place.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setCreateDocuments</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodsetCreateDocuments">Apache_Solr_Service_Balancer::setCreateDocuments()</a> in Balancer.php</div>
-							<div class="index-item-description">Set the create documents flag. This determines whether <a href="Apache/Solr/Apache_Solr_Response.html">Apache_Solr_Response</a> objects will  parse the response and create <a href="Apache/Solr/Apache_Solr_Document.html">Apache_Solr_Document</a> instances in place.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setDefaultTimeout</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Abstract.html#methodsetDefaultTimeout">Apache_Solr_HttpTransport_Abstract::setDefaultTimeout()</a> in Abstract.php</div>
-							<div class="index-item-description">Set the current default timeout for all HTTP requests</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setDefaultTimeout</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodsetDefaultTimeout">Apache_Solr_Service::setDefaultTimeout()</a> in Service.php</div>
-							<div class="index-item-description">Set the default timeout for all calls that aren't passed a specific timeout</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setDefaultTimeout</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Interface.html#methodsetDefaultTimeout">Apache_Solr_HttpTransport_Interface::setDefaultTimeout()</a> in Interface.php</div>
-							<div class="index-item-description">Set the current default timeout for all HTTP requests</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setField</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodsetField">Apache_Solr_Document::setField()</a> in Document.php</div>
-							<div class="index-item-description">Set a field value. Multi-valued fields should be set as arrays  or instead use the addField(...) function which will automatically  make sure the field is an array.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setFieldBoost</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodsetFieldBoost">Apache_Solr_Document::setFieldBoost()</a> in Document.php</div>
-							<div class="index-item-description">Set the field boost for a document field</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setHost</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodsetHost">Apache_Solr_Service::setHost()</a> in Service.php</div>
-							<div class="index-item-description">Set the host used. If empty will fallback to constants</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setHttpTransport</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodsetHttpTransport">Apache_Solr_Service::setHttpTransport()</a> in Service.php</div>
-							<div class="index-item-description">Set the HTTP Transport implemenation that will be used for all HTTP requests</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setMultiValue</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#methodsetMultiValue">Apache_Solr_Document::setMultiValue()</a> in Document.php</div>
-							<div class="index-item-description">Handle the array manipulation for a multi-valued field</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setNamedListTreatment</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodsetNamedListTreatment">Apache_Solr_Service::setNamedListTreatment()</a> in Service.php</div>
-							<div class="index-item-description">Set how NamedLists should be formatted in the response data. This mainly effects  the facet counts format.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setPath</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodsetPath">Apache_Solr_Service::setPath()</a> in Service.php</div>
-							<div class="index-item-description">Set the path used. If empty will fallback to constants</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setPort</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodsetPort">Apache_Solr_Service::setPort()</a> in Service.php</div>
-							<div class="index-item-description">Set the port used. If empty will fallback to constants</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setQueryDelimiter</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodsetQueryDelimiter">Apache_Solr_Service::setQueryDelimiter()</a> in Service.php</div>
-							<div class="index-item-description">Set the string used to separate the path form the query string.</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setQueryStringDelimiter</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodsetQueryStringDelimiter">Apache_Solr_Service::setQueryStringDelimiter()</a> in Service.php</div>
-							<div class="index-item-description">Set the string used to separate the parameters in thequery string  Defaulted to '&amp;'</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setReadPingTimeout</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodsetReadPingTimeout">Apache_Solr_Service_Balancer::setReadPingTimeout()</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setUseBackoff</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodsetUseBackoff">Apache_Solr_Service_Balancer::setUseBackoff()</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						<span class="method-title">setWritePingTimeout</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodsetWritePingTimeout">Apache_Solr_Service_Balancer::setWritePingTimeout()</a> in Balancer.php</div>
-					</dd>
-			<dt class="field">
-						SOLR_WRITER
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#constSOLR_WRITER">Apache_Solr_Service::SOLR_WRITER</a> in Service.php</div>
-							<div class="index-item-description">Response writer we'll request - JSON. See http://code.google.com/p/solr-php-client/issues/detail?id=6#c1 for reasoning</div>
-					</dd>
-			<dt class="field">
-						SVN_ID
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#constSVN_ID">Apache_Solr_Service_Balancer::SVN_ID</a> in Balancer.php</div>
-							<div class="index-item-description">SVN ID meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_ID
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Curl.html#constSVN_ID">Apache_Solr_HttpTransport_Curl::SVN_ID</a> in Curl.php</div>
-							<div class="index-item-description">SVN ID meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_ID
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#constSVN_ID">Apache_Solr_Service::SVN_ID</a> in Service.php</div>
-							<div class="index-item-description">SVN ID meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_ID
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#constSVN_ID">Apache_Solr_Response::SVN_ID</a> in Response.php</div>
-							<div class="index-item-description">SVN ID meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_ID
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_ParserException.html#constSVN_ID">Apache_Solr_ParserException::SVN_ID</a> in ParserException.php</div>
-							<div class="index-item-description">SVN ID meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_ID
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_InvalidArgumentException.html#constSVN_ID">Apache_Solr_InvalidArgumentException::SVN_ID</a> in InvalidArgumentException.php</div>
-							<div class="index-item-description">SVN ID meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_ID
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_FileGetContents.html#constSVN_ID">Apache_Solr_HttpTransport_FileGetContents::SVN_ID</a> in FileGetContents.php</div>
-							<div class="index-item-description">SVN ID meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_ID
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransportException.html#constSVN_ID">Apache_Solr_HttpTransportException::SVN_ID</a> in HttpTransportException.php</div>
-							<div class="index-item-description">SVN ID meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_ID
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Exception.html#constSVN_ID">Apache_Solr_Exception::SVN_ID</a> in Exception.php</div>
-							<div class="index-item-description">SVN ID meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_ID
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_NoServiceAvailableException.html#constSVN_ID">Apache_Solr_NoServiceAvailableException::SVN_ID</a> in NoServiceAvailableException.php</div>
-							<div class="index-item-description">SVN ID meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_ID
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_CurlNoReuse.html#constSVN_ID">Apache_Solr_HttpTransport_CurlNoReuse::SVN_ID</a> in CurlNoReuse.php</div>
-							<div class="index-item-description">SVN ID meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_ID
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#constSVN_ID">Apache_Solr_Document::SVN_ID</a> in Document.php</div>
-							<div class="index-item-description">SVN ID meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_REVISION
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#constSVN_REVISION">Apache_Solr_Service::SVN_REVISION</a> in Service.php</div>
-							<div class="index-item-description">SVN Revision meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_REVISION
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Document.html#constSVN_REVISION">Apache_Solr_Document::SVN_REVISION</a> in Document.php</div>
-							<div class="index-item-description">SVN Revision meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_REVISION
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Exception.html#constSVN_REVISION">Apache_Solr_Exception::SVN_REVISION</a> in Exception.php</div>
-							<div class="index-item-description">SVN Revision meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_REVISION
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_FileGetContents.html#constSVN_REVISION">Apache_Solr_HttpTransport_FileGetContents::SVN_REVISION</a> in FileGetContents.php</div>
-							<div class="index-item-description">SVN Revision meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_REVISION
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransportException.html#constSVN_REVISION">Apache_Solr_HttpTransportException::SVN_REVISION</a> in HttpTransportException.php</div>
-							<div class="index-item-description">SVN Revision meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_REVISION
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Response.html#constSVN_REVISION">Apache_Solr_Response::SVN_REVISION</a> in Response.php</div>
-							<div class="index-item-description">SVN Revision meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_REVISION
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_CurlNoReuse.html#constSVN_REVISION">Apache_Solr_HttpTransport_CurlNoReuse::SVN_REVISION</a> in CurlNoReuse.php</div>
-							<div class="index-item-description">SVN Revision meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_REVISION
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_NoServiceAvailableException.html#constSVN_REVISION">Apache_Solr_NoServiceAvailableException::SVN_REVISION</a> in NoServiceAvailableException.php</div>
-							<div class="index-item-description">SVN Revision meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_REVISION
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#constSVN_REVISION">Apache_Solr_Service_Balancer::SVN_REVISION</a> in Balancer.php</div>
-							<div class="index-item-description">SVN Revision meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_REVISION
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_HttpTransport_Curl.html#constSVN_REVISION">Apache_Solr_HttpTransport_Curl::SVN_REVISION</a> in Curl.php</div>
-							<div class="index-item-description">SVN Revision meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_REVISION
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_InvalidArgumentException.html#constSVN_REVISION">Apache_Solr_InvalidArgumentException::SVN_REVISION</a> in InvalidArgumentException.php</div>
-							<div class="index-item-description">SVN Revision meta data for this class</div>
-					</dd>
-			<dt class="field">
-						SVN_REVISION
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_ParserException.html#constSVN_REVISION">Apache_Solr_ParserException::SVN_REVISION</a> in ParserException.php</div>
-							<div class="index-item-description">SVN Revision meta data for this class</div>
-					</dd>
-		</dl>
-	<a name="t"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">t</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						<span class="method-title">threads</span>
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#methodthreads">Apache_Solr_Service::threads()</a> in Service.php</div>
-							<div class="index-item-description">Call the /admin/threads servlet and retrieve information about all threads in the  Solr servlet's thread group. Useful for diagnostics.</div>
-					</dd>
-			<dt class="field">
-						THREADS_SERVLET
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#constTHREADS_SERVLET">Apache_Solr_Service::THREADS_SERVLET</a> in Service.php</div>
-					</dd>
-		</dl>
-	<a name="u"></a>
-	<div class="index-letter-section">
-		<div style="float: left" class="index-letter-title">u</div>
-		<div style="float: right"><a href="#top">top</a></div>
-		<div style="clear: both"></div>
-	</div>
-	<dl>
-			<dt class="field">
-						UPDATE_SERVLET
-					</dt>
-		<dd class="index-item-body">
-			<div class="index-item-details"><a href="Apache/Solr/Apache_Solr_Service.html#constUPDATE_SERVLET">Apache_Solr_Service::UPDATE_SERVLET</a> in Service.php</div>
-					</dd>
-		</dl>
-
-<div class="index-letter-menu">
-	<a class="index-letter" href="elementindex_Apache.html#a">a</a>
-	<a class="index-letter" href="elementindex_Apache.html#b">b</a>
-	<a class="index-letter" href="elementindex_Apache.html#c">c</a>
-	<a class="index-letter" href="elementindex_Apache.html#d">d</a>
-	<a class="index-letter" href="elementindex_Apache.html#e">e</a>
-	<a class="index-letter" href="elementindex_Apache.html#f">f</a>
-	<a class="index-letter" href="elementindex_Apache.html#g">g</a>
-	<a class="index-letter" href="elementindex_Apache.html#h">h</a>
-	<a class="index-letter" href="elementindex_Apache.html#i">i</a>
-	<a class="index-letter" href="elementindex_Apache.html#m">m</a>
-	<a class="index-letter" href="elementindex_Apache.html#n">n</a>
-	<a class="index-letter" href="elementindex_Apache.html#o">o</a>
-	<a class="index-letter" href="elementindex_Apache.html#p">p</a>
-	<a class="index-letter" href="elementindex_Apache.html#r">r</a>
-	<a class="index-letter" href="elementindex_Apache.html#s">s</a>
-	<a class="index-letter" href="elementindex_Apache.html#t">t</a>
-	<a class="index-letter" href="elementindex_Apache.html#u">u</a>
-	<a class="index-letter" href="elementindex_Apache.html#_">_</a>
-</div>	</body>
-</html>

+ 0 - 95
SolrPhpClient/phpdocs/errors.html

@@ -1,95 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-  <html xmlns="http://www.w3.org/1999/xhtml">
-		<head>
-			<!-- template designed by Marco Von Ballmoos -->
-			<title>phpDocumentor Parser Errors and Warnings</title>
-			<link rel="stylesheet" href="media/stylesheet.css" />
-			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-		</head>
-		<body>
-						<a href="#Post-parsing">Post-parsing</a><br>
-<a href="#Balancer.php">Balancer.php</a><br>
-<a href="#Curl.php">Curl.php</a><br>
-<a href="#CurlNoReuse.php">CurlNoReuse.php</a><br>
-<a href="#Document.php">Document.php</a><br>
-<a href="#Exception.php">Exception.php</a><br>
-<a href="#FileGetContents.php">FileGetContents.php</a><br>
-<a href="#HttpTransportException.php">HttpTransportException.php</a><br>
-<a href="#Interface.php">Interface.php</a><br>
-<a href="#InvalidArgumentException.php">InvalidArgumentException.php</a><br>
-<a href="#NoServiceAvailableException.php">NoServiceAvailableException.php</a><br>
-<a href="#ParserException.php">ParserException.php</a><br>
-<a href="#Response.php">Response.php</a><br>
-<a href="#Service.php">Service.php</a><br>
-<a name="Abstract.php"></a>
-<h1>Abstract.php</h1>
-<h2>Warnings:</h2><br>
-<b>Warning on line 43</b> - no @package tag was used in a DocBlock for class Apache_Solr_HttpTransport_Abstract<br>
-<a name="Balancer.php"></a>
-<h1>Balancer.php</h1>
-<h2>Warnings:</h2><br>
-<b>Warning on line 40</b> - Page-level DocBlock precedes "require_once dirname(dirname(__FILE__)).'/Service.php'", use another DocBlock to document the source element<br>
-<b>Warning on line 51</b> - no @package tag was used in a DocBlock for class Apache_Solr_Service_Balancer<br>
-<a name="Curl.php"></a>
-<h1>Curl.php</h1>
-<h2>Warnings:</h2><br>
-<b>Warning on line 39</b> - Page-level DocBlock precedes "require_once dirname(__FILE__).'/Abstract.php'", use another DocBlock to document the source element<br>
-<b>Warning on line 45</b> - no @package tag was used in a DocBlock for class Apache_Solr_HttpTransport_Curl<br>
-<a name="CurlNoReuse.php"></a>
-<h1>CurlNoReuse.php</h1>
-<h2>Warnings:</h2><br>
-<b>Warning on line 39</b> - Page-level DocBlock precedes "require_once dirname(__FILE__).'/Abstract.php'", use another DocBlock to document the source element<br>
-<b>Warning on line 47</b> - no @package tag was used in a DocBlock for class Apache_Solr_HttpTransport_CurlNoReuse<br>
-<a name="Document.php"></a>
-<h1>Document.php</h1>
-<h2>Warnings:</h2><br>
-<b>Warning on line 58</b> - no @package tag was used in a DocBlock for class Apache_Solr_Document<br>
-<h2>Errors:</h2><br>
-<b>Error on line 57</b> - Unclosed code tag in DocBlock, parsing will be incorrect<br>
-<a name="Exception.php"></a>
-<h1>Exception.php</h1>
-<h2>Warnings:</h2><br>
-<b>Warning on line 39</b> - DocBlock would be page-level, but precedes class "Apache_Solr_Exception", use another DocBlock to document the file<br>
-<a name="FileGetContents.php"></a>
-<h1>FileGetContents.php</h1>
-<h2>Warnings:</h2><br>
-<b>Warning on line 39</b> - Page-level DocBlock precedes "require_once dirname(__FILE__).'/Abstract.php'", use another DocBlock to document the source element<br>
-<b>Warning on line 45</b> - no @package tag was used in a DocBlock for class Apache_Solr_HttpTransport_FileGetContents<br>
-<a name="HttpTransportException.php"></a>
-<h1>HttpTransportException.php</h1>
-<h2>Warnings:</h2><br>
-<b>Warning on line 39</b> - DocBlock would be page-level, but precedes class "Apache_Solr_HttpTransportException", use another DocBlock to document the file<br>
-<a name="Interface.php"></a>
-<h1>Interface.php</h1>
-<h2>Warnings:</h2><br>
-<b>Warning on line 39</b> - Page-level DocBlock precedes "require_once dirname(__FILE__).'/Response.php'", use another DocBlock to document the source element<br>
-<b>Warning on line 47</b> - no @package tag was used in a DocBlock for interface Apache_Solr_HttpTransport_Interface<br>
-<a name="InvalidArgumentException.php"></a>
-<h1>InvalidArgumentException.php</h1>
-<h2>Warnings:</h2><br>
-<b>Warning on line 39</b> - DocBlock would be page-level, but precedes class "Apache_Solr_InvalidArgumentException", use another DocBlock to document the file<br>
-<a name="NoServiceAvailableException.php"></a>
-<h1>NoServiceAvailableException.php</h1>
-<h2>Warnings:</h2><br>
-<b>Warning on line 39</b> - DocBlock would be page-level, but precedes class "Apache_Solr_NoServiceAvailableException", use another DocBlock to document the file<br>
-<a name="ParserException.php"></a>
-<h1>ParserException.php</h1>
-<h2>Warnings:</h2><br>
-<b>Warning on line 39</b> - DocBlock would be page-level, but precedes class "Apache_Solr_ParserException", use another DocBlock to document the file<br>
-<a name="Response.php"></a>
-<h1>Response.php</h1>
-<h2>Warnings:</h2><br>
-<b>Warning on line 38</b> - Page-level DocBlock precedes "require_once dirname(__FILE__).'/ParserException.php'", use another DocBlock to document the source element<br>
-<b>Warning on line 44</b> - no @package tag was used in a DocBlock for class Apache_Solr_HttpTransport_Response<br>
-<b>Warning on line 48</b> - no @package tag was used in a DocBlock for class Apache_Solr_Response<br>
-<a name="Service.php"></a>
-<h1>Service.php</h1>
-<h2>Warnings:</h2><br>
-<b>Warning on line 40</b> - Page-level DocBlock precedes "require_once dirname(__FILE__).'/Exception.php'", use another DocBlock to document the source element<br>
-<b>Warning on line 86</b> - no @package tag was used in a DocBlock for class Apache_Solr_Service<br>
-	<p class="notes" id="credit">
-		Documentation generated on Wed, 04 May 2011 11:01:19 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
-	</p>
-	</body>
-</html>

+ 0 - 24
SolrPhpClient/phpdocs/index.html

@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html 
-     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//FR"
-     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
-   <html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-	<!-- Generated by phpDocumentor on Wed, 04 May 2011 11:01:08 -0400  -->
-  <title>Generated Documentation</title>
-  <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-</head>
-
-<FRAMESET rows='120,*'>
-	<FRAME src='packages.html' name='left_top' frameborder="1" bordercolor="#999999">
-	<FRAMESET cols='25%,*'>
-		<FRAME src='li_Apache.html' name='left_bottom' frameborder="1" bordercolor="#999999">
-		<FRAME src='blank.html' name='right' frameborder="1" bordercolor="#999999">
-	</FRAMESET>
-	<NOFRAMES>
-		<H2>Frame Alert</H2>
-		<P>This document is designed to be viewed using the frames feature.
-		If you see this message, you are using a non-frame-capable web client.</P>
-	</NOFRAMES>
-</FRAMESET>
-</HTML>

+ 0 - 72
SolrPhpClient/phpdocs/li_Apache.html

@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-  <html xmlns="http://www.w3.org/1999/xhtml">
-		<head>
-			<!-- template designed by Marco Von Ballmoos -->
-			<title></title>
-			<link rel="stylesheet" href="media/stylesheet.css" />
-			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-		</head>
-		<body>
-						<div class="package-title">Apache</div>
-<div class="package-details">
-			
-	<dl class="tree">
-		
-		<dt class="folder-title">Description</dt>
-		<dd>
-			<a href='classtrees_Apache.html' target='right'>Class trees</a><br />
-			<a href='elementindex_Apache.html' target='right'>Index of elements</a><br />
-							<a href="todolist.html" target="right">Todo List</a><br />
-					</dd>
-	
-							
-							
-																												
-						
-							
-											
-				<dt class="sub-package">Solr</dt>
-				<dd>
-					<dl class="tree">
-																			<dt class="folder-title">Classes</dt>
-															<dd><a href='Apache/Solr/Apache_Solr_Document.html' target='right'>Apache_Solr_Document</a></dd>
-															<dd><a href='Apache/Solr/Apache_Solr_Exception.html' target='right'>Apache_Solr_Exception</a></dd>
-															<dd><a href='Apache/Solr/Apache_Solr_HttpTransportException.html' target='right'>Apache_Solr_HttpTransportException</a></dd>
-															<dd><a href='Apache/Solr/Apache_Solr_HttpTransport_Abstract.html' target='right'>Apache_Solr_HttpTransport_Abstract</a></dd>
-															<dd><a href='Apache/Solr/Apache_Solr_HttpTransport_Curl.html' target='right'>Apache_Solr_HttpTransport_Curl</a></dd>
-															<dd><a href='Apache/Solr/Apache_Solr_HttpTransport_CurlNoReuse.html' target='right'>Apache_Solr_HttpTransport_CurlNoReuse</a></dd>
-															<dd><a href='Apache/Solr/Apache_Solr_HttpTransport_FileGetContents.html' target='right'>Apache_Solr_HttpTransport_FileGetContents</a></dd>
-															<dd><a href='Apache/Solr/Apache_Solr_HttpTransport_Interface.html' target='right'>Apache_Solr_HttpTransport_Interface</a></dd>
-															<dd><a href='Apache/Solr/Apache_Solr_HttpTransport_Response.html' target='right'>Apache_Solr_HttpTransport_Response</a></dd>
-															<dd><a href='Apache/Solr/Apache_Solr_InvalidArgumentException.html' target='right'>Apache_Solr_InvalidArgumentException</a></dd>
-															<dd><a href='Apache/Solr/Apache_Solr_NoServiceAvailableException.html' target='right'>Apache_Solr_NoServiceAvailableException</a></dd>
-															<dd><a href='Apache/Solr/Apache_Solr_ParserException.html' target='right'>Apache_Solr_ParserException</a></dd>
-															<dd><a href='Apache/Solr/Apache_Solr_Response.html' target='right'>Apache_Solr_Response</a></dd>
-															<dd><a href='Apache/Solr/Apache_Solr_Service.html' target='right'>Apache_Solr_Service</a></dd>
-															<dd><a href='Apache/Solr/Apache_Solr_Service_Balancer.html' target='right'>Apache_Solr_Service_Balancer</a></dd>
-																																<dt class="folder-title">Files</dt>
-															<dd><a href='Apache/Solr/_HttpTransport---Abstract.php.html' target='right'>Abstract.php</a></dd>
-															<dd><a href='Apache/Solr/_Service---Balancer.php.html' target='right'>Balancer.php</a></dd>
-															<dd><a href='Apache/Solr/_HttpTransport---Curl.php.html' target='right'>Curl.php</a></dd>
-															<dd><a href='Apache/Solr/_HttpTransport---CurlNoReuse.php.html' target='right'>CurlNoReuse.php</a></dd>
-															<dd><a href='Apache/Solr/_Document.php.html' target='right'>Document.php</a></dd>
-															<dd><a href='Apache/Solr/_Exception.php.html' target='right'>Exception.php</a></dd>
-															<dd><a href='Apache/Solr/_HttpTransport---FileGetContents.php.html' target='right'>FileGetContents.php</a></dd>
-															<dd><a href='Apache/Solr/_HttpTransportException.php.html' target='right'>HttpTransportException.php</a></dd>
-															<dd><a href='Apache/Solr/_HttpTransport---Interface.php.html' target='right'>Interface.php</a></dd>
-															<dd><a href='Apache/Solr/_InvalidArgumentException.php.html' target='right'>InvalidArgumentException.php</a></dd>
-															<dd><a href='Apache/Solr/_NoServiceAvailableException.php.html' target='right'>NoServiceAvailableException.php</a></dd>
-															<dd><a href='Apache/Solr/_ParserException.php.html' target='right'>ParserException.php</a></dd>
-															<dd><a href='Apache/Solr/_Response.php.html' target='right'>Response.php</a></dd>
-															<dd><a href='Apache/Solr/_HttpTransport---Response.php.html' target='right'>Response.php</a></dd>
-															<dd><a href='Apache/Solr/_Service.php.html' target='right'>Service.php</a></dd>
-																		</dl>
-				</dd>
-								
-						
-			</dl>
-</div>
-<p class="notes"><a href="http://www.phpdoc.org" target="_blank">phpDocumentor v <span class="field">1.4.3</span></a></p>
-</BODY>
-</HTML>

+ 0 - 32
SolrPhpClient/phpdocs/media/banner.css

@@ -1,32 +0,0 @@
-body 
-{ 
-	background-color: #DDDDDD;
-	margin: 0px; 
-	padding: 0px;
-}
-
-/* Banner (top bar) classes */
-
-.banner {  }
-
-.banner-menu 
-{ 
-	clear: both;
-	padding: .5em;
-	border-top: 2px solid #999999;	
-}
-
-.banner-title 
-{ 
-	text-align: right;
-	font-size: 20pt;
-	font-weight: bold;
-	margin: .2em;
-}
-
-.package-selector 
-{ 
-	background-color: #CCCCCC;
-	border: 1px solid black;
-	color: blue;
-}

+ 0 - 142
SolrPhpClient/phpdocs/media/stylesheet.css

@@ -1,142 +0,0 @@
-a { color: #0000FF; text-decoration: none; }
-a:hover { color: #FF0000; text-decoration: underline; }
-a:active { color: #FF0000; text-decoration: underline; }
-
-body { background-color: #EEEEEE; font-family: Verdana, Arial, sans-serif }
-body, table { font-size: 10pt }
-a img { border: 0px; }
-dd { margin-left: 0px; padding-left: 1em; }
-
-/* Page layout/boxes */
-
-.info-box {}
-.info-box-title { margin: 1em 0em 0em 0em; padding: .25em; font-weight: normal; font-size: 14pt; border: 2px solid #999999; background-color: #DDDDDD }
-.info-box-body { border: 1px solid #999999; padding: .5em; background-color: #F8F8F8; }
-.nav-bar { font-size: 8pt; white-space: nowrap; text-align: right; padding: .2em; margin: 0em 0em 1em 0em; }
-
-.oddrow { background-color: #DDDDDD; border: 1px solid #999999; padding: .5em; margin-bottom: 1em}
-.evenrow { background-color: #DDDDDD; border: 1px solid #999999; padding: .5em; margin-bottom: 1em}
-
-.page-body { max-width: 800px; margin: auto; }
-.tree dl { margin: 0px }
-
-/* Index formatting classes */
-
-.index-item-body { margin-top: .5em; margin-bottom: .5em}
-.index-item-description { margin-top: .25em }
-.index-item-details { font-weight: normal; font-style: italic; font-size: 8pt }
-.index-letter-section { background-color: #EEEEEE; border: 1px dotted #999999; padding: .5em; margin-bottom: 1em}
-.index-letter-title { font-size: 12pt; font-weight: bold }
-.index-letter-menu { text-align: center; margin: 1em }
-.index-letter { font-size: 12pt }
-
-/* Docbook classes */
-
-.description {}
-.short-description { font-weight: bold; color: #666666; }
-.tags {	padding-left: 0em; margin-left: 3em; color: #666666; list-style-type: square; }
-.parameters {	padding-left: 0em; margin-left: 3em; font-style: italic; list-style-type: square; }
-.redefinitions { font-size: 8pt; padding-left: 0em; margin-left: 2em; }
-.package {  }
-.package-title { font-weight: bold; font-size: 14pt; border-bottom: 1px solid black }
-.package-details { font-size: 85%; }
-.sub-package { font-weight: bold; font-size: 120% }
-.tutorial { border-width: thin; border-color: #0066ff }
-.tutorial-nav-box { width: 100%; border: 2px solid #999999; background-color: #DDDDDD }
-.nav-button-disabled { color: #999999; }
-.nav-button:active, 
-.nav-button:focus, 
-.nav-button:hover { background-color: #AAAAAA; outline: 1px solid #666666; text-decoration: none }
-.folder-title { font-style: italic }
-
-/* Generic formatting */
-
-.field { font-weight: bold; }
-.detail { font-size: 8pt; }
-.notes { font-style: italic; font-size: 8pt; }
-.separator { background-color: #999999; height: 2px; }
-.warning {  color: #FF6600; }
-.disabled { font-style: italic; color: #999999; }
-
-/* Code elements */
-
-.line-number {  }
-
-.class-table { width: 100%; }
-.class-table-header { border-bottom: 1px dotted #666666; text-align: left}
-.class-name { color: #000000; font-weight: bold; }
-
-.method-summary { padding-left: 1em; font-size: 8pt }
-.method-header { }
-.method-definition { margin-bottom: .3em }
-.method-title { font-weight: bold; }
-.method-name { font-weight: bold; }
-.method-signature { font-size: 85%; color: #0066BB; margin: .5em 0em }
-.method-result { font-style: italic; }
-
-.var-summary { padding-left: 1em; font-size: 8pt; }
-.var-header { }
-.var-title { margin-bottom: .3em }
-.var-type { color: red; font-weight: bold }
-.var-name { font-weight: bold; }
-.var-default {}
-.var-description { font-weight: normal; color: #000000; }
-
-.include-title {  }
-.include-type { font-style: italic; }
-.include-name { font-weight: bold; }
-
-.const-title {  }
-.const-name { font-weight: bold; }
-
-/* Syntax highlighting */
-
-.src-code {  border: 1px solid #336699; padding: 1em; background-color: #EEEEEE;
-             font-family: 'Courier New', Courier, monospace; font-weight: normal; }
-.src-line {  font-family: 'Courier New', Courier, monospace; font-weight: normal; }
-
-.src-comm { color: #666666; }
-.src-id {  }
-.src-inc { color: #0000FF; }
-.src-key { color: #0000FF; }
-.src-num { color: #CC0000; }
-.src-str { color: #66cccc; }
-.src-sym { font-weight: bold; }
-.src-var { }
-
-.src-php { font-weight: bold; }
-
-.src-doc { color: #009999 }
-.src-doc-close-template { color: #0000FF }
-.src-doc-coretag { color: #0099FF; font-weight: bold }
-.src-doc-inlinetag { color: #0099FF }
-.src-doc-internal { color: #6699cc }
-.src-doc-tag { color: #0080CC }
-.src-doc-template { color: #0000FF }
-.src-doc-type { font-style: italic }
-.src-doc-var { font-style: italic }
-
-.tute-tag { color: #009999 }
-.tute-attribute-name { color: #0000FF }
-.tute-attribute-value { color: #0099FF }
-.tute-entity { font-weight: bold; }
-.tute-comment { font-style: italic }
-.tute-inline-tag { color: #636311; font-weight: bold }
-
-/* tutorial */
-
-.authors {  }
-.author { font-style: italic; font-weight: bold }
-.author-blurb { margin: .5em 0em .5em 2em; font-size: 85%; font-weight: normal; font-style: normal }
-.example { background-color: #DDDDDD; border: 1px solid #999999; padding: .5em; }
-.listing { background-color: #DDDDDD; border: 1px solid #999999; padding: .5em; white-space: nowrap; }
-.release-info { font-size: 85%; font-style: italic; margin: 1em 0em }
-.ref-title-box {  }
-.ref-title {  }
-.ref-purpose { font-style: italic; color: #666666 }
-.ref-synopsis {  }
-.title { font-weight: bold; border-bottom: 1px solid #888888; color: #888888;  }
-.cmd-synopsis { margin: 1em 0em }
-.cmd-title { font-weight: bold }
-.toc { margin-left: 2em; padding-left: 0em }
-

+ 0 - 29
SolrPhpClient/phpdocs/packages.html

@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-  <html xmlns="http://www.w3.org/1999/xhtml">
-		<head>
-			<!-- template designed by Marco Von Ballmoos -->
-			<title></title>
-			<link rel="stylesheet" href="media/stylesheet.css" />
-			<link rel="stylesheet" href="media/banner.css" />
-			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-		</head>
-		<body>
-			<div class="banner">
-				<div class="banner-title">Apache</div>
-				<div class="banner-menu">
-					<form>
-						<table cellpadding="0" cellspacing="0" style="width: 100%">
-							<tr>
-								<td>
-																	</td>
-								<td style="width: 2em">&nbsp;</td>
-								<td style="text-align: right">
-																	</td>
-							</tr>
-						</table>
-					</form>
-				</div>
-			</div>
-		</body>
-	</html>

+ 0 - 29
SolrPhpClient/phpdocs/todolist.html

@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-  <html xmlns="http://www.w3.org/1999/xhtml">
-		<head>
-			<!-- template designed by Marco Von Ballmoos -->
-			<title>Todo List</title>
-			<link rel="stylesheet" href="media/stylesheet.css" />
-			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
-		</head>
-		<body>
-						<div align="center"><h1>Todo List</h1></div>
-<h2>Apache</h2>
-<h3><a href="Apache/Solr/Apache_Solr_Service.html">Apache_Solr_Service</a></h3>
-<ul>
-    <li>Investigate using other HTTP clients other than file_get_contents built-in handler. Could provide performance  improvements when dealing with multiple requests by using HTTP's keep alive functionality</li>
-</ul>
-<h3><a href="Apache/Solr/Apache_Solr_Service.html#methodextractFromString">Apache_Solr_Service::extractFromString()</a></h3>
-<ul>
-    <li>Should be using multipart/form-data to post parameter values, but I could not get my implementation to work. Needs revisisted.</li>
-</ul>
-<h3><a href="Apache/Solr/Apache_Solr_Service_Balancer.html#methodextractFromString">Apache_Solr_Service_Balancer::extractFromString()</a></h3>
-<ul>
-    <li>Should be using multipart/form-data to post parameter values, but I could not get my implementation to work. Needs revisisted.</li>
-</ul>
-	<p class="notes" id="credit">
-		Documentation generated on Wed, 04 May 2011 11:01:19 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
-	</p>
-	</body>
-</html>

+ 0 - 439
SolrPhpClient/tests/Apache/Solr/DocumentTest.php

@@ -1,439 +0,0 @@
-<?php
-/**
- * Copyright (c) 2007-2011, Servigistics, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Servigistics, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * @copyright Copyright 2007-2011 Servigistics, Inc. (http://servigistics.com)
- * @license http://solr-php-client.googlecode.com/svn/trunk/COPYING New BSD
- *
- * @package Apache
- * @subpackage Solr
- * @author Donovan Jimenez <djimenez@conduit-it.com>
- */
-
-/**
- * Apache_Solr_Document Unit Test
- */
-class Apache_Solr_DocumentTest extends PHPUnit_Framework_TestCase
-{
-	/**
-	 * Fixture used for testing
-	 *
-	 * @var Apache_Solr_Document
-	 */
-	private $_fixture;
-
-	/**
-	 * Setup for the fixture before each unit test - part of test case API
-	 */
-	protected function setup()
-	{
-		$this->_fixture = new Apache_Solr_Document();
-	}
-
-	/**
-	 * Teardown after each unit test - part of test case API
-	 */
-	protected function tearDown()
-	{
-		unset($this->_fixture);
-	}
-
-	public function testDefaultStateAfterConstructor()
-	{
-		// document boost should be false
-		$this->assertFalse($this->_fixture->getBoost());
-
-		// document fields should be empty
-		$this->assertEquals(0, count($this->_fixture->getFieldNames()));
-		$this->assertEquals(0, count($this->_fixture->getFieldValues()));
-		$this->assertEquals(0, count($this->_fixture->getFieldBoosts()));
-
-		// document iterator should be empty
-		$this->assertEquals(0, iterator_count($this->_fixture));
-	}
-
-	public function testSetAndGetField()
-	{
-		$field = 'field';
-		$value = 'value';
-		$boost = 0.5;
-
-		// set the field
-		$this->_fixture->setField($field, $value, $boost);
-
-		$result = $this->_fixture->getField($field);
-
-		// check the array values
-		$this->assertTrue(is_array($result));
-		$this->assertEquals($field, $result['name']);
-		$this->assertEquals($value, $result['value']);
-		$this->assertEquals($boost, $result['boost']);
-	}
-
-	public function testGetFieldReturnsFalseForNonExistentField()
-	{
-		$this->assertFalse($this->_fixture->getField('field'));
-	}
-
-	public function testMagicGetForFieldValues()
-	{
-		$field = 'field';
-		$value = 'value';
-
-		$this->_fixture->setField($field, $value);
-
-		// test the __get value
-		$this->assertEquals($value, $this->_fixture->{$field});
-	}
-	
-	/**
-	 * Added for issue #48 (http://code.google.com/p/solr-php-client/issues/detail?id=48)
-	 */
-	public function testMagicGetReturnsNullForNonExistentField()
-	{
-		$this->assertNull($this->_fixture->nonExistent);
-	}
-
-	public function testMagicSetForFieldValues()
-	{
-		$field = 'field';
-		$value = 'value';
-
-		// set field value with magic __set
-		$this->_fixture->{$field} = $value;
-
-		$fieldArray = $this->_fixture->getField($field);
-
-		// set values
-		$this->assertEquals($field, $fieldArray['name']);
-		$this->assertEquals($value, $fieldArray['value']);
-		$this->assertTrue($fieldArray['boost'] === false);
-	}
-
-	public function testMagicIssetForNonExistentField()
-	{
-		$this->assertFalse(isset($this->_fixture->field));
-	}
-
-	public function testMagicIssetForExistingField()
-	{
-		$field = 'field';
-		$this->_fixture->{$field} = 'value';
-		$this->assertTrue(isset($this->_fixture->{$field}));
-	}
-
-	public function testMagicUnsetForExistingField()
-	{
-		$field = 'field';
-
-		$this->_fixture->{$field} = 'value';
-
-		// now unset the field
-		unset($this->_fixture->{$field});
-
-		// now test that its unset
-		$this->assertFalse(isset($this->_fixture->{$field}));
-	}
-
-	public function testMagicUnsetForNonExistingField()
-	{
-		$field = 'field';
-		unset($this->_fixture->{$field});
-
-		// now test that it still does not exist
-		$this->assertFalse(isset($this->_fixture->{$field}));
-	}
-
-	public function testSetAndGetFieldBoostWithPositiveNumberSetsBoost()
-	{
-		$field = 'field';
-		$boost = 0.5;
-
-		$this->_fixture->setFieldBoost($field, $boost);
-
-		// test the field boost
-		$this->assertEquals($boost, $this->_fixture->getFieldBoost($field));
-	}
-
-	public function testSetAndGetFieldBoostWithZeroRemovesBoost()
-	{
-		$field = 'field';
-		$boost = 0;
-
-		$this->_fixture->setFieldBoost($field, $boost);
-
-		// test the field boost
-		$this->assertTrue($this->_fixture->getFieldBoost($field) === false);
-	}
-
-	public function testSetAndGetFieldBoostWithNegativeNumberRemovesBoost()
-	{
-		$field = 'field';
-		$boost = -1;
-
-		$this->_fixture->setFieldBoost($field, $boost);
-
-		// test the field boost
-		$this->assertTrue($this->_fixture->getFieldBoost($field) === false);
-	}
-
-	public function testSetAndGetFieldBoostWithNonNumberRemovesBoost()
-	{
-		$field = 'field';
-		$boost = "i am not a number";
-
-		$this->_fixture->setFieldBoost($field, $boost);
-
-		// test the field boost
-		$this->assertTrue($this->_fixture->getFieldBoost($field) === false);
-	}
-
-	public function testSetAndGetBoostWithPositiveNumberSetsBoost()
-	{
-		$boost = 0.5;
-		$this->_fixture->setBoost($boost);
-
-		// the boost should now be set
-		$this->assertEquals($boost, $this->_fixture->getBoost());
-	}
-
-	public function testSetAndGetBoostWithZeroRemovesBoost()
-	{
-		$this->_fixture->setBoost(0);
-
-		// should be boolean false
-		$this->assertTrue($this->_fixture->getBoost() === false);
-	}
-
-	public function testSetAndGetBoostWithNegativeNumberRemovesBoost()
-	{
-		$this->_fixture->setBoost(-1);
-
-		// should be boolean false
-		$this->assertTrue($this->_fixture->getBoost() === false);
-	}
-
-	public function testSetAndGetBoostWithNonNumberRemovesBoost()
-	{
-		$this->_fixture->setBoost("i am not a number");
-
-		// should be boolean false
-		$this->assertTrue($this->_fixture->getBoost() === false);
-	}
-
-	public function testAddFieldCreatesMultiValueWhenFieldDoesNotExist()
-	{
-		$field = 'field';
-		$value = 'value';
-
-		$this->_fixture->addField($field, $value);
-
-		// check that value is an array with correct values
-		$fieldValue = $this->_fixture->{$field};
-
-		$this->assertTrue(is_array($fieldValue));
-		$this->assertEquals(1, count($fieldValue));
-		$this->assertEquals($value, $fieldValue[0]);
-	}
-
-	/**
-	 *	setMultiValue has been deprecated and defers to addField
-	 *
-	 *	@deprecated
-	 */
-	public function testSetMultiValueCreateMultiValueWhenFieldDoesNotExist()
-	{
-		$field = 'field';
-		$value = 'value';
-
-		$this->_fixture->setMultiValue($field, $value);
-
-		// check that value is an array with correct values
-		$fieldValue = $this->_fixture->{$field};
-
-		$this->assertTrue(is_array($fieldValue));
-		$this->assertEquals(1, count($fieldValue));
-		$this->assertEquals($value, $fieldValue[0]);
-	}
-
-	public function testAddFieldCreatesMultiValueWhenFieldDoesExistAsSingleValue()
-	{
-		$field = 'field';
-		$value1 = 'value1';
-		$value2 = 'value2';
-
-		// set first value as singular value
-		$this->_fixture->{$field} = $value1;
-
-		// add a second value with addField
-		$this->_fixture->addField($field, $value2);
-
-		// check that value is an array with correct values
-		$fieldValue = $this->_fixture->{$field};
-
-		$this->assertTrue(is_array($fieldValue));
-		$this->assertEquals(2, count($fieldValue));
-		$this->assertEquals($value1, $fieldValue[0]);
-		$this->assertEquals($value2, $fieldValue[1]);
-	}
-
-	/**
-	 *	setMultiValue has been deprecated and defers to addField
-	 *
-	 *	@deprecated
-	 */
-	public function testSetMultiValueCreatesMultiValueWhenFieldDoesExistAsSingleValue()
-	{
-		$field = 'field';
-		$value1 = 'value1';
-		$value2 = 'value2';
-
-		// set first value as singular value
-		$this->_fixture->{$field} = $value1;
-
-		// add a second value with addField
-		$this->_fixture->setMultiValue($field, $value2);
-
-		// check that value is an array with correct values
-		$fieldValue = $this->_fixture->{$field};
-
-		$this->assertTrue(is_array($fieldValue));
-		$this->assertEquals(2, count($fieldValue));
-		$this->assertEquals($value1, $fieldValue[0]);
-		$this->assertEquals($value2, $fieldValue[1]);
-	}
-
-	public function testAddFieldWithBoostSetsFieldBoost()
-	{
-		$field = 'field';
-		$boost = 0.5;
-
-		$this->_fixture->addField($field, 'value', $boost);
-
-		// check the field boost
-		$this->assertEquals($boost, $this->_fixture->getFieldBoost($field));
-	}
-
-	public function testAddFieldWithBoostMultipliesWithAPreexistingBoost()
-	{
-		$field = 'field';
-		$boost = 0.5;
-
-		// set a field with a boost
-		$this->_fixture->setField($field, 'value1', $boost);
-
-		// now add another value with the same boost
-		$this->_fixture->addField($field, 'value2', $boost);
-
-		// new boost should be $boost * $boost
-		$this->assertEquals($boost * $boost, $this->_fixture->getFieldBoost($field));
-	}
-
-	public function testGetFieldNamesIsInitiallyEmpty()
-	{
-		$fieldNames = $this->_fixture->getFieldNames();
-
-		$this->assertTrue(empty($fieldNames));
-	}
-
-	public function testGetFieldNamesAfterFieldIsSetIsNotEmpty()
-	{
-		$field = 'field';
-
-		$this->_fixture->{$field} = 'value';
-		$fieldNames = $this->_fixture->getFieldNames();
-
-		$this->assertTrue(!empty($fieldNames));
-		$this->assertEquals(1, count($fieldNames));
-		$this->assertEquals($field, $fieldNames[0]);
-	}
-
-	public function testGetFieldValuesIsInitiallyEmpty()
-	{
-		$fieldValues = $this->_fixture->getFieldValues();
-
-		$this->assertTrue(empty($fieldValues));
-	}
-
-	public function testGetFieldValuessAfterFieldIsSetIsNotEmpty()
-	{
-		$value = 'value';
-
-		$this->_fixture->field = $value;
-		$fieldValues = $this->_fixture->getFieldValues();
-
-		$this->assertTrue(!empty($fieldValues));
-		$this->assertEquals(1, count($fieldValues));
-		$this->assertEquals($value, $fieldValues[0]);
-	}
-
-	public function testGetIteratorAfterFieldValueIsSet()
-	{
-		$field = 'field';
-		$value = 'value';
-
-		$this->_fixture->{$field} = $value;
-
-		$itemCount = 0;
-
-		foreach ($this->_fixture as $iteratedField => $iteratedValue)
-		{
-			++$itemCount;
-
-			// test field and value
-			$this->assertEquals($field, $iteratedField);
-			$this->assertEquals($value, $iteratedValue);
-		}
-
-		// test number of iterations is 1
-		$this->assertEquals(1, $itemCount);
-	}
-
-	public function testClearReturnsDocumentToDefaultState()
-	{
-		// set the document boost
-		$this->_fixture->setBoost(0.5);
-
-		// set a field
-		$this->_fixture->someField = "some value";
-
-		// clear the document to remove boost and fields
-		$this->_fixture->clear();
-
-		// document boost should now be false
-		$this->assertFalse($this->_fixture->getBoost());
-
-		// document fields should now be empty
-		$this->assertEquals(0, count($this->_fixture->getFieldNames()));
-		$this->assertEquals(0, count($this->_fixture->getFieldValues()));
-		$this->assertEquals(0, count($this->_fixture->getFieldBoosts()));
-
-		// document iterator should now be empty
-		$this->assertEquals(0, iterator_count($this->_fixture));
-	}
-}

+ 0 - 208
SolrPhpClient/tests/Apache/Solr/HttpTransport/AbstractTest.php

@@ -1,208 +0,0 @@
-<?php
-/**
- * Copyright (c) 2007-2011, Servigistics, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Servigistics, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * @copyright Copyright 2007-2011 Servigistics, Inc. (http://servigistics.com)
- * @license http://solr-php-client.googlecode.com/svn/trunk/COPYING New BSD
- *
- * @package Apache
- * @subpackage Solr
- * @author Donovan Jimenez <djimenez@conduit-it.com>
- */
-
-/**
- * Apache_Solr_HttpTransport_Abstract Unit Tests
- */
-abstract class Apache_Solr_HttpTransport_AbstractTest extends PHPUnit_Framework_TestCase
-{	
-	const TIMEOUT = 2;
-	
-	// request our copyright file from googlecode for GET and HEAD
-	const GET_URL = "http://solr-php-client.googlecode.com/svn/trunk/COPYING";
-	const GET_RESPONSE_MIME_TYPE = 'text/plain';
-	const GET_RESPONSE_ENCODING = 'UTF-8';
-	const GET_RESPONSE_MATCH = 'Copyright (c) ';
-	
-	// post to the issue list page with a search for 'meh'
-	const POST_URL = "http://code.google.com/p/solr-php-client/issues/list";
-	const POST_DATA = "can=2&q=meh&colspec=ID+Type+Status+Priority+Milestone+Owner+Summary&cells=tiles";
-	const POST_REQUEST_CONTENT_TYPE = 'application/x-www-form-urlencoded; charset=UTF-8';
-	
-	const POST_RESPONSE_MIME_TYPE = 'text/html';
-	const POST_RESPONSE_ENCODING = 'UTF-8';
-	//const POST_RESPONSE_MATCH = 'not sure';
-	
-	abstract public function getFixture();
-	
-	public function testGetDefaultTimeoutWithDefaultConstructor()
-	{
-		$fixture = $this->getFixture();
-		$timeout = $fixture->getDefaultTimeout();
-		
-		$this->assertGreaterThan(0, $timeout);
-	}
-	
-	public function testGetDefaultTimeoutSetToSixtyForBadValues()
-	{
-		// first set our default_socket_timeout ini setting
-		$previousValue = ini_get('default_socket_timeout');
-		ini_set('default_socket_timeout', 0);
-		
-		$fixture = $this->getFixture();
-		$timeout = $fixture->getDefaultTimeout();
-		
-		// reset timeout
-		ini_set('default_socket_timeout', $previousValue);
-		
-		$this->assertEquals(60, $timeout);
-	}
-	
-	public function testSetDefaultTimeout()
-	{
-		$newTimeout = 1234;
-		
-		$fixture = $this->getFixture();
-		$fixture->setDefaultTimeout($newTimeout);
-		$timeout = $fixture->getDefaultTimeout();
-		
-		$this->assertEquals($newTimeout, $timeout);
-	}
-	
-	public function testPerformGetRequest()
-	{
-		$fixture = $this->getFixture();
-		$fixture->setDefaultTimeout(self::TIMEOUT);
-		
-		$response = $fixture->performGetRequest(self::GET_URL);
-		
-		$this->assertType('Apache_Solr_HttpTransport_Response', $response);
-		
-		$this->assertEquals(200, $response->getStatusCode(), 'Status code was not 200');
-		$this->assertEquals(self::GET_RESPONSE_MIME_TYPE, $response->getMimeType(), 'mimetype was not correct');
-		$this->assertEquals(self::GET_RESPONSE_ENCODING, $response->getEncoding(), 'character encoding was not correct');
-		$this->assertStringStartsWith(self::GET_RESPONSE_MATCH, $response->getBody(), 'body did not start with match text');
-	}
-	
-	public function testPerformGetRequestWithTimeout()
-	{
-		$fixture = $this->getFixture();
-		$response = $fixture->performGetRequest(self::GET_URL, self::TIMEOUT);
-		
-		$this->assertType('Apache_Solr_HttpTransport_Response', $response);
-		
-		$this->assertEquals(200, $response->getStatusCode(), 'Status code was not 200');
-		$this->assertEquals(self::GET_RESPONSE_MIME_TYPE, $response->getMimeType(), 'mimetype was not correct');
-		$this->assertEquals(self::GET_RESPONSE_ENCODING, $response->getEncoding(), 'character encoding was not correct');
-		$this->assertStringStartsWith(self::GET_RESPONSE_MATCH, $response->getBody(), 'body did not start with match text');
-	}
-	
-	public function testPerformHeadRequest()
-	{
-		$fixture = $this->getFixture();
-		$fixture->setDefaultTimeout(self::TIMEOUT);
-		
-		$response = $fixture->performHeadRequest(self::GET_URL);
-		
-		// we should get everything the same as a get, except the body
-		$this->assertType('Apache_Solr_HttpTransport_Response', $response);
-		
-		$this->assertEquals(200, $response->getStatusCode(), 'Status code was not 200');
-		$this->assertEquals(self::GET_RESPONSE_MIME_TYPE, $response->getMimeType(), 'mimetype was not correct');
-		$this->assertEquals(self::GET_RESPONSE_ENCODING, $response->getEncoding(), 'character encoding was not correct');
-		$this->assertEquals("", $response->getBody(), 'body was not empty');
-	}
-	
-	public function testPerformHeadRequestWithTimeout()
-	{
-		$fixture = $this->getFixture();
-		$response = $fixture->performHeadRequest(self::GET_URL, self::TIMEOUT);
-		
-		// we should get everything the same as a get, except the body
-		$this->assertType('Apache_Solr_HttpTransport_Response', $response);
-		
-		$this->assertEquals(200, $response->getStatusCode(), 'Status code was not 200');
-		$this->assertEquals(self::GET_RESPONSE_MIME_TYPE, $response->getMimeType(), 'mimetype was not correct');
-		$this->assertEquals(self::GET_RESPONSE_ENCODING, $response->getEncoding(), 'character encoding was not correct');
-		$this->assertEquals("", $response->getBody(), 'body was not empty');
-	}
-	
-	public function testPerformPostRequest()
-	{
-		$fixture = $this->getFixture();
-		$fixture->setDefaultTimeout(self::TIMEOUT);
-		
-		$response = $fixture->performPostRequest(self::POST_URL, self::POST_DATA, self::POST_REQUEST_CONTENT_TYPE);
-		
-		$this->assertType('Apache_Solr_HttpTransport_Response', $response);
-		
-		$this->assertEquals(200, $response->getStatusCode(), 'Status code was not 200');
-		$this->assertEquals(self::POST_RESPONSE_MIME_TYPE, $response->getMimeType(), 'mimetype was not correct');
-		$this->assertEquals(self::POST_RESPONSE_ENCODING, $response->getEncoding(), 'character encoding was not correct');
-		//$this->assertStringStartsWith(self::POST_RESPONSE_MATCH, $response->getBody(), 'body did not start with match text');
-	}
-	
-	public function testPerformPostRequestWithTimeout()
-	{
-		$fixture = $this->getFixture();
-		$response = $fixture->performPostRequest(self::POST_URL, self::POST_DATA, self::POST_REQUEST_CONTENT_TYPE, self::TIMEOUT);
-		
-		$this->assertType('Apache_Solr_HttpTransport_Response', $response);
-		
-		$this->assertEquals(200, $response->getStatusCode(), 'Status code was not 200');
-		$this->assertEquals(self::POST_RESPONSE_MIME_TYPE, $response->getMimeType(), 'mimetype was not correct');
-		$this->assertEquals(self::POST_RESPONSE_ENCODING, $response->getEncoding(), 'character encoding was not correct');
-		//$this->assertStringStartsWith(self::POST_RESPONSE_MATCH, $response->getBody(), 'body did not start with match text');
-	}
-		
-	/**
-	 * Test one session doing multiple requests in multiple orders
-	 */
-	public function testMultipleRequests()
-	{
-		// initial get request
-		$this->testPerformGetRequest();
-		
-		// head following get
-		$this->testPerformHeadRequest();
-		
-		// post following head
-		$this->testPerformPostRequest();
-		
-		// get following post
-		$this->testPerformGetRequest();
-		
-		// post following get
-		$this->testPerformPostRequest();
-	
-		// head following post
-		$this->testPerformHeadRequest();
-		
-		// get following post
-		$this->testPerformGetRequest();		
-	}
-}

+ 0 - 53
SolrPhpClient/tests/Apache/Solr/HttpTransport/CurlNoReuseTest.php

@@ -1,53 +0,0 @@
-<?php
-/**
- * Copyright (c) 2007-2011, Servigistics, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Servigistics, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * @copyright Copyright 2007-2011 Servigistics, Inc. (http://servigistics.com)
- * @license http://solr-php-client.googlecode.com/svn/trunk/COPYING New BSD
- *
- * @package Apache
- * @subpackage Solr
- * @author Donovan Jimenez <djimenez@conduit-it.com>
- */
-
-/**
- * Apache_Solr_HttpTransport_CurlNoReuse Unit Tests
- */
-class Apache_Solr_HttpTransport_CurlNoReuseTest extends Apache_Solr_HttpTransport_AbstractTest
-{
-	public function getFixture()
-	{
-		// ensure curl is enabled
-		if (!extension_loaded('curl'))
-		{
-			$this->markTestSkipped("curl module is not enabled");
-		}
-		
-		return new Apache_Solr_HttpTransport_CurlNoReuse();
-	}
-}

+ 0 - 53
SolrPhpClient/tests/Apache/Solr/HttpTransport/CurlTest.php

@@ -1,53 +0,0 @@
-<?php
-/**
- * Copyright (c) 2007-2011, Servigistics, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Servigistics, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * @copyright Copyright 2007-2011 Servigistics, Inc. (http://servigistics.com)
- * @license http://solr-php-client.googlecode.com/svn/trunk/COPYING New BSD
- *
- * @package Apache
- * @subpackage Solr
- * @author Donovan Jimenez <djimenez@conduit-it.com>
- */
-
-/**
- * Apache_Solr_HttpTransport_Curl Unit Tests
- */
-class Apache_Solr_HttpTransport_CurlTest extends Apache_Solr_HttpTransport_AbstractTest
-{	
-	public function getFixture()
-	{
-		// ensure curl is enabled
-		if (!extension_loaded('curl'))
-		{
-			$this->markTestSkipped("curl module is not enabled");
-		}
-		
-		return new Apache_Solr_HttpTransport_Curl();
-	}
-}

+ 0 - 53
SolrPhpClient/tests/Apache/Solr/HttpTransport/FileGetContentsTest.php

@@ -1,53 +0,0 @@
-<?php
-/**
- * Copyright (c) 2007-2011, Servigistics, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Servigistics, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * @copyright Copyright 2007-2011 Servigistics, Inc. (http://servigistics.com)
- * @license http://solr-php-client.googlecode.com/svn/trunk/COPYING New BSD
- *
- * @package Apache
- * @subpackage Solr
- * @author Donovan Jimenez <djimenez@conduit-it.com>
- */
-
-/**
- * Apache_Solr_HttpTransport_FileGetContents Unit Tests
- */
-class Apache_Solr_HttpTransport_FileGetContentsTest extends Apache_Solr_HttpTransport_AbstractTest
-{
-	public function getFixture()
-	{
-		// make sure allow_url_fopen is on
-		if (!ini_get("allow_url_fopen"))
-		{
-			$this->markTestSkipped("allow_url_fopen is not enabled");
-		}
-		
-		return new Apache_Solr_HttpTransport_FileGetContents();
-	}
-}

ファイルの差分が大きいため隠しています
+ 0 - 55
SolrPhpClient/tests/Apache/Solr/HttpTransport/ResponseTest.php


+ 0 - 58
SolrPhpClient/tests/Apache/Solr/HttpTransportExceptionTest.php

@@ -1,58 +0,0 @@
-<?php
-/**
- * Copyright (c) 2007-2011, Servigistics, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Servigistics, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * @copyright Copyright 2007-2011 Servigistics, Inc. (http://servigistics.com)
- * @license http://solr-php-client.googlecode.com/svn/trunk/COPYING New BSD
- *
- * @package Apache
- * @subpackage Solr
- * @author Donovan Jimenez <djimenez@conduit-it.com>
- */
-
-/**
- * Apache_Solr_HttpTransportException Unit Tests
- */
-class Apache_Solr_HttpTransportExceptionTest extends PHPUnit_Framework_TestCase
-{
-	/**
-	 * @expectedException PHPUnit_Framework_Error
-	 */
-	public function testConstructorRequiresResponse()
-	{
-		$fixture = new Apache_Solr_HttpTransportException();
-	}
-	
-	public function testGetResponse()
-	{
-		$response = Apache_Solr_ResponseTest::get0Response();
-		$fixture = new Apache_Solr_HttpTransportException($response);
-		
-		$this->assertEquals($response, $fixture->getResponse());
-	}
-}

+ 0 - 194
SolrPhpClient/tests/Apache/Solr/ResponseTest.php

@@ -1,194 +0,0 @@
-<?php
-/**
- * Copyright (c) 2007-2011, Servigistics, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Servigistics, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * @copyright Copyright 2007-2011 Servigistics, Inc. (http://servigistics.com)
- * @license http://solr-php-client.googlecode.com/svn/trunk/COPYING New BSD
- *
- * @package Apache
- * @subpackage Solr
- * @author Donovan Jimenez <djimenez@conduit-it.com>
- */
-
-/**
- * Apache_Solr_Response Unit Test
- */
-class Apache_Solr_ResponseTest extends PHPUnit_Framework_TestCase
-{
-	static public function get0Response($createDocuments = true, $collapseSingleValueArrays = true)
-	{
-		return new Apache_Solr_Response(Apache_Solr_HttpTransport_ResponseTest::get0Response(), $createDocuments, $collapseSingleValueArrays);
-	}
-
-	static public function get200Response($createDocuments = true, $collapseSingleValueArrays = true)
-	{
-		return new Apache_Solr_Response(Apache_Solr_HttpTransport_ResponseTest::get200Response(), $createDocuments, $collapseSingleValueArrays);
-	}
-
-	static public function get200ResponseWithDocuments($createDocuments = true, $collapseSingleValueArrays = true)
-	{
-		return new Apache_Solr_Response(Apache_Solr_HttpTransport_ResponseTest::get200ResponseWithDocuments(), $createDocuments, $collapseSingleValueArrays);
-	}
-
-	static public function get400Response($createDocuments = true, $collapseSingleValueArrays = true)
-	{
-		return new Apache_Solr_Response(Apache_Solr_HttpTransport_ResponseTest::get400Response(), $createDocuments, $collapseSingleValueArrays);
-	}
-
-	static public function get404Response($createDocuments = true, $collapseSingleValueArrays = true)
-	{
-		return new Apache_Solr_Response(Apache_Solr_HttpTransport_ResponseTest::get404Response(), $createDocuments, $collapseSingleValueArrays);
-	}
-
-	public function testConstuctorWithValidBodyAndHeaders()
-	{
-		$fixture = self::get200Response();
-
-		// check that we parsed the HTTP status correctly
-		$this->assertEquals(Apache_Solr_HttpTransport_ResponseTest::STATUS_CODE_200, $fixture->getHttpStatus());
-
-		// check that we received the body correctly
-		$this->assertEquals(Apache_Solr_HttpTransport_ResponseTest::BODY_200, $fixture->getRawResponse());
-
-		// check that our defaults are correct
-		$this->assertEquals(Apache_Solr_HttpTransport_ResponseTest::ENCODING_200, $fixture->getEncoding());
-		$this->assertEquals(Apache_Solr_HttpTransport_ResponseTest::MIME_TYPE_200, $fixture->getType());
-	}
-
-	public function testConstructorWithBadBodyAndHeaders()
-	{
-		$fixture = self::get0Response();
-
-		// check that our defaults are correct
-		$this->assertEquals(0, $fixture->getHttpStatus());
-		$this->assertEquals("UTF-8", $fixture->getEncoding());
-		$this->assertEquals("text/plain", $fixture->getType());
-	}
-
-	public function testMagicGetWithValidBodyAndHeaders()
-	{
-		$fixture = self::get200Response();
-
-		// test top level gets
-		$this->assertType('stdClass', $fixture->responseHeader);
-		$this->assertEquals(0, $fixture->responseHeader->status);
-		$this->assertEquals(0, $fixture->responseHeader->QTime);
-
-		$this->assertType('stdClass', $fixture->response);
-		$this->assertEquals(0, $fixture->response->numFound);
-
-		$this->assertTrue(is_array($fixture->response->docs));
-		$this->assertEquals(0, count($fixture->response->docs));
-	}
-
-	/**
-	 * @expectedException Apache_Solr_ParserException
-	 */
-	public function testMagicGetWith0Response()
-	{
-		$fixture = self::get0Response();
-
-		// attempting to magic get a part of the response
-		// should throw a ParserException
-		$fixture->responseHeader;
-
-		$this->fail("Expected Apache_Solr_ParserException was not raised");
-	}
-
-	/**
-	 * @expectedException Apache_Solr_ParserException
-	 */
-	public function testMagicGetWith400Response()
-	{
-		$fixture = self::get400Response();
-
-		// attempting to magic get a part of the response
-		// should throw a ParserException
-		$fixture->responseHeader;
-
-		$this->fail("Expected Apache_Solr_ParserException was not raised");
-	}
-
-	/**
-	 * @expectedException Apache_Solr_ParserException
-	 */
-	public function testMagicGetWith404Response()
-	{
-		$fixture = self::get404Response();
-
-		// attempting to magic get a part of the response
-		// should throw a ParserException
-		$fixture->responseHeader;
-
-		$this->fail("Expected Apache_Solr_ParserException was not raised");
-	}
-
-	public function testCreateDocuments()
-	{
-		$fixture = self::get200ResponseWithDocuments();
-
-		$this->assertTrue(count($fixture->response->docs) > 0, 'There are not 1 or more documents, cannot test');
-		$this->assertType('Apache_Solr_Document', $fixture->response->docs[0], 'The first document is not of type Apache_Solr_Document');
-	}
-	
-	public function testDontCreateDocuments()
-	{
-		$fixture = self::get200ResponseWithDocuments(false);
-
-		$this->assertTrue(count($fixture->response->docs) > 0, 'There are not 1 or more documents, cannot test');
-		$this->assertType('stdClass', $fixture->response->docs[0], 'The first document is not of type stdClass');
-	}
-	
-	public function testGetHttpStatusMessage()
-	{
-		$fixture = self::get200Response();
-		
-		$this->assertEquals("OK", $fixture->getHttpStatusMessage());
-	}
-	
-	public function testMagicGetReturnsNullForUndefinedData()
-	{
-		$fixture = self::get200Response();
-		
-		$this->assertNull($fixture->doesnotexist);
-	}
-	
-	public function testMagicIssetForDefinedProperty()
-	{
-		$fixture = self::get200Response();
-		
-		$this->assertTrue(isset($fixture->responseHeader));
-	}
-	
-	public function testMagicIssetForUndefinedProperty()
-	{
-		$fixture = self::get200Response();
-		
-		$this->assertFalse(isset($fixture->doesnotexist));
-	}
-}

+ 0 - 47
SolrPhpClient/tests/Apache/Solr/Service/BalancerTest.php

@@ -1,47 +0,0 @@
-<?php
-/**
- * Copyright (c) 2007-2011, Servigistics, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Servigistics, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * @copyright Copyright 2007-2011 Servigistics, Inc. (http://servigistics.com)
- * @license http://solr-php-client.googlecode.com/svn/trunk/COPYING New BSD
- *
- * @package Apache
- * @subpackage Solr
- * @author Donovan Jimenez <djimenez@conduit-it.com>
- */
-
-/**
- * Apache_Solr_Service_Balancer Unit Tests
- */
-class Apache_Solr_Service_BalancerTest extends Apache_Solr_ServiceAbstractTest
-{
-	public function getFixture()
-	{
-		return new Apache_Solr_Service_Balancer();
-	}
-}

+ 0 - 139
SolrPhpClient/tests/Apache/Solr/ServiceAbstractTest.php

@@ -1,139 +0,0 @@
-<?php
-/**
- * Copyright (c) 2007-2011, Servigistics, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Servigistics, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * @copyright Copyright 2007-2011 Servigistics, Inc. (http://servigistics.com)
- * @license http://solr-php-client.googlecode.com/svn/trunk/COPYING New BSD
- *
- * @package Apache
- * @subpackage Solr
- * @author Donovan Jimenez <djimenez@conduit-it.com>
- */
-
-/**
- * Provides base funcationality test for both Apache_Solr_Service and the
- * Apache_Solr_Service_Balancer classes. 
- */
-abstract class Apache_Solr_ServiceAbstractTest extends PHPUnit_Framework_TestCase
-{
-	/**
-	 * Method that gets the appropriate instance for testing
-	 */
-	abstract public function getFixture();
-	
-	/**
-	 * @dataProvider testEscapeDataProvider
-	 */
-	public function testEscape($input, $expectedOutput)
-	{
-		$fixture = $this->getFixture();
-		
-		$this->assertEquals($expectedOutput, $fixture->escape($input));
-	}
-	
-	public function testEscapeDataProvider()
-	{
-		return array(
-			array(
-				"I should look the same",
-				"I should look the same"
-			),
-			
-			array(
-				"(There) are: ^lots \\ && of spec!al charaters",
-				"\\(There\\) are\\: \\^lots \\\\ \\&& of spec\\!al charaters"
-			)
-		);
-	}
-	
-	/**
-	 * @dataProvider testEscapePhraseDataProvider
-	 */
-	public function testEscapePhrase($input, $expectedOutput)
-	{
-		$fixture = $this->getFixture();
-		
-		$this->assertEquals($expectedOutput, $fixture->escapePhrase($input));
-	}
-	
-	public function testEscapePhraseDataProvider()
-	{
-		return array(
-			array(
-				"I'm a simple phrase",
-				"I'm a simple phrase"
-			),
-		
-			array(
-				"I have \"phrase\" characters",
-				'I have \\"phrase\\" characters'
-			)
-		);
-	}
-	
-	/**
-	 * @dataProvider testPhraseDataProvider
-	 */
-	public function testPhrase($input, $expectedOutput)
-	{
-		$fixture = $this->getFixture();
-		
-		$this->assertEquals($expectedOutput, $fixture->phrase($input));
-	}
-	
-	public function testPhraseDataProvider()
-	{
-		return array(
-			array(
-				"I'm a simple phrase",
-				'"I\'m a simple phrase"'
-			),
-			
-			array(
-				"I have \"phrase\" characters",
-				'"I have \\"phrase\\" characters"'
-			)
-		);
-	}
-	
-	public function testGetCreateDocumentWithDefaultConstructor()
-	{
-		$fixture = $this->getFixture();
-		
-		$this->assertTrue($fixture->getCreateDocuments());
-	}
-	
-	public function testSetCreateDocuments()
-	{
-		$fixture = $this->getFixture();
-		
-		$fixture->setCreateDocuments(false);
-		
-		$this->assertFalse($fixture->getCreateDocuments());
-	}
-}

+ 0 - 1119
SolrPhpClient/tests/Apache/Solr/ServiceTest.php

@@ -1,1119 +0,0 @@
-<?php
-/**
- * Copyright (c) 2007-2011, Servigistics, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Servigistics, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * @copyright Copyright 2007-2011 Servigistics, Inc. (http://servigistics.com)
- * @license http://solr-php-client.googlecode.com/svn/trunk/COPYING New BSD
- *
- * @package Apache
- * @subpackage Solr
- * @author Donovan Jimenez <djimenez@conduit-it.com>
- */
-
-/**
- * Apache_Solr_Service Unit Test
- */
-class Apache_Solr_ServiceTest extends Apache_Solr_ServiceAbstractTest
-{
-	public function getFixture()
-	{
-		return new Apache_Solr_Service();
-	}
-	
-	public function getMockHttpTransportInterface()
-	{
-		return $this->getMock(
-			'Apache_Solr_HttpTransport_Interface',
-			array(
-				'getDefaultTimeout',
-				'setDefaultTimeout',
-				'performGetRequest',
-				'performHeadRequest',
-				'performPostRequest',
-			)
-		);
-	}
-	
-	//================================================================//
-	// ATTEMPT TO MOVE THESE TO ServiceAbstractTest AT SOME POINT     //
-	//   Apache_Solr_Service_Balancer will need functions added       //
-	//================================================================//
-	public function testGetHttpTransportWithDefaultConstructor()
-	{
-		$fixture = new Apache_Solr_Service();
-		
-		$httpTransport = $fixture->getHttpTransport();
-		
-		$this->assertInstanceOf('Apache_Solr_HttpTransport_Interface', $httpTransport, 'Default http transport does not implement interface');
-		$this->assertInstanceOf('Apache_Solr_HttpTransport_FileGetContents', $httpTransport, 'Default http transport is not URL Wrapper implementation');
-	}
-	
-	
-	public function testSetHttpTransport()
-	{
-		$newTransport = new Apache_Solr_HttpTransport_Curl();
-		$fixture = new Apache_Solr_Service();
-		
-		$fixture->setHttpTransport($newTransport);
-		$httpTransport = $fixture->getHttpTransport();
-		
-		$this->assertInstanceOf('Apache_Solr_HttpTransport_Interface', $httpTransport);
-		$this->assertInstanceOf('Apache_Solr_HttpTransport_Curl', $httpTransport);
-		$this->assertEquals($newTransport, $httpTransport);
-		
-	}
-	
-	public function testSetHttpTransportWithConstructor()
-	{
-		$newTransport = new Apache_Solr_HttpTransport_Curl();
-		
-		$fixture = new Apache_Solr_Service('localhost', 8180, '/solr/', $newTransport);
-		
-		$fixture->setHttpTransport($newTransport);
-		$httpTransport = $fixture->getHttpTransport();
-		
-		$this->assertInstanceOf('Apache_Solr_HttpTransport_Interface', $httpTransport);
-		$this->assertInstanceOf('Apache_Solr_HttpTransport_Curl', $httpTransport);
-		$this->assertEquals($newTransport, $httpTransport);
-	}
-
-	public function testGetCollapseSingleValueArraysWithDefaultConstructor()
-	{
-		$fixture = $this->getFixture();
-		
-		$this->assertTrue($fixture->getCollapseSingleValueArrays());
-	}
-	
-	public function testSetCollapseSingleValueArrays()
-	{
-		$fixture = $this->getFixture();
-		
-		$fixture->setCollapseSingleValueArrays(false);
-		$this->assertFalse($fixture->getCollapseSingleValueArrays());
-	}
-	
-	public function testGetNamedListTreatmetnWithDefaultConstructor()
-	{
-		$fixture = $this->getFixture();
-		
-		$this->assertEquals(Apache_Solr_Service::NAMED_LIST_MAP, $fixture->getNamedListTreatment());
-	}
-	
-	public function testSetNamedListTreatment()
-	{
-		$fixture = $this->getFixture();
-		
-		$fixture->setNamedListTreatment(Apache_Solr_Service::NAMED_LIST_FLAT);
-		$this->assertEquals(Apache_Solr_Service::NAMED_LIST_FLAT, $fixture->getNamedListTreatment());
-		
-		$fixture->setNamedListTreatment(Apache_Solr_Service::NAMED_LIST_MAP);
-		$this->assertEquals(Apache_Solr_Service::NAMED_LIST_MAP, $fixture->getNamedListTreatment());
-	}
-	
-	/**
-	 * @expectedException Apache_Solr_InvalidArgumentException
-	 */
-	public function testSetNamedListTreatmentInvalidArgumentException()
-	{
-		$fixture = $this->getFixture();
-		
-		$fixture->setNamedListTreatment("broken");
-	}
-	
-	//================================================================//
-	// END SECTION OF CODE THAT SHOULD BE MOVED                       //
-	//   Apache_Solr_Service_Balancer will need functions added       //
-	//================================================================//
-	
-
-	public function testConstructorDefaultArguments()
-	{
-		$fixture = new Apache_Solr_Service();
-		
-		$this->assertInstanceOf('Apache_Solr_Service', $fixture);
-	}
-
-	public function testGetHostWithDefaultConstructor()
-	{
-		$fixture = new Apache_Solr_Service();
-		$host = $fixture->getHost();
-		
-		$this->assertEquals("localhost", $host);
-	}
-	
-	public function testSetHost()
-	{
-		$newHost = "example.com";
-		
-		$fixture = new Apache_Solr_Service();
-		$fixture->setHost($newHost);
-		$host = $fixture->getHost();
-		
-		$this->assertEquals($newHost, $host);
-	}
-	
-	/**
-	 * @expectedException Apache_Solr_InvalidArgumentException
-	 */
-	public function testSetEmptyHost()
-	{
-		$fixture = new Apache_Solr_Service();
-		
-		// should throw an invalid argument exception
-		$fixture->setHost("");
-	}
-	
-	public function testSetHostWithConstructor()
-	{
-		$newHost = "example.com";
-		
-		$fixture = new Apache_Solr_Service($newHost);
-		$host = $fixture->getHost();
-		
-		$this->assertEquals($newHost, $host);
-	}
-	
-	public function testGetPortWithDefaultConstructor()
-	{
-		$fixture = new Apache_Solr_Service();
-		$port = $fixture->getPort();
-		
-		$this->assertEquals(8180, $port);
-	}
-	
-	public function testSetPort()
-	{
-		$newPort = 12345;
-		
-		$fixture = new Apache_Solr_Service();
-		$fixture->setPort($newPort);
-		$port = $fixture->getPort();
-		
-		$this->assertEquals($newPort, $port);
-	}
-	
-	/**
-	 * @expectedException Apache_Solr_InvalidArgumentException
-	 */
-	public function testSetPortWithInvalidArgument()
-	{
-		$fixture = new Apache_Solr_Service();
-		
-		$fixture->setPort("broken");
-	}
-	
-	public function testSetPortWithConstructor()
-	{
-		$newPort = 12345;
-		
-		$fixture = new Apache_Solr_Service('locahost', $newPort);
-		$port = $fixture->getPort();
-		
-		$this->assertEquals($newPort, $port);
-	}
-		
-	public function testGetPathWithDefaultConstructor()
-	{
-		$fixture = new Apache_Solr_Service();
-		$path = $fixture->getPath();
-		
-		$this->assertEquals("/solr/", $path);
-	}
-	
-	public function testSetPath()
-	{
-		$newPath = "/new/path/";
-		
-		$fixture = new Apache_Solr_Service();
-		$fixture->setPath($newPath);
-		$path = $fixture->getPath();
-		
-		$this->assertEquals($path, $newPath);
-	}
-	
-	public function testSetPathWillAddContainingSlashes()
-	{
-		$newPath = "new/path";
-		$containedPath = "/{$newPath}/";
-		
-		$fixture = new Apache_Solr_Service();
-		$fixture->setPath($newPath);
-		$path = $fixture->getPath();
-		
-		$this->assertEquals($containedPath, $path, 'setPath did not ensure propertly wrapped with slashes');
-	}
-	
-	public function testSetPathWithConstructor()
-	{
-		$newPath = "/new/path/";
-		
-		$fixture = new Apache_Solr_Service('localhost', 8180, $newPath);
-		$path = $fixture->getPath();
-		
-		$this->assertEquals($newPath, $path);
-	}
-	
-	
-	public function testGetDefaultTimeoutCallsThroughToTransport()
-	{
-		$fixture = new Apache_Solr_Service();
-		
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call
-		$mockTransport->expects($this->once())->method('getDefaultTimeout');
-		
-		$fixture->setHttpTransport($mockTransport);
-		
-		$fixture->getDefaultTimeout();
-	}
-	
-	public function testSetDefaultTimeoutCallsThroughToTransport()
-	{
-		$timeout = 12345;
-		$fixture = new Apache_Solr_Service();
-		
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call
-		$mockTransport->expects($this->once())->method('setDefaultTimeout')->with($this->equalTo($timeout));
-		
-		$fixture->setHttpTransport($mockTransport);		
-		$fixture->setDefaultTimeout($timeout);
-	}
-	
-	public function testPing()
-	{
-		$expectedUrl = "http://localhost:8180/solr/admin/ping";
-		$expectedTimeout = 2;
-		
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performHeadRequest')
-			->with($this->equalTo($expectedUrl), $this->equalTo($expectedTimeout))
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		// call ping 
-		$fixture = new Apache_Solr_service();
-		$fixture->setHttpTransport($mockTransport);
-		$time = $fixture->ping();
-		
-		$this->assertGreaterThan(0, $time);
-	}
-	
-	public function testPingReturnsFalse()
-	{
-		$expectedUrl = "http://localhost:8180/solr/admin/ping";
-		$expectedTimeout = 2;
-		
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performHeadRequest')
-			->with($this->equalTo($expectedUrl), $this->equalTo($expectedTimeout))
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get0Response()));
-		
-		// call ping 
-		$fixture = new Apache_Solr_service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$this->assertFalse($fixture->ping());
-	}
-	
-	public function testThreads()
-	{
-		$expectedUrl = "http://localhost:8180/solr/admin/threads?wt=json";
-		$expectedTimeout = false;
-		
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performGetRequest')
-			->with($this->equalTo($expectedUrl), $this->equalTo($expectedTimeout))
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		// call threads
-		$fixture = new Apache_Solr_service();
-		$fixture->setHttpTransport($mockTransport);
-		$fixture->threads();
-	}
-	
-	/**
-	 * @expectedException Apache_Solr_HttpTransportException
-	 */
-	public function testThreads404()
-	{
-		$expectedUrl = "http://localhost:8180/solr/admin/threads?wt=json";
-		$expectedTimeout = false;
-		
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performGetRequest')
-			->with($this->equalTo($expectedUrl), $this->equalTo($expectedTimeout))
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get404Response()));
-		
-		// call threads
-		$fixture = new Apache_Solr_service();
-		$fixture->setHttpTransport($mockTransport);
-		$fixture->threads();
-	}
-	
-	public function testAdd()
-	{
-		$postData = "does not have to be valid";
-		
-		$expectedUrl = "http://localhost:8180/solr/update?wt=json";
-		$expectedTimeout = false;
-		$expectedPostData = $postData;
-		$expectedContentType = "text/xml; charset=UTF-8"; // default for _sendRawPost
-		
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performPostRequest')
-			->with($this->equalTo($expectedUrl), $this->equalTo($postData), $this->equalTo($expectedContentType), $this->equalTo($expectedTimeout))
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		// call add
-		$fixture = new Apache_Solr_service();
-		$fixture->setHttpTransport($mockTransport);
-		$fixture->add($postData);
-	}
-	
-	/**
-	 * @expectedException Apache_Solr_HttpTransportException
-	 */
-	public function testAdd400()
-	{
-		$postData = "does not have to be valid";
-		
-		$expectedUrl = "http://localhost:8180/solr/update?wt=json";
-		$expectedTimeout = false;
-		$expectedPostData = $postData;
-		$expectedContentType = "text/xml; charset=UTF-8"; // default for _sendRawPost
-		
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performPostRequest')
-			->with($this->equalTo($expectedUrl), $this->equalTo($postData), $this->equalTo($expectedContentType), $this->equalTo($expectedTimeout))
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get400Response()));
-		
-		// call add
-		$fixture = new Apache_Solr_service();
-		$fixture->setHttpTransport($mockTransport);
-		$fixture->add($postData);
-	}
-	
-	public function testAddDocument()
-	{
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performPostRequest')
-			->with(
-				// url
-				$this->equalTo('http://localhost:8180/solr/update?wt=json'),
-				
-				// raw post
-				$this->equalTo('<add allowDups="false" overwritePending="true" overwriteCommitted="true"><doc></doc></add>'),
-				
-				// content type
-				$this->equalTo('text/xml; charset=UTF-8'),
-				
-				// timeout
-				$this->equalTo(false)
-			)
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		$fixture = new Apache_Solr_service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$document = new Apache_Solr_Document();
-		
-		$fixture->addDocument($document);
-	}
-	
-	public function testAddDocumentWithNonDefaultParameters()
-	{
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performPostRequest')
-			->with(
-				// url
-				$this->equalTo('http://localhost:8180/solr/update?wt=json'),
-				
-				// raw post
-				$this->equalTo('<add allowDups="true" overwritePending="false" overwriteCommitted="false" commitWithin="3600"><doc></doc></add>'),
-				
-				// content type
-				$this->equalTo('text/xml; charset=UTF-8'),
-				
-				// timeout
-				$this->equalTo(false)
-			)
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		$fixture = new Apache_Solr_service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$document = new Apache_Solr_Document();
-		
-		$fixture->addDocument($document, true, false, false, 3600);
-	}
-	
-	public function testAddDocumentWithFields()
-	{
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performPostRequest')
-			->with(
-				// url
-				$this->equalTo('http://localhost:8180/solr/update?wt=json'),
-			
-				// raw post
-				$this->equalTo('<add allowDups="false" overwritePending="true" overwriteCommitted="true"><doc><field name="guid">global unique id</field><field name="field">value</field><field name="multivalue">value 1</field><field name="multivalue">value 2</field></doc></add>'),
-			
-				// content type
-				$this->equalTo('text/xml; charset=UTF-8'),
-			
-				// timeout
-				$this->equalTo(false)
-			)
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		$fixture = new Apache_Solr_service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$document = new Apache_Solr_Document();
-
-		$document->guid = "global unique id";
-		$document->field = "value";
-		$document->multivalue = array("value 1", "value 2");
-		
-		$fixture->addDocument($document);
-	}
-	
-	public function testAddDocumentWithFieldBoost()
-	{
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performPostRequest')
-			->with(
-				// url
-				$this->equalTo('http://localhost:8180/solr/update?wt=json'),
-		
-				// raw post
-				$this->equalTo('<add allowDups="false" overwritePending="true" overwriteCommitted="true"><doc><field name="guid">global unique id</field><field name="field" boost="2">value</field><field name="multivalue" boost="3">value 1</field><field name="multivalue">value 2</field></doc></add>'),
-		
-				// content type
-				$this->equalTo('text/xml; charset=UTF-8'),
-		
-				// timeout
-				$this->equalTo(false)
-			)
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		$fixture = new Apache_Solr_service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$document = new Apache_Solr_Document();
-
-		$document->guid = "global unique id";
-		
-		$document->field = "value";
-		$document->setFieldBoost('field', 2);
-		
-		$document->multivalue = array("value 1", "value 2");
-		$document->setFieldBoost('multivalue', 3);
-		
-		$fixture->addDocument($document);
-	}
-	
-	public function testAddDocumentWithDocumentBoost()
-	{
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performPostRequest')
-			->with(
-				// url
-				$this->equalTo('http://localhost:8180/solr/update?wt=json'),
-		
-				// raw post
-				$this->equalTo('<add allowDups="false" overwritePending="true" overwriteCommitted="true"><doc boost="2"><field name="guid">global unique id</field><field name="field">value</field></doc></add>'),
-		
-				// content type
-				$this->equalTo('text/xml; charset=UTF-8'),
-		
-				// timeout
-				$this->equalTo(false)
-			)
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		$fixture = new Apache_Solr_service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$document = new Apache_Solr_Document();
-		$document->setBoost(2);
-
-		$document->guid = "global unique id";
-		$document->field = "value";
-		
-		$fixture->addDocument($document);
-	}
-	
-	public function testAddDocuments()
-	{
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performPostRequest')
-			->with(
-				// url
-				$this->equalTo('http://localhost:8180/solr/update?wt=json'),
-		
-				// raw post
-				$this->equalTo('<add allowDups="false" overwritePending="true" overwriteCommitted="true"><doc></doc><doc></doc></add>'),
-		
-				// content type
-				$this->equalTo('text/xml; charset=UTF-8'),
-		
-				// timeout
-				$this->equalTo(false)
-			)
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		$fixture = new Apache_Solr_service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$documents = array(
-			new Apache_Solr_Document(),
-			new Apache_Solr_Document()
-		);
-		
-		$fixture->addDocuments($documents);
-	}
-	
-	public function testAddDocumentsWithNonDefaultParameters()
-	{
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performPostRequest')
-			->with(
-				// url
-				$this->equalTo('http://localhost:8180/solr/update?wt=json'),
-				
-				// raw post
-				$this->equalTo('<add allowDups="true" overwritePending="false" overwriteCommitted="false" commitWithin="3600"><doc></doc><doc></doc></add>'),
-				
-				// content type
-				$this->equalTo('text/xml; charset=UTF-8'),
-				
-				// timeout
-				$this->equalTo(false)
-			)
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		$fixture = new Apache_Solr_service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$documents = array(
-			new Apache_Solr_Document(),
-			new Apache_Solr_Document()
-		);
-		
-		$fixture->addDocuments($documents, true, false, false, 3600);
-	}
-	
-	public function testCommit()
-	{
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performPostRequest')
-			->with(
-				// url
-				$this->equalTo('http://localhost:8180/solr/update?wt=json'),
-				
-				// raw post
-				$this->equalTo('<commit expungeDeletes="false" waitFlush="true" waitSearcher="true" />'),
-				
-				// content type
-				$this->equalTo('text/xml; charset=UTF-8'),
-				
-				// timeout
-				$this->equalTo(3600)
-			)
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		$fixture = new Apache_Solr_Service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$fixture->commit();
-	}
-	
-	public function testCommitWithNonDefaultParameters()
-	{
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performPostRequest')
-			->with(
-				// url
-				$this->equalTo('http://localhost:8180/solr/update?wt=json'),
-				
-				// raw post
-				$this->equalTo('<commit expungeDeletes="true" waitFlush="false" waitSearcher="false" />'),
-				
-				// content type
-				$this->equalTo('text/xml; charset=UTF-8'),
-				
-				// timeout
-				$this->equalTo(7200)
-			)
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		$fixture = new Apache_Solr_Service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$fixture->commit(true, false, false, 7200);
-	}
-	
-	public function testDelete()
-	{
-		$postData = "does not have to be valid";
-		
-		$expectedUrl = "http://localhost:8180/solr/update?wt=json";
-		$expectedTimeout = 3600; // default for delete
-		$expectedPostData = $postData;
-		$expectedContentType = "text/xml; charset=UTF-8"; // default for _sendRawPost
-		
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performPostRequest')
-			->with($this->equalTo($expectedUrl), $this->equalTo($postData), $this->equalTo($expectedContentType), $this->equalTo($expectedTimeout))
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		// call add
-		$fixture = new Apache_Solr_service();
-		$fixture->setHttpTransport($mockTransport);
-		$fixture->delete($postData);
-	}
-	
-	public function testDeleteById()
-	{
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performPostRequest')
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		$fixture = new Apache_Solr_Service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$fixture->deleteById("does not exist");
-	}
-	
-	public function testDeleteByMultipleIds()
-	{
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performPostRequest')
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		$fixture = new Apache_Solr_Service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$fixture->deleteByMultipleIds(array(1, 2, 3));
-	}
-	
-	public function testDeleteByQuery()
-	{
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performPostRequest')
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		$fixture = new Apache_Solr_Service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$fixture->deleteByQuery("*:*");
-	}
-	
-	public function testExtracts()
-	{
-		$extractFile = __FILE__;
-		
-		$expectedUrl = "http://localhost:8180/solr/update/extract?resource.name=ServiceTest.php&wt=json&json.nl=map";
-		$expectedPostData = file_get_contents($extractFile);
-		$expectedContentType = 'application/octet-stream'; // default for extract
-		$expectedTimeout = false;
-		
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performPostRequest')
-			->with($this->equalTo($expectedUrl), $this->equalTo($expectedPostData), $this->equalTo($expectedContentType), $this->equalTo($expectedTimeout))
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		$fixture = new Apache_Solr_Service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$fixture->extract($extractFile);
-	}
-	
-	/**
-	 * @expectedException Apache_Solr_InvalidArgumentException
-	 */
-	public function testExtractWithInvalidParams()
-	{
-		$extractFile = __FILE__;
-		
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-
-		$fixture = new Apache_Solr_Service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$fixture->extract($extractFile, "invalid");
-	}
-	
-	/**
-	 * @expectedException Apache_Solr_InvalidArgumentException
-	 */
-	public function testExtractFromStringWithInvalidParams()
-	{
-		$extractFileData = "does not matter what it is";
-		
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-
-		$fixture = new Apache_Solr_Service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$fixture->extractFromString($extractFileData, "invalid");
-	}
-	
-	public function testExtractsWithNullParams()
-	{
-		$extractFile = __FILE__;
-		
-		$expectedUrl = "http://localhost:8180/solr/update/extract?resource.name=ServiceTest.php&wt=json&json.nl=map";
-		$expectedPostData = file_get_contents($extractFile);
-		$expectedContentType = 'application/octet-stream'; // default for extract
-		$expectedTimeout = false;
-		
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performPostRequest')
-			->with($this->equalTo($expectedUrl), $this->equalTo($expectedPostData), $this->equalTo($expectedContentType), $this->equalTo($expectedTimeout))
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		$fixture = new Apache_Solr_Service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$fixture->extract($extractFile, null);
-	}
-	
-	/**
-	 * @expectedException Apache_Solr_InvalidArgumentException
-	 */
-	public function testExtractWithEmptyFile()
-	{
-		$extractFile = "iDontExist.txt";
-				
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-				
-		$fixture = new Apache_Solr_Service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$fixture->extract($extractFile);
-	}
-	
-	public function testExtractsWithDocument()
-	{
-		$extractFile = __FILE__;
-		
-		$expectedUrl = "http://localhost:8180/solr/update/extract?resource.name=ServiceTest.php&wt=json&json.nl=map&boost.field=2&literal.field=literal+value";
-		$expectedPostData = file_get_contents($extractFile);
-		$expectedContentType = 'application/octet-stream'; // default for extract
-		$expectedTimeout = false;
-		
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performPostRequest')
-			->with($this->equalTo($expectedUrl), $this->equalTo($expectedPostData), $this->equalTo($expectedContentType), $this->equalTo($expectedTimeout))
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		$fixture = new Apache_Solr_Service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$literals = new Apache_Solr_Document();
-		$literals->field = "literal value";
-		$literals->setFieldBoost('field', 2);
-		
-		$fixture->extract($extractFile, null, $literals);
-	}
-	
-	public function testExtractWithUrlDefers()
-	{
-		$extractUrl = "http://example.com";
-		
-		$expectedUrl = "http://localhost:8180/solr/update/extract?resource.name=http%3A%2F%2Fexample.com&wt=json&json.nl=map";
-		$expectedPostData = Apache_Solr_HttpTransport_ResponseTest::BODY_200;
-		$expectedContentType = 'application/octet-stream'; // default for extract
-		$expectedTimeout = false;
-		
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performGetRequest')
-			->with(
-				$this->equalTo($extractUrl)
-			)
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		$mockTransport->expects($this->once())
-			->method('performPostRequest')
-			->with(
-				$this->equalTo($expectedUrl),
-				$this->equalTo($expectedPostData),
-				$this->equalTo($expectedContentType),
-				$this->equalTo($expectedTimeout)
-			)
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		$fixture = new Apache_Solr_Service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$fixture->extract($extractUrl);
-	}
-	
-	public function testExtractFromUrl()
-	{
-		$extractUrl = "http://example.com";
-		
-		$expectedUrl = "http://localhost:8180/solr/update/extract?resource.name=http%3A%2F%2Fexample.com&wt=json&json.nl=map";
-		$expectedPostData = Apache_Solr_HttpTransport_ResponseTest::BODY_200;
-		$expectedContentType = 'application/octet-stream'; // default for extract
-		$expectedTimeout = false;
-		
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performGetRequest')
-			->with(
-				$this->equalTo($extractUrl)
-			)
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		$mockTransport->expects($this->once())
-			->method('performPostRequest')
-			->with(
-				$this->equalTo($expectedUrl),
-				$this->equalTo($expectedPostData),
-				$this->equalTo($expectedContentType),
-				$this->equalTo($expectedTimeout)
-			)
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		$fixture = new Apache_Solr_Service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$fixture->extractFromUrl($extractUrl);
-	}
-	
-	/**
-	 * @expectedException Apache_Solr_InvalidArgumentException
-	 */
-	public function testExtractFromUrlWithInvalidParams()
-	{
-		$extractUrl = "http://example.com";
-		
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-			
-		$fixture = new Apache_Solr_Service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$fixture->extractFromUrl($extractUrl, "invalid");
-	}
-	
-	public function testOptimize()
-	{
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performPostRequest')
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		$fixture = new Apache_Solr_Service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$fixture->optimize();
-	}
-	
-	public function testSearch()
-	{
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performGetRequest')
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		$fixture = new Apache_Solr_service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$fixture->search("solr");
-	}
-	
-	/**
-	 * @expectedException Apache_Solr_InvalidArgumentException
-	 */
-	public function testSearchWithInvalidParams()
-	{
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		$fixture = new Apache_Solr_service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$fixture->search("solr", 0, 10, "invalid");
-		
-		$this->fail("Should have through InvalidArgumentException");
-	}
-	
-	public function testSearchWithEmptyParams()
-	{
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performGetRequest')
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		$fixture = new Apache_Solr_service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$fixture->search("solr", 0, 10, null);
-	}
-	
-	public function testSearchWithPostMethod()
-	{
-		// set a mock transport
-		$mockTransport = $this->getMockHttpTransportInterface();
-		
-		// setup expected call and response
-		$mockTransport->expects($this->once())
-			->method('performPostRequest')
-			->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
-		
-		$fixture = new Apache_Solr_service();
-		$fixture->setHttpTransport($mockTransport);
-		
-		$fixture->search("solr", 0, 10, array(), Apache_Solr_Service::METHOD_POST);
-	}
-	
-	/**
-	 * @expectedException Apache_Solr_InvalidArgumentException
-	 */
-	public function testSearchWithInvalidMethod()
-	{
-		$fixture = new Apache_Solr_service();
-		
-		$fixture->search("solr", 0, 10, array(), "INVALID METHOD");
-	}
-}

+ 0 - 20
SolrPhpClient/tests/README

@@ -1,20 +0,0 @@
-Use the run.php script included in this directory to run all unit tests for the
-Solr PHP Client library. Your system will require phpunit PEAR package - which
-you can get install instructions for at:
-
-http://www.phpunit.de/
-
-To generate the code coverage report, you will also need the XDebug pecl package
-installed, typically this can be done with a simple:
-
-pecl install xdebug
-
-If you need more information on installation, then please see the official website:
-
-http://www.xdebug.org
-
-The scripts, configuration, and test files in this directory have been confirmed to
-work with the following versions:
-
-phpunit: 3.3.16
-xdebug: 2.0.4

+ 0 - 28
SolrPhpClient/tests/phpunit.bootstrap.inc

@@ -1,28 +0,0 @@
-<?php
-
-// set error reporting high
-error_reporting(E_ALL | E_STRICT);
-
-// make sure we see them
-ini_set('display_errors', 'On');
-
-// make sure current directory and class directories are on include path
-// this is necessary for auto load to work
-set_include_path(
-	// distribution files (where the zip / tgz is unpacked)
-	dirname(dirname(__FILE__)) . PATH_SEPARATOR .
-
-	// test file directory "tests"
-	dirname(__FILE__) . PATH_SEPARATOR .
-
-	// current include path (for PHPUnit, etc.)
-	get_include_path()
-);
-
-// set up an autoload for Zend / Pear style class loading
-spl_autoload_register(
-	function($class)
-	{
-		include(str_replace("_", DIRECTORY_SEPARATOR, $class) . ".php");
-	}
-);

+ 0 - 15
SolrPhpClient/tests/phpunit.xml

@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<phpunit bootstrap="phpunit.bootstrap.inc" colors="true">
-	<logging>
-		<log type="coverage-html" target="coverage-report" charset="UTF-8"/>
-		<!--<log type="testdox-text" target="testdox.txt" charset="UTF-8"/>-->
-	</logging>
-	<filter>
-		<whitelist>
-			<directory suffix=".php">../Apache</directory>
-			<exclude>
-				<file>./run.php</file>
-			</exclude>
-		</whitelist>
-	</filter>
-</phpunit>

+ 0 - 42
SolrPhpClient/tests/run.php

@@ -1,42 +0,0 @@
-#! /usr/bin/php
-<?php
-/**
- * Copyright (c) 2007-2010, Conduit Internet Technologies, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- *  - Redistributions of source code must retain the above copyright notice,
- *    this list of conditions and the following disclaimer.
- *  - Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *  - Neither the name of Conduit Internet Technologies, Inc. nor the names of
- *    its contributors may be used to endorse or promote products derived from
- *    this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-// make sure the working directory is correct (parent directory)
-// phpunit will use it to include our configuration files and find
-// the following specified test suite
-chdir(dirname(__FILE__));
-
-// run phpunit - will automatically use ./phpunit.xml for configuration
-// that configuration file points to a bootstrap that will include our test suite
-passthru("phpunit .");
-
-// extra newline so our next prompt isn't stuck appended to the output
-echo "\n";

+ 435 - 0
includes/document.inc

@@ -0,0 +1,435 @@
+<?php
+/**
+ * Copyright (c) 2007-2009, Conduit Internet Technologies, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ *  - Redistributions of source code must retain the above copyright notice,
+ *    this list of conditions and the following disclaimer.
+ *  - Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *  - Neither the name of Conduit Internet Technologies, Inc. nor the names of
+ *    its contributors may be used to endorse or promote products derived from
+ *    this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * @copyright Copyright 2007-2009 Conduit Internet Technologies, Inc. (http://conduit-it.com)
+ * @license New BSD (http://solr-php-client.googlecode.com/svn/trunk/COPYING)
+ * @version $Id: Document.php 15 2009-08-04 17:53:08Z donovan.jimenez $
+ *
+ * @package Apache
+ * @subpackage Solr
+ * @author Donovan Jimenez <djimenez@conduit-it.com>
+ */
+
+/**
+ * Additional code Copyright (c) 2011 by Peter Wolanin, and
+ * additional contributors.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or (at
+ * your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program as the file LICENSE.txt; if not, please see
+ * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
+ */
+
+/**
+ * Holds Key / Value pairs that represent a Solr Document along with any
+ * associated boost values. Field values can be accessed by direct dereferencing
+ * such as:
+ *
+ * @code
+ *   $document->title = 'Something';
+ *   echo $document->title;
+ * @endcode
+ *
+ * Additionally, the field values can be iterated with foreach:
+ *
+ * @code
+ *   foreach ($document as $fieldName => $fieldValue) {
+ *     // ...
+ *   }
+ * @endcode
+ */
+class SearchApiSolrDocument implements IteratorAggregate {
+
+  /**
+   * Document boost value.
+   *
+   * @var float|false
+   */
+  protected $documentBoost = FALSE;
+
+  /**
+   * Document field values, indexed by name.
+   *
+   * @var array
+   */
+  protected $fields = array();
+
+  /**
+   * Document field boost values, indexed by name.
+   *
+   * @var array
+   */
+  protected $fieldBoosts = array();
+
+  /**
+   * Clears all boosts and fields from this document.
+   */
+  public function clear() {
+    $this->documentBoost = FALSE;
+
+    $this->fields = array();
+    $this->fieldBoosts = array();
+  }
+
+  /**
+   * Gets the current document boost.
+   *
+   * @return float|false
+   *   The current document boost, or FALSE if none is set.
+   */
+  public function getBoost() {
+    return $this->documentBoost;
+  }
+
+  /**
+   * Sets the document boost factor.
+   *
+   * @param float|false $boost
+   *   FALSE for default boost, or a positive number for setting a document
+   *   boost.
+   */
+  public function setBoost($boost) {
+    $boost = (float) $boost;
+
+    if ($boost > 0.0) {
+      $this->documentBoost = $boost;
+    }
+    else {
+      $this->documentBoost = FALSE;
+    }
+  }
+
+  /**
+   * Adds a value to a multi-valued field
+   *
+   * NOTE: the solr XML format allows you to specify boosts PER value even
+   * though the underlying Lucene implementation only allows a boost per field.
+   * To remedy this, the final field boost value will be the product of all
+   * specified boosts on field values - this is similar to SolrJ's
+   * functionality.
+   *
+   * @code
+   *   $doc = new ApacheSolrDocument();
+   *   $doc->addField('foo', 'bar', 2.0);
+   *   $doc->addField('foo', 'baz', 3.0);
+   *   // Resultant field boost will be 6!
+   *   echo $doc->getFieldBoost('foo');
+   * @endcode
+   *
+   * @param string $key
+   *   The name of the field.
+   * @param $value
+   *   The value to add for the field.
+   * @param float|false $boost
+   *   FALSE for default boost, or a positive number for setting a field boost.
+   */
+  public function addField($key, $value, $boost = FALSE) {
+    if (!isset($this->fields[$key])) {
+      // create holding array if this is the first value
+      $this->fields[$key] = array();
+    }
+    else if (!is_array($this->fields[$key])) {
+      // move existing value into array if it is not already an array
+      $this->fields[$key] = array($this->fields[$key]);
+    }
+
+    if ($this->getFieldBoost($key) === FALSE) {
+      // boost not already set, set it now
+      $this->setFieldBoost($key, $boost);
+    }
+    else if ((float) $boost > 0.0) {
+      // multiply passed boost with current field boost - similar to SolrJ implementation
+      $this->fieldBoosts[$key] *= (float) $boost;
+    }
+
+    // add value to array
+    $this->fields[$key][] = $value;
+  }
+
+  /**
+   * Gets information about a field stored in Solr.
+   *
+   * @param string $key
+   *   The name of the field.
+   *
+   * @return array|false
+   *   An associative array of info if the field exists, FALSE otherwise.
+   */
+  public function getField($key) {
+    if (isset($this->fields[$key])) {
+      return array(
+        'name' => $key,
+        'value' => $this->fields[$key],
+        'boost' => $this->getFieldBoost($key)
+      );
+    }
+
+    return FALSE;
+  }
+
+  /**
+   * Sets a field value.
+   *
+   * Multi-valued fields should be set as arrays or via the addField()
+   * function which will automatically make sure the field is an array.
+   *
+   * @param string $key
+   *   The name of the field.
+   * @param string|array $value
+   *   The value to set for the field.
+   * @param float|false $boost
+   *   FALSE for default boost, or a positive number for setting a field boost.
+   */
+  public function setField($key, $value, $boost = FALSE) {
+    $this->fields[$key] = $value;
+    $this->setFieldBoost($key, $boost);
+  }
+
+  /**
+   * Gets the currently set field boost for a document field.
+   *
+   * @param string $key
+   *   The name of the field.
+   *
+   * @return float|false
+   *   The currently set field boost, or FALSE if none was set.
+   */
+  public function getFieldBoost($key) {
+    return isset($this->fieldBoosts[$key]) ? $this->fieldBoosts[$key] : FALSE;
+  }
+
+  /**
+   * Sets the field boost for a document field.
+   *
+   * @param string $key
+   *   The name of the field.
+   * @param float|false $boost
+   *   FALSE for default boost, or a positive number for setting a field boost.
+   */
+  public function setFieldBoost($key, $boost) {
+    $boost = (float) $boost;
+
+    if ($boost > 0.0) {
+      $this->fieldBoosts[$key] = $boost;
+    }
+    else {
+      $this->fieldBoosts[$key] = FALSE;
+    }
+  }
+
+  /**
+   * Returns all current field boosts, indexed by field name.
+   *
+   * @return array
+   *   An associative array in the format $field_name => $field_boost.
+   */
+  public function getFieldBoosts() {
+    return $this->fieldBoosts;
+  }
+
+  /**
+   * Gets the names of all fields in this document.
+   *
+   * @return array
+   *   The names of all fields in this document.
+   */
+  public function getFieldNames() {
+    return array_keys($this->fields);
+  }
+
+  /**
+   * Gets the values of all fields in this document.
+   *
+   * @return array
+   *   The values of all fields in this document.
+   */
+  public function getFieldValues() {
+    return array_values($this->fields);
+  }
+
+  /**
+   * Implements IteratorAggregate::getIterator().
+   *
+   * Implementing the IteratorAggregate interface allows the following usage:
+   * @code
+   *   foreach ($document as $key => $value) {
+   *     // ...
+   *   }
+   * @endcode
+   *
+   * @return Traversable
+   *   An iterator over this document's fields.
+   */
+  public function getIterator() {
+    $arrayObject = new ArrayObject($this->fields);
+
+    return $arrayObject->getIterator();
+  }
+
+  /**
+   * Magic getter for field values.
+   *
+   * @param string $key
+   *   The name of the field.
+   *
+   * @return string|array|null
+   *   The value that was set for the field.
+   */
+  public function __get($key) {
+    return $this->fields[$key];
+  }
+
+  /**
+   * Magic setter for field values.
+   *
+   * Multi-valued fields should be set as arrays or via the addField() function
+   * which will automatically make sure the field is an array.
+   *
+   * @param string $key
+   *   The name of the field.
+   * @param string|array $value
+   *   The value to set for the field.
+   */
+  public function __set($key, $value) {
+    $this->setField($key, $value);
+  }
+
+  /**
+   * Magic isset for fields values.
+   *
+   * Do not call directly. Allows the following usage:
+   * @code
+   *   isset($document->some_field);
+   * @endcode
+   *
+   * @param string $key
+   *   The name of the field.
+   *
+   * @return bool
+   *   Whether the given key is set in this document.
+   */
+  public function __isset($key) {
+    return isset($this->fields[$key]);
+  }
+
+  /**
+   * Magic unset for field values.
+   *
+   * Do not call directly. Allows the following usage:
+   * @code
+   *   unset($document->some_field);
+   * @endcode
+   *
+   * @param string $key
+   *   The name of the field.
+   */
+  public function __unset($key) {
+    unset($this->fields[$key]);
+    unset($this->fieldBoosts[$key]);
+  }
+
+  /**
+   * Create an XML fragment from this document.
+   *
+   * This string can then be used inside a Solr add call.
+   *
+   * @return string
+   *   An XML formatted string for this document.
+   */
+  public function toXml() {
+    $xml = '<doc';
+
+    if ($this->documentBoost !== FALSE) {
+      $xml .= ' boost="' . $this->documentBoost . '"';
+    }
+
+    $xml .= '>';
+
+    foreach ($this->fields as $key => $value) {
+      $fieldBoost = $this->getFieldBoost($key);
+      $key = htmlspecialchars($key, ENT_COMPAT, 'UTF-8');
+
+      if (is_array($value)) {
+        foreach ($value as $multivalue) {
+          $xml .= '<field name="' . $key . '"';
+
+          if ($fieldBoost !== FALSE) {
+            $xml .= ' boost="' . $fieldBoost . '"';
+
+            // Only set the boost for the first field in the set.
+            $fieldBoost = FALSE;
+          }
+
+          $xml .= '>' . htmlspecialchars($multivalue, ENT_NOQUOTES, 'UTF-8') . '</field>';
+        }
+      }
+      else {
+        $xml .= '<field name="' . $key . '"';
+
+        if ($fieldBoost !== FALSE) {
+          $xml .= ' boost="' . $fieldBoost . '"';
+        }
+
+        $xml .= '>' . htmlspecialchars($value, ENT_NOQUOTES, 'UTF-8') . '</field>';
+      }
+    }
+
+    $xml .= '</doc>';
+
+    // Remove any control characters to avoid Solr XML parser exception.
+    return self::stripCtrlChars($xml);
+  }
+
+  /**
+   * Sanitizes XML for sending to Solr.
+   *
+   * Replaces control (non-printable) characters that are invalid to Solr's XML
+   * parser with a space.
+   *
+   * @param string $string
+   *   The string to sanitize.
+   *
+   * @return string
+   *   A string safe for including in a Solr request.
+   */
+  public static function stripCtrlChars($string) {
+    // See:  http://w3.org/International/questions/qa-forms-utf-8.html
+    // Printable utf-8 does not include any of these chars below x7F
+    return preg_replace('@[\x00-\x08\x0B\x0C\x0E-\x1F]@', ' ', $string);
+  }
+}

ファイルの差分が大きいため隠しています
+ 482 - 127
includes/service.inc


+ 901 - 0
includes/solr_connection.inc

@@ -0,0 +1,901 @@
+<?php
+
+/**
+ * Copyright (c) 2007-2009, Conduit Internet Technologies, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ *  - Redistributions of source code must retain the above copyright notice,
+ *    this list of conditions and the following disclaimer.
+ *  - Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *  - Neither the name of Conduit Internet Technologies, Inc. nor the names of
+ *    its contributors may be used to endorse or promote products derived from
+ *    this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * @copyright Copyright 2007-2009 Conduit Internet Technologies, Inc. (http://conduit-it.com)
+ * @license New BSD (http://solr-php-client.googlecode.com/svn/trunk/COPYING)
+ * @version $Id: Service.php 22 2009-11-09 22:46:54Z donovan.jimenez $
+ *
+ * @package Apache
+ * @subpackage Solr
+ * @author Donovan Jimenez <djimenez@conduit-it.com>
+ */
+
+/**
+ * Additional code Copyright (c) 2008-2011 by Robert Douglass, James McKinney,
+ * Jacob Singh, Alejandro Garza, Peter Wolanin, and additional contributors.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or (at
+ * your option) any later version.
+
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program as the file LICENSE.txt; if not, please see
+ * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
+ */
+
+/**
+ * Starting point for the Solr API. Represents a Solr server resource and has
+ * methods for pinging, adding, deleting, committing, optimizing and searching.
+ */
+
+class SearchApiSolrConnection implements SearchApiSolrConnectionInterface {
+
+  /**
+   * Defines how NamedLists should be formatted in the output.
+   *
+   * This specifically affects facet counts. Valid values are 'map' (default) or
+   * 'flat'.
+   */
+  const NAMED_LIST_FORMAT = 'map';
+
+  /**
+   * Path to the ping servlet.
+   */
+  const PING_SERVLET = 'admin/ping';
+
+  /**
+   * Path to the update servlet.
+   */
+  const UPDATE_SERVLET = 'update';
+
+  /**
+   * Path to the search servlet.
+   */
+  const SEARCH_SERVLET = 'select';
+
+  /**
+   * Path to the luke servlet.
+   */
+  const LUKE_SERVLET = 'admin/luke';
+
+  /**
+   * Path to the system servlet.
+   */
+  const SYSTEM_SERVLET = 'admin/system';
+
+  /**
+   * Path to the stats servlet.
+   */
+  const STATS_SERVLET = 'admin/stats.jsp';
+
+  /**
+   * Path to the stats servlet for Solr 4.x servers.
+   */
+  const STATS_SERVLET_4 = 'admin/mbeans?wt=xml&stats=true';
+
+  /**
+   * Path to the file servlet.
+   */
+  const FILE_SERVLET = 'admin/file';
+
+  /**
+   * The options passed when creating this connection.
+   *
+   * @var array
+   */
+  protected $options;
+
+  /**
+   * The Solr server's URL.
+   *
+   * @var string
+   */
+  protected $base_url;
+
+  /**
+   * Cached URL to the update servlet.
+   *
+   * @var string
+   */
+  protected $update_url;
+
+  /**
+   * The HTTP method to use for search requests.
+   *
+   * @var string
+   */
+  protected $method;
+
+  /**
+   * HTTP Basic Authentication header to set for requests to the Solr server.
+   *
+   * @var string
+   */
+  protected $http_auth;
+
+  /**
+   * The stream context to use for requests to the Solr server.
+   *
+   * Defaults to NULL (= pass no context at all).
+   *
+   * @var string
+   */
+  protected $stream_context;
+
+  /**
+   * Cache for the metadata from admin/luke.
+   *
+   * Contains an array of response objects, keyed by the number of "top terms".
+   *
+   * @var array
+   *
+   * @see getLuke()
+   */
+  protected $luke = array();
+
+  /**
+   * Cache for information about the Solr core.
+   *
+   * @var SimpleXMLElement
+   *
+   * @see getStats()
+   */
+  protected $stats;
+
+  /**
+   * Cache for system information.
+   *
+   * @var array
+   *
+   * @see getSystemInfo()
+   */
+  protected $system_info;
+
+  /**
+   * Flag that denotes whether to use soft commits for Solr 4.x.
+   *
+   * Defaults to FALSE.
+   *
+   * @var bool
+   */
+  protected $soft_commit = FALSE;
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::__construct().
+   *
+   * Valid options include:
+   *   - scheme: Scheme of the base URL of the Solr server. Most probably "http"
+   *     or "https". Defaults to "http".
+   *   - host: The host name (or IP) of the Solr server. Defaults to
+   *     "localhost".
+   *   - port: The port of the Solr server. Defaults to 8983.
+   *   - path: The base path to the Solr server. Defaults to "/solr/".
+   *   - http_user: If both this and "http_pass" are set, will use this
+   *     information to add basic HTTP authentication to all requests to the
+   *     Solr server. Not set by default.
+   *   - http_pass: See "http_user".
+   *   - http_method: The HTTP method to use for searches. Can be either "GET"
+   *     or "POST". Defaults to "POST".
+   */
+  public function __construct(array $options) {
+    $options += array(
+      'scheme' => 'http',
+      'host' => 'localhost',
+      'port' => 8983,
+      'path' => 'solr',
+      'http_user' => NULL,
+      'http_pass' => NULL,
+      'http_method' => 'POST',
+    );
+    $this->options = $options;
+
+    $path = '/' . trim($options['path'], '/') . '/';
+    $this->base_url = $options['scheme'] . '://' . $options['host'] . ':' . $options['port'] . $path;
+
+    // Make sure we always have a valid method set, default to POST.
+    $this->method = $options['http_method'] == 'GET' ? 'GET' : 'POST';
+
+    // Set HTTP Basic Authentication parameter, if login data was set.
+    if (strlen($options['http_user']) && strlen($options['http_pass'])) {
+      $this->http_auth = 'Basic ' . base64_encode($options['http_user'] . ':' . $options['http_pass']);
+    }
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::ping().
+   */
+  public function ping($timeout = 2) {
+    $start = microtime(TRUE);
+
+    if ($timeout <= 0.0) {
+      $timeout = -1;
+    }
+    $pingUrl = $this->constructUrl(self::PING_SERVLET);
+
+    // Attempt a HEAD request to the Solr ping url.
+    $options = array(
+      'method' => 'HEAD',
+      'timeout' => $timeout,
+    );
+    $response = $this->makeHttpRequest($pingUrl, $options);
+
+    if ($response->code == 200) {
+      // Add 1 µs to the ping time so we never return 0.
+      return (microtime(TRUE) - $start) + 1E-6;
+    }
+    else {
+      return FALSE;
+    }
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::setSoftCommit().
+   */
+  public function setSoftCommit($soft_commit) {
+    $this->soft_commit = (bool) $soft_commit;
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::getSoftCommit().
+   */
+  public function getSoftCommit() {
+    return $this->soft_commit;
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::setStreamContext().
+   */
+  public function setStreamContext($stream_context) {
+    $this->stream_context = $stream_context;
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::getStreamContext().
+   */
+  public function getStreamContext() {
+    return $this->stream_context;
+  }
+
+  /**
+   * Computes the cache ID to use for this connection.
+   *
+   * @param $suffix
+   *   (optional) A suffix to append to the string to make it unique.
+   *
+   * @return string|null
+   *   The cache ID to use for this connection and usage; or NULL if no caching
+   *   should take place.
+   */
+  protected function getCacheId($suffix = '') {
+    if (!empty($this->options['server'])) {
+      $cid = $this->options['server'];
+      return $suffix ? "$cid:$suffix" : $cid;
+    }
+  }
+
+  /**
+   * Call the /admin/system servlet to retrieve system information.
+   *
+   * Stores the retrieved information in $system_info.
+   *
+   * @see getSystemInfo()
+   */
+  protected function setSystemInfo() {
+    $cid = $this->getCacheId(__FUNCTION__);
+    if ($cid) {
+      $cache = cache_get($cid, 'cache_search_api_solr');
+      if ($cache) {
+        $this->system_info = json_decode($cache->data);
+      }
+    }
+    // Second pass to populate the cache if necessary.
+    if (empty($this->system_info)) {
+      $url = $this->constructUrl(self::SYSTEM_SERVLET, array('wt' => 'json'));
+      $response = $this->sendRawGet($url);
+      $this->system_info = json_decode($response->data);
+      if ($cid) {
+        cache_set($cid, $response->data, 'cache_search_api_solr');
+      }
+    }
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::getSystemInfo().
+   */
+  public function getSystemInfo() {
+    if (!isset($this->system_info)) {
+      $this->setSystemInfo();
+    }
+    return $this->system_info;
+  }
+
+  /**
+   * Sets $this->luke with the metadata about the index from admin/luke.
+   */
+  protected function setLuke($num_terms = 0) {
+    if (empty($this->luke[$num_terms])) {
+      $cid = $this->getCacheId(__FUNCTION__ . ":$num_terms");
+      if ($cid) {
+        $cache = cache_get($cid, 'cache_search_api_solr');
+        if (isset($cache->data)) {
+          $this->luke = $cache->data;
+        }
+      }
+      // Second pass to populate the cache if necessary.
+      if (empty($this->luke[$num_terms])) {
+        $params = array(
+          'numTerms' => "$num_terms",
+          'wt' => 'json',
+          'json.nl' => self::NAMED_LIST_FORMAT,
+        );
+        $url = $this->constructUrl(self::LUKE_SERVLET, $params);
+        $this->luke[$num_terms] = $this->sendRawGet($url);
+        if ($cid) {
+          cache_set($cid, $this->luke, 'cache_search_api_solr');
+        }
+      }
+    }
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::getFields().
+   */
+  public function getFields($num_terms = 0) {
+    $fields = array();
+    foreach ($this->getLuke($num_terms)->fields as $name => $info) {
+      $fields[$name] = new SearchApiSolrField($info);
+    }
+    return $fields;
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::getLuke().
+   */
+  public function getLuke($num_terms = 0) {
+    if (!isset($this->luke[$num_terms])) {
+      $this->setLuke($num_terms);
+    }
+    return $this->luke[$num_terms];
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::getSolrVersion().
+   */
+  public function getSolrVersion() {
+    $system_info = $this->getSystemInfo();
+    // Get our solr version number
+    if (isset($system_info->lucene->{'solr-spec-version'})) {
+      return $system_info->lucene->{'solr-spec-version'}[0];
+    }
+    return 0;
+  }
+
+  /**
+   * Stores information about the Solr core in $this->stats.
+   */
+  protected function setStats() {
+    $data = $this->getLuke();
+    $solr_version = $this->getSolrVersion();
+    // Only try to get stats if we have connected to the index.
+    if (empty($this->stats) && isset($data->index->numDocs)) {
+      $cid = $this->getCacheId(__FUNCTION__);
+      if ($cid) {
+        $cache = cache_get($cid, 'cache_search_api_solr');
+        if (isset($cache->data)) {
+          $this->stats = simplexml_load_string($cache->data);
+        }
+      }
+      // Second pass to populate the cache if necessary.
+      if (empty($this->stats)) {
+        if ($solr_version >= 4) {
+          $url = $this->constructUrl(self::STATS_SERVLET_4);
+        }
+        else {
+          $url = $this->constructUrl(self::STATS_SERVLET);
+        }
+        $response = $this->sendRawGet($url);
+        $this->stats = simplexml_load_string($response->data);
+        if ($this->env_id) {
+          cache_set($cid, $response->data, 'cache_search_api_solr');
+        }
+      }
+    }
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::getStats().
+   */
+  public function getStats() {
+    if (!isset($this->stats)) {
+      $this->setStats();
+    }
+    return $this->stats;
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::getStatsSummary().
+   */
+  public function getStatsSummary() {
+    $stats = $this->getStats();
+    $solr_version = $this->getSolrVersion();
+
+    $summary = array(
+     '@pending_docs' => '',
+     '@autocommit_time_seconds' => '',
+     '@autocommit_time' => '',
+     '@deletes_by_id' => '',
+     '@deletes_by_query' => '',
+     '@deletes_total' => '',
+     '@schema_version' => '',
+     '@core_name' => '',
+     '@index_size' => '',
+    );
+
+    if (!empty($stats)) {
+      if ($solr_version <= 3) {
+        $docs_pending_xpath = $stats->xpath('//stat[@name="docsPending"]');
+        $summary['@pending_docs'] = (int) trim(current($docs_pending_xpath));
+        $max_time_xpath = $stats->xpath('//stat[@name="autocommit maxTime"]');
+        $max_time = (int) trim(current($max_time_xpath));
+        // Convert to seconds.
+        $summary['@autocommit_time_seconds'] = $max_time / 1000;
+        $summary['@autocommit_time'] = format_interval($max_time / 1000);
+        $deletes_id_xpath = $stats->xpath('//stat[@name="deletesById"]');
+        $summary['@deletes_by_id'] = (int) trim(current($deletes_id_xpath));
+        $deletes_query_xpath = $stats->xpath('//stat[@name="deletesByQuery"]');
+        $summary['@deletes_by_query'] = (int) trim(current($deletes_query_xpath));
+        $summary['@deletes_total'] = $summary['@deletes_by_id'] + $summary['@deletes_by_query'];
+        $schema = $stats->xpath('/solr/schema[1]');
+        $summary['@schema_version'] = trim($schema[0]);
+        $core = $stats->xpath('/solr/core[1]');
+        $summary['@core_name'] = trim($core[0]);
+        $size_xpath = $stats->xpath('//stat[@name="indexSize"]');
+        $summary['@index_size'] = trim(current($size_xpath));
+      }
+      else {
+        $system_info = $this->getSystemInfo();
+        $docs_pending_xpath = $stats->xpath('//lst["stats"]/long[@name="docsPending"]');
+        $summary['@pending_docs'] = (int) trim(current($docs_pending_xpath));
+        $max_time_xpath = $stats->xpath('//lst["stats"]/str[@name="autocommit maxTime"]');
+        $max_time = (int) trim(current($max_time_xpath));
+        // Convert to seconds.
+        $summary['@autocommit_time_seconds'] = $max_time / 1000;
+        $summary['@autocommit_time'] = format_interval($max_time / 1000);
+        $deletes_id_xpath = $stats->xpath('//lst["stats"]/long[@name="deletesById"]');
+        $summary['@deletes_by_id'] = (int) trim(current($deletes_id_xpath));
+        $deletes_query_xpath = $stats->xpath('//lst["stats"]/long[@name="deletesByQuery"]');
+        $summary['@deletes_by_query'] = (int) trim(current($deletes_query_xpath));
+        $summary['@deletes_total'] = $summary['@deletes_by_id'] + $summary['@deletes_by_query'];
+        $schema = $system_info->core->schema;
+        $summary['@schema_version'] = $schema;
+        $core = $stats->xpath('//lst["core"]/str[@name="coreName"]');
+        $summary['@core_name'] = trim(current($core));
+        $size_xpath = $stats->xpath('//lst["core"]/str[@name="indexSize"]');
+        $summary['@index_size'] = trim(current($size_xpath));
+      }
+    }
+
+    return $summary;
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::clearCache().
+   */
+  public function clearCache() {
+    if ($cid = $this->getCacheId()) {
+      cache_clear_all($cid, 'cache_search_api_solr', TRUE);
+      cache_clear_all($cid, 'cache_search_api_solr', TRUE);
+    }
+    $this->luke = array();
+    $this->stats = NULL;
+    $this->system_info = NULL;
+  }
+
+  /**
+   * Checks the reponse code and throws an exception if it's not 200.
+   *
+   * @param object $response
+   *   A response object.
+   *
+   * @return object
+   *   The passed response object.
+   *
+   * @throws SearchApiException
+   *   If the object's HTTP status is not 200.
+   */
+  protected function checkResponse($response) {
+    $code = (int) $response->code;
+
+    if ($code != 200) {
+      if ($code >= 400 && $code != 403 && $code != 404) {
+        // Add details, like Solr's exception message.
+        $response->status_message .= $response->data;
+      }
+      throw new SearchApiException('"' . $code . '" Status: ' . $response->status_message);
+    }
+
+    return $response;
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::makeServletRequest().
+   */
+  public function makeServletRequest($servlet, array $params = array(), array $options = array()) {
+    // Add default params.
+    $params += array(
+      'wt' => 'json',
+      'json.nl' => self::NAMED_LIST_FORMAT,
+    );
+
+    $url = $this->constructUrl($servlet, $params);
+    $response = $this->makeHttpRequest($url, $options);
+
+    return $this->checkResponse($response);
+  }
+
+  /**
+   * Central method for making a GET operation against this Solr Server
+   */
+  protected function sendRawGet($url, array $options = array()) {
+    $options['method'] = 'GET';
+    $response = $this->makeHttpRequest($url, $options);
+
+    return $this->checkResponse($response);
+  }
+
+  /**
+   * Central method for making a POST operation against this Solr Server
+   */
+  protected function sendRawPost($url, array $options = array()) {
+    $options['method'] = 'POST';
+    // Normally we use POST to send XML documents.
+    if (empty($options['headers']['Content-Type'])) {
+      $options['headers']['Content-Type'] = 'text/xml; charset=UTF-8';
+    }
+    $response = $this->makeHttpRequest($url, $options);
+
+    return $this->checkResponse($response);
+  }
+
+  /**
+   * Sends an HTTP request to Solr.
+   *
+   * This is just a wrapper around drupal_http_request().
+   */
+  protected function makeHttpRequest($url, array $options = array()) {
+    if (empty($options['method']) || $options['method'] == 'GET' || $options['method'] == 'HEAD') {
+      // Make sure we are not sending a request body.
+      $options['data'] = NULL;
+    }
+    if ($this->http_auth) {
+      $options['headers']['Authorization'] = $this->http_auth;
+    }
+    if ($this->stream_context) {
+      $options['context'] = $this->stream_context;
+    }
+
+    $result = drupal_http_request($url, $options);
+
+    if (!isset($result->code) || $result->code < 0) {
+      $result->code = 0;
+      $result->status_message = 'Request failed';
+      $result->protocol = 'HTTP/1.0';
+    }
+    // Additional information may be in the error property.
+    if (isset($result->error)) {
+      $result->status_message .= ': ' . check_plain($result->error);
+    }
+
+    if (!isset($result->data)) {
+      $result->data = '';
+      $result->response = NULL;
+    }
+    else {
+      $response = json_decode($result->data);
+      if (is_object($response)) {
+        foreach ($response as $key => $value) {
+          $result->$key = $value;
+        }
+      }
+    }
+
+    return $result;
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::escape().
+   */
+  public static function escape($value, $version = 0) {
+    $replacements = array();
+
+    $specials = array('+', '-', '&&', '||', '!', '(', ')', '{', '}', '[', ']', '^', '"', '~', '*', '?', ':', "\\");
+    // Solr 4.x introduces regular expressions, making the slash also a special
+    // character.
+    if ($version >= 4) {
+      $specials[] = '/';
+    }
+
+    foreach ($specials as $special) {
+      $replacements[$special] = "\\$special";
+    }
+
+    return strtr($value, $replacements);
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::escapePhrase().
+   */
+  public static function escapePhrase($value) {
+    $replacements['"'] = '\"';
+    $replacements["\\"] = "\\\\";
+    return strtr($value, $replacements);
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::phrase().
+   */
+  public static function phrase($value) {
+    return '"' . self::escapePhrase($value) . '"';
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::escapeFieldName().
+   */
+  public static function escapeFieldName($value) {
+    $value = str_replace(':', '\:', $value);
+    return $value;
+  }
+
+  /**
+   * Returns the HTTP URL for a certain servlet on the Solr server.
+   *
+   * @param $servlet
+   *   A string path to a Solr request handler.
+   * @param array $params
+   *   Additional GET parameters to append to the URL.
+   * @param $added_query_string
+   *   Additional query string to append to the URL.
+   *
+   * @return string
+   */
+  protected function constructUrl($servlet, array $params = array(), $added_query_string = NULL) {
+    // PHP's built in http_build_query() doesn't give us the format Solr wants.
+    $query_string = $this->httpBuildQuery($params);
+
+    if ($query_string) {
+      $query_string = '?' . $query_string;
+      if ($added_query_string) {
+        $query_string = $query_string . '&' . $added_query_string;
+      }
+    }
+    elseif ($added_query_string) {
+      $query_string = '?' . $added_query_string;
+    }
+
+    return $this->base_url . $servlet . $query_string;
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::getBaseUrl().
+   */
+  public function getBaseUrl() {
+    return $this->base_url;
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::setBaseUrl().
+   */
+  public function setBaseUrl($url) {
+    $this->base_url = $url;
+    $this->update_url = NULL;
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::update().
+   */
+  public function update($rawPost, $timeout = FALSE) {
+    if (empty($this->update_url)) {
+      // Store the URL in an instance variable since many updates may be sent
+      // via a single instance of this class.
+      $this->update_url = $this->constructUrl(self::UPDATE_SERVLET, array('wt' => 'json'));
+    }
+    $options['data'] = $rawPost;
+    if ($timeout) {
+      $options['timeout'] = $timeout;
+    }
+    return $this->sendRawPost($this->update_url, $options);
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::addDocuments().
+   */
+  public function addDocuments(array $documents, $overwrite = NULL, $commitWithin = NULL) {
+    $attr = '';
+
+    if (isset($overwrite)) {
+      $attr .= ' overwrite="' . ($overwrite ? 'true"' : 'false"');
+    }
+    if (isset($commitWithin)) {
+      $attr .= ' commitWithin="' . ((int) $commitWithin) . '"';
+    }
+
+    $rawPost = "<add$attr>";
+    foreach ($documents as $document) {
+      if (is_object($document) && ($document instanceof SearchApiSolrDocument)) {
+        $rawPost .= $document->toXml();
+      }
+    }
+    $rawPost .= '</add>';
+
+    return $this->update($rawPost);
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::commit().
+   */
+  public function commit($waitSearcher = TRUE, $timeout = 3600) {
+    return $this->optimizeOrCommit('commit', $waitSearcher, $timeout);
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::deleteById().
+   */
+  public function deleteById($id, $timeout = 3600) {
+    return $this->deleteByMultipleIds(array($id), $timeout);
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::deleteByMultipleIds().
+   */
+  public function deleteByMultipleIds(array $ids, $timeout = 3600) {
+    $rawPost = '<delete>';
+
+    foreach ($ids as $id) {
+      $rawPost .= '<id>' . htmlspecialchars($id, ENT_NOQUOTES, 'UTF-8') . '</id>';
+    }
+    $rawPost .= '</delete>';
+
+    return $this->update($rawPost, $timeout);
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::deleteByQuery().
+   */
+  public function deleteByQuery($rawQuery, $timeout = 3600) {
+    $rawPost = '<delete><query>' . htmlspecialchars($rawQuery, ENT_NOQUOTES, 'UTF-8') . '</query></delete>';
+
+    return $this->update($rawPost, $timeout);
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::optimize().
+   */
+  public function optimize($waitSearcher = TRUE, $timeout = 3600) {
+    return $this->optimizeOrCommit('optimize', $waitSearcher, $timeout);
+  }
+
+  /**
+   * Sends an commit or optimize command to the Solr server.
+   *
+   * Will be synchronous unless $waitSearcher is set to FALSE.
+   *
+   * @param $type
+   *   Either "commit" or "optimize".
+   * @param $waitSearcher
+   *   (optional) Wait until a new searcher is opened and registered as the main
+   *   query searcher, making the changes visible. Defaults to true.
+   * @param $timeout
+   *   Seconds to wait until timing out with an exception. Defaults to an hour.
+   *
+   * @return
+   *   A response object.
+   *
+   * @throws SearchApiException
+   *   If an error occurs during the service call.
+   */
+  protected function optimizeOrCommit($type, $waitSearcher = TRUE, $timeout = 3600) {
+    $waitSearcher = $waitSearcher ? '' : ' waitSearcher="false"';
+
+    if ($this->getSolrVersion() <= 3) {
+      $rawPost = "<$type$waitSearcher />";
+    }
+    else {
+      $softCommit = ($this->soft_commit) ?  ' softCommit="true"' : '';
+      $rawPost = "<$type$waitSearcher$softCommit />";
+    }
+
+    $response = $this->update($rawPost, $timeout);
+    $this->clearCache();
+
+    return $response;
+  }
+
+  /**
+   * Like PHP's built in http_build_query(), but uses rawurlencode() and no [] for repeated params.
+   */
+  protected function httpBuildQuery(array $query, $parent = '') {
+    $params = array();
+
+    foreach ($query as $key => $value) {
+      $key = ($parent ? $parent : rawurlencode($key));
+
+      // Recurse into children.
+      if (is_array($value)) {
+        $params[] = $this->httpBuildQuery($value, $key);
+      }
+      // If a query parameter value is NULL, only append its key.
+      elseif (!isset($value)) {
+        $params[] = $key;
+      }
+      else {
+        $params[] = $key . '=' . rawurlencode($value);
+      }
+    }
+
+    return implode('&', $params);
+  }
+
+  /**
+   * Implements SearchApiSolrConnectionInterface::search().
+   */
+  public function search($query = NULL, array $params = array(), $method = 'GET') {
+    // Always use JSON. See
+    // http://code.google.com/p/solr-php-client/issues/detail?id=6#c1 for
+    // reasoning.
+    $params['wt'] = 'json';
+    // Additional default params.
+    $params += array(
+      'json.nl' => self::NAMED_LIST_FORMAT,
+    );
+    if ($query) {
+      $params['q'] = $query;
+    }
+    // PHP's built-in http_build_query() doesn't give us the format Solr wants.
+    $queryString = $this->httpBuildQuery($params);
+
+    if ($this->method == 'GET') {
+      $searchUrl = $this->constructUrl(self::SEARCH_SERVLET, array(), $queryString);
+      return $this->sendRawGet($searchUrl);
+    }
+    else if ($this->method == 'POST') {
+      $searchUrl = $this->constructUrl(self::SEARCH_SERVLET);
+      $options['data'] = $queryString;
+      $options['headers']['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8';
+      return $this->sendRawPost($searchUrl, $options);
+    }
+  }
+}

+ 365 - 0
includes/solr_connection.interface.inc

@@ -0,0 +1,365 @@
+<?php
+
+/**
+ * The interface for a Solr connection class.
+ */
+interface SearchApiSolrConnectionInterface {
+
+  /**
+   * Constructs a Solr connection objects.
+   *
+   * @param array $options
+   *   An array containing construction arguments.
+   */
+  public function __construct(array $options);
+
+  /**
+   * Calls the /admin/ping servlet, to test the connection to the server.
+   *
+   * @param int|false $timeout
+   *   Maximum time to wait for ping in seconds, -1 for unlimited (default 2).
+   *
+   * @return float|false
+   *   Seconds taken to ping the server, FALSE if timeout occured.
+   */
+  public function ping($timeout = 2);
+
+  /**
+   * Sets whether this connection will use soft commits when comitting.
+   *
+   * Note that this setting only has any effect when using Solr 4.x or higher.
+   *
+   * @param $soft_commit
+   *   TRUE if soft commits should be used, FALSE otherwise. Default is FALSE.
+   */
+  public function setSoftCommit($soft_commit);
+
+  /**
+   * Tells whether this connection will use soft commits when comitting.
+   *
+   * Note that this setting only has any effect when using Solr 4.x or higher.
+   *
+   * @return
+   *   TRUE if soft commits will be used, FALSE otherwise.
+   */
+  public function getSoftCommit();
+
+  /**
+   * Set the stream context to use for requests to the Solr server.
+   *
+   * Must be a valid stream context as created by stream_context_create(). By
+   * default, no special stream context will be used.
+   *
+   * @param resource|null $stream_context
+   *   A valid  stream context as created by stream_context_create(). Or NULL to
+   *   use the default behavior.
+   */
+  public function setStreamContext($stream_context);
+
+  /**
+   * Returns the stream context to use for requests to the Solr server.
+   *
+   * By default, no special stream context will be used and this method will
+   * return NULL.
+   *
+   * @return resource|null
+   *   A valid  stream context as created by stream_context_create(). Or NULL if
+   *   the default behavior is used.
+   */
+  public function getStreamContext();
+
+  /**
+   * Gets information about the Solr Core.
+   *
+   * @return array
+   *   An array with system information.
+   */
+  public function getSystemInfo();
+
+  /**
+   * Get metadata about fields in the Solr/Lucene index.
+   *
+   * @param int $num_terms
+   *   Number of 'top terms' to return.
+   *
+   * @return array
+   *   An array of SearchApiSolrField objects.
+   */
+  public function getFields($num_terms = 0);
+
+  /**
+   * Gets meta-data about the index.
+   *
+   * @param int $num_terms
+   *   Number of 'top terms' to return.
+   *
+   * @return object
+   *   A response object filled with data from Solr's Luke.
+   */
+  public function getLuke($num_terms = 0);
+
+  /**
+   * Gets information about the Solr core.
+   *
+   * @return SimpleXMLElement
+   *   A Simple XMl document.
+   */
+  public function getStats();
+
+  /**
+   * Gets summary information about the Solr Core.
+   */
+  public function getStatsSummary();
+
+  /**
+   * Clears the cached Solr data.
+   */
+  public function clearCache();
+
+  /**
+   * Makes a request to a servlet (a path) that's not a standard path.
+   *
+   * @param string $servlet
+   *   A path to be added to the base Solr path. e.g. 'extract/tika'.
+   * @param array $params
+   *   Any request parameters when constructing the URL.
+   * @param array $options
+   *  Options to be passed to drupal_http_request().
+   *
+   * @return object
+   *  The HTTP response object.
+   *
+   * @throws Exception
+   */
+  public function makeServletRequest($servlet, array $params = array(), array $options = array());
+
+  /**
+   * Gets the base URL of the Solr server.
+   *
+   * @return string
+   *   The base URL of the Solr server.
+   */
+  public function getBaseUrl();
+
+  /**
+   * Sets the base URL of the Solr server.
+   *
+   * @param string $url
+   *   The new base URL of the Solr server.
+   */
+  public function setBaseUrl($url);
+
+  /**
+   * Sends a raw update request to the Solr server.
+   *
+   * Takes a raw post body and sends it to the update service. Post body should
+   * be a complete and well-formed XML document.
+   *
+   * @param string $rawPost
+   *   The XML document to send to the Solr server's update service.
+   * @param int|false $timeout
+   *   (optional) Maximum expected duration (in seconds). Defaults to not timing
+   *   out.
+   *
+   * @return object
+   *   A response object.
+   *
+   * @throws Exception
+   *   If an error occurs during the service call
+   */
+  public function update($rawPost, $timeout = FALSE);
+
+  /**
+   * Adds an array of Solr Documents to the index all at once
+   *
+   * @param array $documents
+   *   Should be an array of ApacheSolrDocument instances
+   * @param bool $overwrite
+   *   (optional) Set whether existing documents with the same IDs should be
+   *   overwritten. Defaults to TRUE.
+   * @param bool $commitWithin
+   *   (optional) The time in which the indexed documents should be committed to
+   *   the index, in milliseconds. This works in addition to the Solr server's
+   *   auto commit settings. Defaults to no additional handling.
+   *
+   * @return object
+   *   A response object.
+   *
+   * @throws Exception
+   *   If an error occurs during the service call.
+   */
+  public function addDocuments(array $documents, $overwrite = NULL, $commitWithin = NULL);
+
+  /**
+   * Sends a commit command to the Solr server.
+   *
+   * Will be synchronous unless $waitSearcher is set to FALSE.
+   *
+   * @param bool $waitSearcher
+   *   (optional) Wait until a new searcher is opened and registered as the main
+   *   query searcher, making the changes visible. Defaults to true.
+   * @param int|false $timeout
+   *   Seconds to wait until timing out with an exception. Defaults to an hour.
+   *
+   * @return object
+   *   A response object.
+   *
+   * @throws Exception
+   *   If an error occurs during the service call.
+   */
+  public function commit($waitSearcher = TRUE, $timeout = 3600);
+
+  /**
+   * Sends a delete request based on a document ID.
+   *
+   * @param string $id
+   *   The ID of the document which should be deleted. Expected to be UTF-8
+   *   encoded.
+   * @param int|false $timeout
+   *   Seconds to wait until timing out with an exception. Defaults to an hour.
+   *
+   * @return object
+   *   A response object.
+   *
+   * @throws Exception
+   *   If an error occurs during the service call.
+   */
+  public function deleteById($id, $timeout = 3600);
+
+  /**
+   * Sends a delete request for several documents, based on the document IDs.
+   *
+   * @param array $id
+   *   The IDs of the documents which should be deleted. Expected to be UTF-8
+   *   encoded.
+   * @param int|false $timeout
+   *   Seconds to wait until timing out with an exception. Defaults to an hour.
+   *
+   * @return object
+   *   A response object.
+   *
+   * @throws Exception
+   *   If an error occurs during the service call.
+   */
+  public function deleteByMultipleIds(array $ids, $timeout = 3600);
+
+  /**
+   * Sends a delete request for all documents that match the given Solr query.
+   *
+   * @param string $rawQuery
+   *   The query whose results should be deleted. Expected to be UTF-8 encoded.
+   * @param int|false $timeout
+   *   Seconds to wait until timing out with an exception. Defaults to an hour.
+   *
+   * @return object
+   *   A response object.
+   *
+   * @throws Exception
+   *   If an error occurs during the service call.
+   */
+  public function deleteByQuery($rawQuery, $timeout = 3600);
+
+  /**
+   * Sends an optimize command to the Solr server.
+   *
+   * Will be synchronous unless $waitSearcher is set to FALSE.
+   *
+   * @param bool $waitSearcher
+   *   (optional) Wait until a new searcher is opened and registered as the main
+   *   query searcher, making the changes visible. Defaults to true.
+   * @param int|false $timeout
+   *   Seconds to wait until timing out with an exception. Defaults to an hour.
+   *
+   * @return object
+   *   A response object.
+   *
+   * @throws Exception
+   *   If an error occurs during the service call.
+   */
+  public function optimize($waitSearcher = TRUE, $timeout = 3600);
+
+  /**
+   * Executes a search on the Solr server.
+   *
+   * @param string|null $query
+   *   (optional) The raw query string. Defaults to an empty query.
+   * @param array $params
+   *   (optional) Key / value pairs for other query parameters (see Solr
+   *   documentation). Use arrays for parameter keys used more than once (e.g.,
+   *   facet.field).
+   * @param string $method
+   *   The HTTP method to use. Must be either "GET" or "POST". Defaults to
+   *   "GET".
+   *
+   * @return object
+   *   A response object.
+   *
+   * @throws Exception
+   *   If an error occurs during the service call.
+   */
+  public function search($query = NULL, array $params = array(), $method = 'GET');
+
+  /**
+   * Escapes special characters from a Solr query.
+   *
+   * A complete list of special characters in Solr queries can be viewed at
+   * http://lucene.apache.org/java/docs/queryparsersyntax.html#Escaping%20Special%20Characters
+   *
+   * @param string $value
+   *   The string to escape.
+   * @param string $version
+   *   An integer representing major solr version release.
+   *
+   * @return string
+   *   An escaped string suitable for passing to Solr.
+   */
+  public static function escape($value, $version = 0);
+
+  /**
+   * Escapes a string that should be included in a Solr phrase.
+   *
+   * In contrast to escape(), this only escapes '"' and '\'.
+   *
+   * @param string $value
+   *   The string to escape.
+   *
+   * @return string
+   *   An escaped string suitable for passing to Solr.
+   */
+  public static function escapePhrase($value);
+
+  /**
+   * Converts a string to a Solr phrase.
+   *
+   * @param string $value
+   *   The string to convert to a phrase.
+   *
+   * @return string
+   *   A phrase string suitable for passing to Solr.
+   */
+  public static function phrase($value);
+
+  /**
+   * Escapes a Search API field name for passing to Solr.
+   *
+   * Since field names can only contain one special character, ":", there is no
+   * need to use the complete escape() method.
+   *
+   * @param string $value
+   *   The field name to escape.
+   *
+   * @return string
+   *   An escaped string suitable for passing to Solr.
+   */
+  public static function escapeFieldName($value);
+
+  /**
+   * Gets the current solr version.
+   *
+   * @return int
+   *   1, 3 or 4. Does not give a more detailed version, for that you need to
+   *   use getSystemInfo().
+   */
+  public function getSolrVersion();
+
+}

+ 106 - 10
solr_field.inc → includes/solr_field.inc

@@ -39,7 +39,7 @@ class SearchApiSolrField {
   protected $schema;
 
   /**
-   * Constructor.
+   * Constructs a field information object.
    *
    * @param stdClass $field
    *   A field object from Solr's "Luke" servlet.
@@ -49,7 +49,17 @@ class SearchApiSolrField {
   }
 
   /**
-   * Get the type of the Solr field, according to the Solr schema.
+   * Gets the raw information of the field.
+   *
+   * @return object
+   *   A field metadata object.
+   */
+  public function getRaw() {
+    return $this->field;
+  }
+
+  /**
+   * Gets the type of the Solr field, according to the Solr schema.
    *
    * Note that field types like "text", "boolean", and "date" are conventions,
    * but their presence and behavior are entirely determined by the particular
@@ -63,7 +73,7 @@ class SearchApiSolrField {
   }
 
   /**
-   * Get an array of field properties.
+   * Gets an array of field properties.
    *
    * @return array
    *   An array of properties describing the solr schema. The array keys are
@@ -80,7 +90,7 @@ class SearchApiSolrField {
   }
 
   /**
-   * Get the "dynamic base" of this field.
+   * Gets the "dynamic base" of this field.
    *
    * This typically looks like 'ss_*, and is used to aggregate fields based on
    * "hungarian" naming conventions.
@@ -93,12 +103,12 @@ class SearchApiSolrField {
   }
 
   /**
-   * Determine whether this field may be suitable for use as a key field.
+   * Determines whether this field may be suitable for use as a key field.
    *
    * Unfortunately, it seems like the best way to find an actual uniqueKey field
    * according to Solr is to examine the Solr core's schema.xml.
    *
-   * @return boolean
+   * @return bool
    *   Whether the field is suitable for use as a key.
    */
   public function isPossibleKey() {
@@ -109,14 +119,14 @@ class SearchApiSolrField {
   }
 
   /**
-   * Determine whether a field is suitable for sorting.
+   * Determines whether a field is suitable for sorting.
    *
    * In order for a field to yield useful sorted results in Solr, it must be
    * indexed, not multivalued, and not tokenized. It's ok if a field is
    * tokenized and yields only one token, but there's no general way to check
    * for that.
    *
-   * @return boolean
+   * @return bool
    *   Whether the field is suitable for sorting.
    */
   public function isSortable() {
@@ -126,60 +136,146 @@ class SearchApiSolrField {
   }
 
   /**
-   * The following functions return information about specific properties of this field.
+   * Determines whether this field is indexed.
    *
-   * @return boolean
+   * @return bool
+   *   TRUE if the field is indexed, FALSE otherwise.
    */
   public function isIndexed() {
     $this->getSchema();
     return isset($this->schema['I']);
   }
+
+  /**
+   * Determines whether this field is tokenized.
+   *
+   * @return bool
+   *   TRUE if the field is tokenized, FALSE otherwise.
+   */
   public function isTokenized() {
     $this->getSchema();
     return isset($this->schema['T']);
   }
+
+  /**
+   * Determines whether this field is stored.
+   *
+   * @return bool
+   *   TRUE if the field is stored, FALSE otherwise.
+   */
   public function isStored() {
     $this->getSchema();
     return isset($this->schema['S']);
   }
+
+  /**
+   * Determines whether this field is multi-valued.
+   *
+   * @return bool
+   *   TRUE if the field is multi-valued, FALSE otherwise.
+   */
   public function isMultivalued() {
     $this->getSchema();
     return isset($this->schema['M']);
   }
+
+  /**
+   * Determines whether this field has stored term vectors.
+   *
+   * @return bool
+   *   TRUE if the field has stored term vectors, FALSE otherwise.
+   */
   public function isTermVectorStored() {
     $this->getSchema();
     return isset($this->schema['V']);
   }
+
+  /**
+   * Determines whether this field has the "termOffsets" option set.
+   *
+   * @return bool
+   *   TRUE if the field has the "termOffsets" option set, FALSE otherwise.
+   */
   public function isStoreOffsetWithTermVector() {
     $this->getSchema();
     return isset($this->schema['o']);
   }
+
+  /**
+   * Determines whether this field has the "termPositions" option set.
+   *
+   * @return bool
+   *   TRUE if the field has the "termPositions" option set, FALSE otherwise.
+   */
   public function isStorePositionWithTermVector() {
     $this->getSchema();
     return isset($this->schema['p']);
   }
+
+  /**
+   * Determines whether this field omits norms when indexing.
+   *
+   * @return bool
+   *   TRUE if the field omits norms, FALSE otherwise.
+   */
   public function isOmitNorms() {
     $this->getSchema();
     return isset($this->schema['O']);
   }
+
+  /**
+   * Determines whether this field is lazy-loaded.
+   *
+   * @return bool
+   *   TRUE if the field is lazy-loaded, FALSE otherwise.
+   */
   public function isLazy() {
     $this->getSchema();
     return isset($this->schema['L']);
   }
+
+  /**
+   * Determines whether this field is binary.
+   *
+   * @return bool
+   *   TRUE if the field is binary, FALSE otherwise.
+   */
   public function isBinary() {
     $this->getSchema();
     return isset($this->schema['B']);
   }
+
+  /**
+   * Determines whether this field is compressed.
+   *
+   * @return bool
+   *   TRUE if the field is compressed, FALSE otherwise.
+   */
   public function isCompressed() {
     $this->getSchema();
     return isset($this->schema['C']);
   }
+
+  /**
+   * Determines whether this field sorts missing entries first.
+   *
+   * @return bool
+   *   TRUE if the field sorts missing entries first, FALSE otherwise.
+   */
   public function isSortMissingFirst() {
     $this->getSchema();
     return isset($this->schema['f']);
   }
+
+  /**
+   * Determines whether this field sorts missing entries last.
+   *
+   * @return bool
+   *   TRUE if the field sorts missing entries last, FALSE otherwise.
+   */
   public function isSortMissingLast() {
     $this->getSchema();
     return isset($this->schema['l']);
   }
+
 }

+ 0 - 100
includes/solr_httptransport.inc

@@ -1,100 +0,0 @@
-<?php
-
-/**
- * @file
- * Contains the SearchApiSolrHttpTransport class.
- */
-
-/**
- * Drupal-based implementation of the HTTP transport interface.
- *
- * Uses drupal_http_request() for sending the request.
- */
-class SearchApiSolrHttpTransport extends Apache_Solr_HttpTransport_Abstract {
-
-  /**
-   * If set, an HTTP authentification string to use.
-   *
-   * @var string
-   */
-  protected $http_auth;
-
-  /**
-   * Constructor.
-   *
-   * @param $http_auth
-   *   If set, an HTTP authentification string to use.
-   */
-  public function __construct($http_auth = NULL) {
-    $this->http_auth = $http_auth;
-  }
-
-  /**
-   * Perform a GET HTTP operation with an optional timeout and return the response
-   * contents, use getLastResponseHeaders to retrieve HTTP headers
-   *
-   * @param string $url
-   * @param float $timeout
-   * @return Apache_Solr_HttpTransport_Response HTTP response
-   */
-  public function performGetRequest($url, $timeout = false) {
-    return $this->performHttpRequest('GET', $url, $timeout);
-  }
-
-  /**
-   * Perform a HEAD HTTP operation with an optional timeout and return the response
-   * headers - NOTE: head requests have no response body
-   *
-   * @param string $url
-   * @param float $timeout
-   * @return Apache_Solr_HttpTransport_Response HTTP response
-   */
-  public function performHeadRequest($url, $timeout = false) {
-    return $this->performHttpRequest('HEAD', $url, $timeout);
-  }
-
-  /**
-   * Perform a POST HTTP operation with an optional timeout and return the response
-   * contents, use getLastResponseHeaders to retrieve HTTP headers
-   *
-   * @param string $url
-   * @param string $rawPost
-   * @param string $contentType
-   * @param float $timeout
-   * @return Apache_Solr_HttpTransport_Response HTTP response
-   */
-  public function performPostRequest($url, $rawPost, $contentType, $timeout = false) {
-    return $this->performHttpRequest('POST', $url, $timeout, $rawPost, $contentType);
-  }
-
-  /**
-   * Helper method for making an HTTP request.
-   */
-  protected function performHttpRequest($method, $url, $timeout, $rawPost = NULL, $contentType = NULL) {
-    $options = array(
-      'method' => $method,
-      'timeout' => $timeout && $timeout > 0 ? $timeout : $this->getDefaultTimeout(),
-      'headers' => array(),
-    );
-
-    if ($this->http_auth) {
-      $options['headers']['Authorization'] = $this->http_auth;
-    }
-    if ($timeout) {
-      $options['timeout'] = $timeout;
-    }
-    if ($rawPost) {
-      $options['data'] = $rawPost;
-    }
-    if ($contentType) {
-      $options['headers']['Content-Type'] = $contentType;
-    }
-
-    $response = drupal_http_request($url, $options);
-
-    $type = isset($response->headers['content-type']) ? $response->headers['content-type'] : 'text/xml';
-    $body = isset($response->data) ? $response->data : NULL;
-    return new Apache_Solr_HttpTransport_Response($response->code, $type, $body);
-  }
-
-}

+ 4 - 4
includes/spellcheck.inc

@@ -11,15 +11,15 @@
 class SearchApiSpellcheckSolr extends SearchApiSpellcheck {
 
   /**
-   * Constructor.
+   * Constructs a SearchApiSpellcheckSolr object.
    *
-   * If solr has returned spelling suggestion then loop through them and add
+   * If Solr has returned spelling suggestion then loop through them and add
    * them to this spellcheck service.
    *
-   * @param Apache_Solr_Response $response
+   * @param object $response
    *   The Solr response object.
    */
-  function __construct(Apache_Solr_Response $response) {
+  function __construct($response) {
     if (isset($response->spellcheck->suggestions)) {
       $suggestions = $response->spellcheck->suggestions;
       foreach ($suggestions as $word => $data) {

+ 62 - 0
search_api_solr.admin.inc

@@ -0,0 +1,62 @@
+<?php
+
+/**
+ * @file
+ * Admin page callbacks for the Search API Solr module.
+ */
+
+/**
+ * Form constructor for the Solr files overview.
+ *
+ * @param SearchApiServer $server
+ *   The server for which files should be displayed.
+ *
+ * @ingroup forms
+ */
+function search_api_solr_solr_config_form($form, &$form_state, SearchApiServer $server) {
+  $form['title']['#markup'] = '<h2>' . t('List of configuration files found:') . '</h2>';
+
+  try {
+    // Retrieve the list of available files.
+    $files_list = search_api_solr_server_get_files($server);
+
+    if (empty($files_list)) {
+      $form['info']['#markup'] = t('No files found.');
+      return $form;
+    }
+
+    $form['files'] = array(
+      '#type'  => 'vertical_tabs',
+    );
+
+    // Generate a fieldset for each file.
+    foreach ($files_list as $file_name => $file_info) {
+      $file_date = format_date(strtotime($file_info['modified']));
+      $escaped_file_name = check_plain($file_name);
+
+      $form['files'][$file_name] = array(
+        '#title' => $escaped_file_name,
+        '#type'  => 'fieldset',
+      );
+
+      $data = '<h3>' . $escaped_file_name . '</h3>';
+      $data .= '<p><em>' . t('Last modified: @time.', array('@time' => $file_date)) . '</em></p>';
+
+      if ($file_info['size'] > 0) {
+        $file_data = $server->getFile($file_name);
+        $data .= '<pre><code>' . check_plain($file_data->data) . '</code></pre>';
+      }
+      else {
+        $data .= '<p><em>' . t('The file is empty.') . '</em></p>';
+      }
+
+      $form['files'][$file_name]['data']['#markup'] = $data;
+    }
+  }
+  catch (SearchApiException $e) {
+    watchdog_exception('search_api_solr', $e, '%type while retrieving config files of Solr server @server: !message in %function (line %line of %file).', array('@server' => $server->name));
+    $form['info']['#markup'] = t('An error occured while trying to load the list of files.');
+  }
+
+  return $form;
+}

+ 33 - 57
search_api_solr.api.php

@@ -18,9 +18,9 @@
  * is set afterwards.
  *
  * @param array $call_args
- *   An associative array containing all four arguments to the
- *   Apache_Solr_Service::search() call ("query", "offset", "limit" and
- *   "params") as references.
+ *   An associative array containing all three arguments to the
+ *   SearchApiSolrConnectionInterface::search() call ("query", "params" and
+ *   "method") as references.
  * @param SearchApiQueryInterface $query
  *   The SearchApiQueryInterface object representing the executed search query.
  */
@@ -33,7 +33,7 @@ function hook_search_api_solr_query_alter(array &$call_args, SearchApiQueryInter
 /**
  * Change the way the index's field names are mapped to Solr field names.
  *
- * @param $index
+ * @param SearchApiIndex $index
  *   The index whose field mappings are altered.
  * @param array $fields
  *   An associative array containing the index field names mapped to their Solr
@@ -47,34 +47,50 @@ function hook_search_api_solr_field_mapping_alter(SearchApiIndex $index, array &
 }
 
 /**
- * Lets modules alter the search results returned from a Solr search, based on
- * the original Solr response.
+ * Alter Solr documents before they are sent to Solr for indexing.
+ *
+ * @param array $documents
+ *   An array of SearchApiSolrDocument objects ready to be indexed, generated
+ *   from $items array.
+ * @param SearchApiIndex $index
+ *   The search index for which items are being indexed.
+ * @param array $items
+ *   An array of items being indexed.
+ */
+function hook_search_api_solr_documents_alter(array &$documents, SearchApiIndex $index, array $items) {
+  // Adds a "foo" field with value "bar" to all documents.
+  foreach ($documents as $document) {
+    $document->setField('foo', 'bar');
+  }
+}
+
+/**
+ * Lets modules alter the search results returned from a Solr search.
  *
  * @param array $results
  *   The results array that will be returned for the search.
  * @param SearchApiQueryInterface $query
  *   The SearchApiQueryInterface object representing the executed search query.
- * @param Apache_Solr_Response $response
- *   The response object returned by Solr.
+ * @param object $response
+ *   The Solr response object.
  */
-function hook_search_api_solr_search_results_alter(array &$results, SearchApiQueryInterface $query, Apache_Solr_Response $response) {
+function hook_search_api_solr_search_results_alter(array &$results, SearchApiQueryInterface $query, $response) {
   if (isset($response->facet_counts->facet_fields->custom_field)) {
     // Do something with $results.
   }
 }
 
 /**
- * Lets modules alter a Solr search request for a multi-index search before
- * sending it.
+ * Lets modules alter a Solr search request for a multi-index search.
  *
- * Apache_Solr_Service::search() is called afterwards with these parameters.
- * Please see this method for details on what should be altered where and what
- * is set afterwards.
+ * SearchApiSolrConnectionInterface::search() is called afterwards with these
+ * parameters. Please see this method for details on what should be altered
+ * where and what is set afterwards.
  *
  * @param array $call_args
- *   An associative array containing all four arguments to the
- *   Apache_Solr_Service::search() call ("query", "offset", "limit" and
- *   "params") as references.
+ *   An associative array containing all three arguments to the
+ *   SearchApiSolrConnectionInterface::search() call ("query", "params" and
+ *   "method") as references.
  * @param SearchApiMultiQueryInterface $query
  *   The object representing the executed search query.
  */
@@ -84,46 +100,6 @@ function hook_search_api_solr_multi_query_alter(array &$call_args, SearchApiMult
   }
 }
 
-/**
- * Define how Search API Solr should index different data types.
- *
- * It is important to make sure that any types you define are also declared to
- * Search API using hook_search_api_data_type_info().
- *
- * @return array
- *   An array containing data type definitions, keyed by their type identifier
- *   and containing the following keys:
- *   - prefix: The prefix used by the dynamic field type.
- *   - always multiValued: (optional) Whether the single/multiple prefix should
- *     be skipped for this data type. Defaults to FALSE.
- *
- * @see hook_search_api_solr_dynamic_field_info_alter()
- * @see search_api_solr_get_dynamic_field_info()
- * @see hook_search_api_data_type_info().
- */
-function hook_search_api_solr_dynamic_field_info() {
-  return array(
-    'example_type' => array(
-      'prefix' => 'ex',
-      // Could be omitted, as FALSE is the default.
-      'always multiValued' => FALSE,
-    ),
-  );
-}
-
-/**
- * Alter the data type indexing info.
- *
- * @param array $infos
- *   The item type info array, keyed by type identifier.
- *
- * @see hook_search_api_solr_dynamic_field_info()
- */
-function hook_search_api_solr_dynamic_field_info_alter(array &$infos) {
-  // Change the prefix used for example_type.
-  $info['example_type']['prefix'] = 'ex2';
-}
-
 /**
  * @} End of "addtogroup hooks".
  */

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません