pax_global_header 0000666 0000000 0000000 00000000064 13740415371 0014517 g ustar 00root root 0000000 0000000 52 comment=d8c74b8c214efcf647b65a99b3ca41ab0a0a68d7
php-solr-2.5.1+2.4.0/ 0000775 0000000 0000000 00000000000 13740415371 0013725 5 ustar 00root root 0000000 0000000 php-solr-2.5.1+2.4.0/package-5.xml 0000664 0000000 0000000 00000136757 13740415371 0016227 0 ustar 00root root 0000000 0000000
solrpecl.php.netThe Apache Solr PHP extension is an extremely fast, light-weight, feature-rich library that allows PHP applications to communicate easily and efficiently with Apache Solr server instances using an object-oriented API.It effectively simplifies the process of interacting with Apache Solr using PHP5 and it already comes with built-in readiness for the latest features.
The extension has features such as built-in, serializable query string builder objects which effectively simplifies the manipulation of name-value pair request parameters across repeated requests.
The response from the Solr server is also automatically parsed into native php objects whose properties can be accessed as array keys or object properties without any additional configuration on the client-side.
Its advanced HTTP client reuses the same connection across multiple requests and provides built-in support for connecting to Solr servers secured behind HTTP Authentication or HTTP proxy servers. It is also able to connect to SSL-enabled containers.
Please consult the documentation for more details on features. Included in the source code are phpdoc stubs that enable autocomplete of Solr classes and methods in IDE during development in userland.
PECL Solr 2+ is only compatible with Apache Solr Server 4.0+Omar Shabanomarsomars@php.netyes2016-03-302.4.02.4.0stablestablePHP License
- PHP 7 Support [Request #70696]
- Performance Optimizations
- Enabled SolrUtils::getSolrStats()
- Fix SolrException*::getInternalInfo
- Fix SolrQueryResponse::getRequestUrl returns wrong url with terms [Bug #71591]
- Fix SolrClient::deleteByIds Segfaults with invalid ids [Bug #71853]
- Fix SolrObject::offsetExists SegFault [Bug #71852]
- Fix float formatting with decimal comma [Bug #71568]
5.31.4.0libxmlsolrOmar Shabanomarsomars@php.netyes2.4.02.4.0stablestable2016-03-30PHP License
- PHP 7 Support [Request #70696]
- Performance Optimizations
- Enabled SolrUtils::getSolrStats()
- Fix SolrException*::getInternalInfo
- Fix SolrQueryResponse::getRequestUrl returns wrong url with terms [Bug #71591]
- Fix SolrClient::deleteByIds Segfaults with invalid ids [Bug #71853]
- Fix SolrObject::offsetExists SegFault [Bug #71852]
- Fix float formatting with decimal comma [Bug #71568]
Omar Shabanomarsomars@php.netyes2.3.02.3.0stablestable2015-11-29PHP License
- Support indexing child/nested documents [Request #70739]
- Support nested documents parsing SolrObject [Request #70953]
- Support nested documents parsing SolrDocument [Request #70974]
- Added maxScore to SolrResponse [Request #68610]
- Fixed issues on big endean processors (Remi Collet)
- Enhancements on method parameter naming (reflections)
Omar Shabanomarsomars@php.netyes2.2.12.2.1stablestable2015-09-27PHP License
- Fix windows build
Omar Shabanomarsomars@php.netyes2.2.02.2.0stablestable2015-09-26PHP License
- Support Real Time Get (Request #68647)
- Support Result Grouping (Request #68793)
- Support Field Collapsing (Request #70175)
- Support Expand Component (Request #70176)
- SolrMissingMandatoryParameterException (Request #70301)
- Fix SegFault on Solr Server 500 Response with no msg [xml RW] (Bug #69156)
- Fix SegFault on non-phpserialized 500 responses from Solr Server with PHPS RW (Bug #69156)
- Fix Failed to parse 500 error response when it lacks msg JSON/PHPS RW (Bug #70495, #70496)
- Fix compatibility tests with Solr Server 5 (Bug #70333)
- Fix Error unserializing raw response on statistics response having NaN as value (Bug #67394)
Omar Shabanomarsomars@php.netyes2.1.02.1.0stablestable2014-01-15PHP License
- New Feature: SolrDisMaxQuery Builder (dismax/edismax) [Feature #67101]
- Support PHPS (PHP Serialized) Response Writer [Request #61329]
- SolrResponse::getArrayResponse [Feature #67660]
- SolrResponse::getResponse() returns SolrObject instead of array (with json response writer) [Bug #67579]
- Argument list parameter: Argument to value separator disappears [Bug #68179]
- Conflict Occurs When using SolrDisMax::addBoostQuery and setBoostQuery [Bug #68181]
- Doc Fix [Doc #67542]
- Internals: simple_list parameter type allow custom delimiter
- Internals: Allowed zero-length argument value
- Internals: Allowed zero-length argument-to-argument-value separator
- Security Fix
Omar Shabanomarsomars@php.netyes2.0.02.0.0stablestable2014-06-24PHP License
- Introduced SolrServerException which handles exception responses produced by Solr Server [Feature #67063]
- SolrClient::commit $maxSegments removed
- Removed php curl extension dependency for static builds [Bug #59028]
- SolrParams/SolrModifiableParams/SolrQuery throws SolrIllegalArguments Exception instead of E_ERROR [Feature #66858]
- SolrQuery::__construct throws SolrIllegalArgumentException instead of E_ERROR
- Dropped Support for phpnative Response Writer
- Fix config that always enables solr debug [Bug #60361]
Omar Shabanomarsomars@php.netyes1.1.11.1.1stablestable2014-06-20PHP License
- Fix Windows Build
Omar Shabanomarsomars@php.netyes1.1.01.1.0stablestable2014-06-19PHP License
1.1.0 Stable
- Introduced SolrServerException which handles exception responses produced by Solr Server [Feature #67063]
- SolrClient::commit $maxSegments removed
- SolrQuery::__construct throws SolrIllegalArgumentException instead of E_ERROR
- Removed php curl extension dependency for static builds [Bug #59028]
From 1.1.0b
- SolrClient::system Access system servlet which fetch Solr Server System Information
- SolrClient::commit argument $maxSegments is now DEPRECATED
- SolrClient::commit Added support for expungeDeletes on
- All SolrClient methods throws SolrClientExceptions instead of E_WARNING + SolrClientException
- SolrClientExceptions' messages are more informative in case of connection errors
- Added json extension validation
- All SolrResponse, SolrQueryResponse, SolrUpdateResponse, SolrPingResponse, SolrGenericResponse, SolrDocument, and SolrInputDocument classes are now final
- All parameters functions throws SolrIllegalArgumentException instead of E_RROR
- SolrParams/SolrModifiableParams/SolrQuery throws SolrIllegalArguments Exception instead of E_ERROR [Feature #66858]
- Various Bug Fixes
Omar Shabanomarsomars@php.netyes1.1.0b1.1.0bbetabeta2014-03-17PHP License
- SolrClient::system Access system servlet which fetch Solr Server System Information
- SolrClient::commit argument $maxSegments is now DEPRECATED
- SolrClient::commit Added support for expungeDeletes on
- All SolrClient methods throws SolrClientExceptions instead of E_WARNING + SolrClientException
- SolrClientExceptions' messages are more informative in case of connection errors
- Added json extension validation
- All SolrResponse, SolrQueryResponse, SolrUpdateResponse, SolrPingResponse, SolrGenericResponse, SolrDocument, and SolrInputDocument classes are now final
- All parameters functions throws SolrIllegalArgumentException instead of E_RROR
- SolrParams/SolrModifiableParams/SolrQuery throws SolrIllegalArguments Exception instead of E_ERROR (Feature #66858)
- Various Bug Fixes
Omar Shabanomarsomars@php.netyes2.0.0b2.0.0bbetabeta2014-02-28PHP License
- Support Solr version 4.0+
- Added support for retreiving Solr Server system information through SolrClient
SolrClient::system()
- Support for softCommit
- Suppport for expungeDeletes
- maxSegments for commit is deprecated
- Added escape character / as per Solr 4 it is reserved for REGEX
- Disabled warnings for connection errors, SolrClientException is thrown
- SolrClientException messages for connection errors are more meaningful indicating error messages and codes
- API changes for:
SolrClient::commit($maxSegments = 0, $softCommit = false, $waitSearcher = true, $expungeDeletes = false)
SolrClient::optimize($maxSegments = 1, $softCommit = false, $waitSearcher = true)
SolrClient::addDocument(SolrInputDocument &$doc, $overwrite = true, $commitWithin = 0)
SolrClient::addDocuments(array &$docs, $overwrite = true, $commitWithin = 0)
- Several Bug Fixes
Warning: PECL Solr >= 2 is not compatible with Solr Server < 4.0
Israel Ekpoiekpoiekpo@php.netyes1.0.21.0.2stablestable2011-11-29PHP License
- Several Bug Fixes by Pierrick, Felipe and Tony
- Changes to make the code compile on 5.2.3 and greater
- Changes to Tests by Pierrick
Israel Ekpoiekpoiekpo@php.netyes1.0.11.0.1stablestable2011-06-04PHP License
- Added support for json response writer in SolrClient
- Removed final bit from classes so that they can be mocked in unit tests
- Changed from beta to stable
- Included phpdoc stubs in source to enable autocomplete of Solr classes and methods in IDE during development
- Lowered libxml2 version requirement to 2.6.16
Israel Ekpoiekpoiekpo@php.netyes0.9.110.9.11betabeta2010-06-22PHP License
- Added ability to specify response writer in constructor option
- Added new method to set response writer SolrClient::setResponseWriter()
- Currently, the only supported response writers are 'xml' and 'phpnative'
- Added support for new native Solr response writer
- New response writer is available at https://issues.apache.org/jira/browse/SOLR-1967
Israel Ekpoiekpoiekpo@php.netyes0.9.100.9.10betabeta2010-05-04PHP License
- Increased compatibility with older systems running CentOS 4 or 5 and RHEL4 or 5
- Added ability to compile directly without having to build libcurl and libxml2 from source on older systems
- Lowered minimum supported version for libcurl to 7.15.0 (Alex Samorukov)
- Lowered minimum supported version for libxml2 to 2.6.26 (Alex Samorukov)
- Fixed PECL Bug# 17172 MoreLikeThis only parses one doc (trevor at blubolt dot com, max at blubolt dot com)
- Declared workaround macros for SSL private key constants due to support for earlier versions of libcurl (Alex Samorukov)
- Changed extension version numbers to start using hexadecimal numbers (Israel Ekpo)
- Added instructions on how to attempt to compile on windows (Israel Ekpo)
- Fixed PECL Bug# 17292 sending UTF-8 encoding in header (giguet at info dot unicaen dot fr)
Israel Ekpoiekpoiekpo@php.netyes0.9.90.9.9betabeta2010-01-10PHP License
- Fixed Bug #17009 Creating two SolrQuery objects leads to wrong query value
- Reset the buffer for the request data from the previous request in SolrClient
- Added new internal static function solr_set_initial_curl_handle_options()
- Moved the intialization of CURL handle options to solr_set_initial_curl_handle_options() function
- Resetting the CURL options on the (CURL *) handle after each request is completed
- Added more explicit error message to indicate that cloning SolrParams objects and its descendants is currently not yet supported
Israel Ekpoiekpoiekpo@php.netyes0.9.80.9.8betabeta2009-12-04PHP License
- Fixed config.w32 for Windows build support (Pierre, Pierrick)
- Fixed Bug #16943 Segmentation Fault from solr_encode_string() during attempt to retrieve solrXmlNode->children->content when solrXmlNode->children is NULL (Israel)
- Disabled Expect header in libcurl (Israel)
- Disabled Memory Debugging when normal debug is enabled (Israel)
- Added list of contributors to the project
Israel Ekpoiekpoiekpo@php.netyes0.9.70.9.7betabeta2009-11-17PHP License
- Fixed bug 16924 AC_MSG_NOTICE() is undefined in autoconf 2.13
- Added new method SolrClient::getDebug()
- Modified SolrClient::__construct() so that port numbers and other integer values for the options can be passed as strings.
- Changed internal string handling mechanism to allow for tracking of memory allocation in debug mode.
- Lowered minimum php version to 5.2.3. Unfortunately, this is the lowest PHP version that will be supported. PHP versions lower than 5.2.3 are not compatible or are causing tests to FAIL.
- Added php stubs for code-completion assists in IDEs and editors.
- Added more examples
Israel Ekpoiekpoiekpo@php.netyes0.9.60.9.6betabeta2009-11-01PHP License
Reduced minimum php version to 5.2.4
Israel Ekpoiekpoiekpo@php.netyes0.9.50.9.5betabeta2009-10-27PHP License
Added support for secure connections to SSL-enabled Solr servers (SSL/HTTPS).
Made connection errors more verbose.
The following options where added to the SolrClient constructor :
- secure (Boolean value indicating whether or not to connect in secure mode)
- timeout (This is maximum time in seconds allowed for the http data transfer operation. Default is 30 seconds)
- ssl_cert (File name to a PEM-formatted file containing the private key + private certificate (concatenated in that order) )
- ssl_key (File name to a PEM-formatted private key file only)
- ssl_keypassword (Password for private key)
- ssl_cainfo (Name of file holding one or more CA certificates to verify peer with)
- ssl_capath (Name of directory holding multiple CA certificates to verify peer with )
Israel Ekpoiekpoiekpo@php.netyes0.9.40.9.4betabeta2009-10-23PHP License
Fixed bug 16897 - ap_php_vasprintf not available in 5.2.11
Israel Ekpoiekpoiekpo@php.netyes0.9.30.9.3betabeta2009-10-19PHP License
- Corrected configuration options for automated installation via PECL. Removed extra hyphens.
Israel Ekpoiekpoiekpo@php.netyes0.9.20.9.2betabeta2009-10-19PHP License
- Fixed bug #16874 Added explanation in documentation
- Updated SolrParams::__toString() - modified to return name-value pair list instead of serialized object string
- Added the following methods to SolrParams :
SolrParams::toString()
SolrParams::getParam()
- Created the following aliases in SolrParams :
SolrParams::set()
SolrParams::add()
SolrParams::get()
- Added the following methods to SolrQuery :
SolrQuery::getQuery()
SolrQuery::getStart()
SolrQuery::getRows()
SolrQuery::getFields()
SolrQuery::getSortFields()
SolrQuery::getFilterQueries()
SolrQuery::getTimeAllowed()
SolrQuery::getFacet()
SolrQuery::getFacetFields()
SolrQuery::getFacetQueries()
SolrQuery::getFacetPrefix()
SolrQuery::getFacetSort()
SolrQuery::getFacetLimit()
SolrQuery::getFacetOffset()
SolrQuery::getFacetMinCount()
SolrQuery::getFacetMissing()
SolrQuery::getFacetMethod()
SolrQuery::getFacetDateFields()
SolrQuery::getFacetDateStart()
SolrQuery::getFacetDateEnd()
SolrQuery::getFacetDateGap()
SolrQuery::getFacetDateHardEnd()
SolrQuery::getFacetDateOther()
SolrQuery::getHighlight()
SolrQuery::getHighlightFields()
SolrQuery::getHighlightSnippets()
SolrQuery::getHighlightFragsize()
SolrQuery::getHighlightMergeContiguous()
SolrQuery::getHighlightRequireFieldMatch()
SolrQuery::getHighlightMaxAnalyzedChars()
SolrQuery::getHighlightAlternateField()
SolrQuery::getHighlightMaxAlternateFieldLength()
SolrQuery::getHighlightFormatter()
SolrQuery::getHighlightSimplePre()
SolrQuery::getHighlightSimplePost()
SolrQuery::getHighlightFragmenter()
SolrQuery::getHighlightUsePhraseHighlighter()
SolrQuery::getHighlightHighlightMultiTerm()
SolrQuery::getHighlightRegexSlop()
SolrQuery::getHighlightRegexPattern()
SolrQuery::getHighlightRegexMaxAnalyzedChars()
SolrQuery::getStats()
SolrQuery::getStatsFields()
SolrQuery::getStatsFacets()
SolrQuery::getMlt()
SolrQuery::getMltCount()
SolrQuery::getMltFields()
SolrQuery::getMltQueryFields()
SolrQuery::getMltMinTermFrequency()
SolrQuery::getMltMinDocFrequency()
SolrQuery::getMltMinWordLength()
SolrQuery::getMltMaxWordLength()
SolrQuery::getMltMaxNumTokens()
SolrQuery::getMltMaxNumQueryTerms()
SolrQuery::getMltBoost()
SolrQuery::getTerms()
SolrQuery::getTermsField()
SolrQuery::getTermsLowerBound()
SolrQuery::getTermsUpperBound()
SolrQuery::getTermsIncludeLowerBound()
SolrQuery::getTermsIncludeUpperBound()
SolrQuery::getTermsMinCount()
SolrQuery::getTermsMaxCount()
SolrQuery::getTermsPrefix()
SolrQuery::getTermsLimit()
SolrQuery::getTermsReturnRaw()
SolrQuery::getTermsSort()
Israel Ekpoiekpoiekpo@php.netyes0.9.10.9.1betabeta2009-10-07PHP License
- Fixed bug #16864 (Build failure in Non-ZTS builds)
Israel Ekpoiekpoiekpo@php.netyes0.9.00.9.0betabeta2009-10-05PHP License
- Initial release after approximately 10 months of development and 3 weeks of testing. This is the beta version. Some of the features may be modified in future releases.
php-solr-2.5.1+2.4.0/package.xml 0000664 0000000 0000000 00000153131 13740415371 0016046 0 ustar 00root root 0000000 0000000
solrpecl.php.netThe Apache Solr PHP extension is an extremely fast,
light-weight, feature-rich library that allows PHP applications to
communicate easily and efficiently with Apache Solr server instances
using an object-oriented API.It effectively simplifies the process of interacting with Apache Solr using PHP.
The extension has features such as built-in, serializable query string builder objects which effectively simplifies the manipulation of name-value pair request parameters across repeated requests.
The response from the Solr server is also automatically parsed into native php objects whose properties can be accessed as array keys or object properties without any additional configuration on the client-side.
Its advanced HTTP client reuses the same connection across multiple requests and provides built-in support for connecting to Solr servers secured behind HTTP Authentication or HTTP proxy servers. It is also able to connect to SSL-enabled containers.
Please consult the documentation for more details on features. Included in the source code are phpdoc stubs that enable autocomplete of Solr classes and methods in IDE during development in userland.
Please consider staring the package on github, and get a free release ;)
https://github.com/php/pecl-search_engine-solrOmar Shabanomarsomars@php.netyes2020-09-092.5.12.5.1stablestablePHP License
- PHP 7.4 compatible
- PHP 7 windows support
- PHP 8.0.0beta3 compatible
- Bug #72740 Fixes NULL byte when using addQueryField() w/o boost
7.01.4.0libxmlsolrOmar Shabanomarsomars@php.netyes2.5.12.5.1stablestable2020-09-09PHP License
- PHP 7.4 compatible
- PHP 7 windows support
- PHP 8.0.0beta3 compatible
- Bug #72740 Fixes NULL byte when using addQueryField() w/o boost
Omar Shabanomarsomars@php.netyes2.5.02.5.0stablestable2019-07-04PHP License
- Atomic Updates (partials)
- Simple Optimistic Concurrency
- Compatibility with PHP 7.1, 7.2, 7.3, latest 7.4
- Enable gzip encoding if server supports it
- Fix Real Time Get requests fails if it wasn't the first request
- Fix addQueryField return wrong query
- Fix Solr Extension build fail with curl 7.19+
Omar Shabanomarsomars@php.netyes2.4.02.4.0stablestable2016-03-30PHP License
- PHP 7 Support [Request #70696]
- Performance Optimizations
- Enabled SolrUtils::getSolrStats()
- Fix SolrException*::getInternalInfo
- Fix SolrQueryResponse::getRequestUrl returns wrong url with terms [Bug #71591]
- Fix SolrClient::deleteByIds Segfaults with invalid ids [Bug #71853]
- Fix SolrObject::offsetExists SegFault [Bug #71852]
- Fix float formatting with decimal comma [Bug #71568]
Omar Shabanomarsomars@php.netyes2.3.02.3.0stablestable2015-11-29PHP License
- Support indexing child/nested documents [Request #70739]
- Support nested documents parsing SolrObject [Request #70953]
- Support nested documents parsing SolrDocument [Request #70974]
- Added maxScore to SolrResponse [Request #68610]
- Fixed issues on big endean processors (Remi Collet)
- Enhancements on method parameter naming (reflections)
Omar Shabanomarsomars@php.netyes2.2.12.2.1stablestable2015-09-27PHP License
- Fix windows build
Omar Shabanomarsomars@php.netyes2.2.02.2.0stablestable2015-09-26PHP License
- Support Real Time Get (Request #68647)
- Support Result Grouping (Request #68793)
- Support Field Collapsing (Request #70175)
- Support Expand Component (Request #70176)
- SolrMissingMandatoryParameterException (Request #70301)
- Fix SegFault on Solr Server 500 Response with no msg [xml RW] (Bug #69156)
- Fix SegFault on non-phpserialized 500 responses from Solr Server with PHPS RW (Bug #69156)
- Fix Failed to parse 500 error response when it lacks msg JSON/PHPS RW (Bug #70495, #70496)
- Fix compatibility tests with Solr Server 5 (Bug #70333)
- Fix Error unserializing raw response on statistics response having NaN as value (Bug #67394)
Omar Shabanomarsomars@php.netyes2.1.02.1.0stablestable2014-01-15PHP License
- New Feature: SolrDisMaxQuery Builder (dismax/edismax) [Feature #67101]
- Support PHPS (PHP Serialized) Response Writer [Request #61329]
- SolrResponse::getArrayResponse [Feature #67660]
- SolrResponse::getResponse() returns SolrObject instead of array (with json response writer) [Bug #67579]
- Argument list parameter: Argument to value separator disappears [Bug #68179]
- Conflict Occurs When using SolrDisMax::addBoostQuery and setBoostQuery [Bug #68181]
- Doc Fix [Doc #67542]
- Internals: simple_list parameter type allow custom delimiter
- Internals: Allowed zero-length argument value
- Internals: Allowed zero-length argument-to-argument-value separator
- Security Fix
Omar Shabanomarsomars@php.netyes2.0.02.0.0stablestable2014-06-24PHP License
- Introduced SolrServerException which handles exception responses produced by Solr Server [Feature #67063]
- SolrClient::commit $maxSegments removed
- Removed php curl extension dependency for static builds [Bug #59028]
- SolrParams/SolrModifiableParams/SolrQuery throws SolrIllegalArguments Exception instead of E_ERROR [Feature #66858]
- SolrQuery::__construct throws SolrIllegalArgumentException instead of E_ERROR
- Dropped Support for phpnative Response Writer
- Fix config that always enables solr debug [Bug #60361]
Omar Shabanomarsomars@php.netyes1.1.11.1.1stablestable2014-06-20PHP License
- Fix Windows Build
Omar Shabanomarsomars@php.netyes1.1.01.1.0stablestable2014-06-19PHP License
1.1.0 Stable
- Introduced SolrServerException which handles exception responses produced by Solr Server [Feature #67063]
- SolrClient::commit $maxSegments removed
- SolrQuery::__construct throws SolrIllegalArgumentException instead of E_ERROR
- Removed php curl extension dependency for static builds [Bug #59028]
From 1.1.0b
- SolrClient::system Access system servlet which fetch Solr Server System Information
- SolrClient::commit argument $maxSegments is now DEPRECATED
- SolrClient::commit Added support for expungeDeletes on
- All SolrClient methods throws SolrClientExceptions instead of E_WARNING + SolrClientException
- SolrClientExceptions' messages are more informative in case of connection errors
- Added json extension validation
- All SolrResponse, SolrQueryResponse, SolrUpdateResponse, SolrPingResponse, SolrGenericResponse, SolrDocument, and SolrInputDocument classes are now final
- All parameters functions throws SolrIllegalArgumentException instead of E_RROR
- SolrParams/SolrModifiableParams/SolrQuery throws SolrIllegalArguments Exception instead of E_ERROR [Feature #66858]
- Various Bug Fixes
Omar Shabanomarsomars@php.netyes1.1.0b1.1.0bbetabeta2014-03-17PHP License
- SolrClient::system Access system servlet which fetch Solr Server System Information
- SolrClient::commit argument $maxSegments is now DEPRECATED
- SolrClient::commit Added support for expungeDeletes on
- All SolrClient methods throws SolrClientExceptions instead of E_WARNING + SolrClientException
- SolrClientExceptions' messages are more informative in case of connection errors
- Added json extension validation
- All SolrResponse, SolrQueryResponse, SolrUpdateResponse, SolrPingResponse, SolrGenericResponse, SolrDocument, and SolrInputDocument classes are now final
- All parameters functions throws SolrIllegalArgumentException instead of E_RROR
- SolrParams/SolrModifiableParams/SolrQuery throws SolrIllegalArguments Exception instead of E_ERROR (Feature #66858)
- Various Bug Fixes
Omar Shabanomarsomars@php.netyes2.0.0b2.0.0bbetabeta2014-02-28PHP License
- Support Solr version 4.0+
- Added support for retreiving Solr Server system information through SolrClient
SolrClient::system()
- Support for softCommit
- Suppport for expungeDeletes
- maxSegments for commit is deprecated
- Added escape character / as per Solr 4 it is reserved for REGEX
- Disabled warnings for connection errors, SolrClientException is thrown
- SolrClientException messages for connection errors are more meaningful indicating error messages and codes
- API changes for:
SolrClient::commit($maxSegments = 0, $softCommit = false, $waitSearcher = true, $expungeDeletes = false)
SolrClient::optimize($maxSegments = 1, $softCommit = false, $waitSearcher = true)
SolrClient::addDocument(SolrInputDocument &$doc, $overwrite = true, $commitWithin = 0)
SolrClient::addDocuments(array &$docs, $overwrite = true, $commitWithin = 0)
- Several Bug Fixes
Warning: PECL Solr >= 2 is not compatible with Solr Server < 4.0
Israel Ekpoiekpoiekpo@php.netyes1.0.21.0.2stablestable2011-11-29PHP License
- Several Bug Fixes by Pierrick, Felipe and Tony
- Changes to make the code compile on 5.2.3 and greater
- Changes to Tests by Pierrick
Israel Ekpoiekpoiekpo@php.netyes1.0.11.0.1stablestable2011-06-04PHP License
- Added support for json response writer in SolrClient
- Removed final bit from classes so that they can be mocked in unit tests
- Changed from beta to stable
- Included phpdoc stubs in source to enable autocomplete of Solr classes and methods in IDE during development
- Lowered libxml2 version requirement to 2.6.16
Israel Ekpoiekpoiekpo@php.netyes0.9.110.9.11betabeta2010-06-22PHP License
- Added ability to specify response writer in constructor option
- Added new method to set response writer SolrClient::setResponseWriter()
- Currently, the only supported response writers are 'xml' and 'phpnative'
- Added support for new native Solr response writer
- New response writer is available at https://issues.apache.org/jira/browse/SOLR-1967
Israel Ekpoiekpoiekpo@php.netyes0.9.100.9.10betabeta2010-05-04PHP License
- Increased compatibility with older systems running CentOS 4 or 5 and RHEL4 or 5
- Added ability to compile directly without having to build libcurl and libxml2 from source on older systems
- Lowered minimum supported version for libcurl to 7.15.0 (Alex Samorukov)
- Lowered minimum supported version for libxml2 to 2.6.26 (Alex Samorukov)
- Fixed PECL Bug# 17172 MoreLikeThis only parses one doc (trevor at blubolt dot com, max at blubolt dot com)
- Declared workaround macros for SSL private key constants due to support for earlier versions of libcurl (Alex Samorukov)
- Changed extension version numbers to start using hexadecimal numbers (Israel Ekpo)
- Added instructions on how to attempt to compile on windows (Israel Ekpo)
- Fixed PECL Bug# 17292 sending UTF-8 encoding in header (giguet at info dot unicaen dot fr)
Israel Ekpoiekpoiekpo@php.netyes0.9.90.9.9betabeta2010-01-10PHP License
- Fixed Bug #17009 Creating two SolrQuery objects leads to wrong query value
- Reset the buffer for the request data from the previous request in SolrClient
- Added new internal static function solr_set_initial_curl_handle_options()
- Moved the intialization of CURL handle options to solr_set_initial_curl_handle_options() function
- Resetting the CURL options on the (CURL *) handle after each request is completed
- Added more explicit error message to indicate that cloning SolrParams objects and its descendants is currently not yet supported
Israel Ekpoiekpoiekpo@php.netyes0.9.80.9.8betabeta2009-12-04PHP License
- Fixed config.w32 for Windows build support (Pierre, Pierrick)
- Fixed Bug #16943 Segmentation Fault from solr_encode_string() during attempt to retrieve solrXmlNode->children->content when solrXmlNode->children is NULL (Israel)
- Disabled Expect header in libcurl (Israel)
- Disabled Memory Debugging when normal debug is enabled (Israel)
- Added list of contributors to the project
Israel Ekpoiekpoiekpo@php.netyes0.9.70.9.7betabeta2009-11-17PHP License
- Fixed bug 16924 AC_MSG_NOTICE() is undefined in autoconf 2.13
- Added new method SolrClient::getDebug()
- Modified SolrClient::__construct() so that port numbers and other integer values for the options can be passed as strings.
- Changed internal string handling mechanism to allow for tracking of memory allocation in debug mode.
- Lowered minimum php version to 5.2.3. Unfortunately, this is the lowest PHP version that will be supported. PHP versions lower than 5.2.3 are not compatible or are causing tests to FAIL.
- Added php stubs for code-completion assists in IDEs and editors.
- Added more examples
Israel Ekpoiekpoiekpo@php.netyes0.9.60.9.6betabeta2009-11-01PHP License
Reduced minimum php version to 5.2.4
Israel Ekpoiekpoiekpo@php.netyes0.9.50.9.5betabeta2009-10-27PHP License
Added support for secure connections to SSL-enabled Solr servers (SSL/HTTPS).
Made connection errors more verbose.
The following options where added to the SolrClient constructor :
- secure (Boolean value indicating whether or not to connect in secure mode)
- timeout (This is maximum time in seconds allowed for the http data transfer operation. Default is 30 seconds)
- ssl_cert (File name to a PEM-formatted file containing the private key + private certificate (concatenated in that order) )
- ssl_key (File name to a PEM-formatted private key file only)
- ssl_keypassword (Password for private key)
- ssl_cainfo (Name of file holding one or more CA certificates to verify peer with)
- ssl_capath (Name of directory holding multiple CA certificates to verify peer with )
Israel Ekpoiekpoiekpo@php.netyes0.9.40.9.4betabeta2009-10-23PHP License
Fixed bug 16897 - ap_php_vasprintf not available in 5.2.11
Israel Ekpoiekpoiekpo@php.netyes0.9.30.9.3betabeta2009-10-19PHP License
- Corrected configuration options for automated installation via PECL. Removed extra hyphens.
Israel Ekpoiekpoiekpo@php.netyes0.9.20.9.2betabeta2009-10-19PHP License
- Fixed bug #16874 Added explanation in documentation
- Updated SolrParams::__toString() - modified to return name-value pair list instead of serialized object string
- Added the following methods to SolrParams :
SolrParams::toString()
SolrParams::getParam()
- Created the following aliases in SolrParams :
SolrParams::set()
SolrParams::add()
SolrParams::get()
- Added the following methods to SolrQuery :
SolrQuery::getQuery()
SolrQuery::getStart()
SolrQuery::getRows()
SolrQuery::getFields()
SolrQuery::getSortFields()
SolrQuery::getFilterQueries()
SolrQuery::getTimeAllowed()
SolrQuery::getFacet()
SolrQuery::getFacetFields()
SolrQuery::getFacetQueries()
SolrQuery::getFacetPrefix()
SolrQuery::getFacetSort()
SolrQuery::getFacetLimit()
SolrQuery::getFacetOffset()
SolrQuery::getFacetMinCount()
SolrQuery::getFacetMissing()
SolrQuery::getFacetMethod()
SolrQuery::getFacetDateFields()
SolrQuery::getFacetDateStart()
SolrQuery::getFacetDateEnd()
SolrQuery::getFacetDateGap()
SolrQuery::getFacetDateHardEnd()
SolrQuery::getFacetDateOther()
SolrQuery::getHighlight()
SolrQuery::getHighlightFields()
SolrQuery::getHighlightSnippets()
SolrQuery::getHighlightFragsize()
SolrQuery::getHighlightMergeContiguous()
SolrQuery::getHighlightRequireFieldMatch()
SolrQuery::getHighlightMaxAnalyzedChars()
SolrQuery::getHighlightAlternateField()
SolrQuery::getHighlightMaxAlternateFieldLength()
SolrQuery::getHighlightFormatter()
SolrQuery::getHighlightSimplePre()
SolrQuery::getHighlightSimplePost()
SolrQuery::getHighlightFragmenter()
SolrQuery::getHighlightUsePhraseHighlighter()
SolrQuery::getHighlightHighlightMultiTerm()
SolrQuery::getHighlightRegexSlop()
SolrQuery::getHighlightRegexPattern()
SolrQuery::getHighlightRegexMaxAnalyzedChars()
SolrQuery::getStats()
SolrQuery::getStatsFields()
SolrQuery::getStatsFacets()
SolrQuery::getMlt()
SolrQuery::getMltCount()
SolrQuery::getMltFields()
SolrQuery::getMltQueryFields()
SolrQuery::getMltMinTermFrequency()
SolrQuery::getMltMinDocFrequency()
SolrQuery::getMltMinWordLength()
SolrQuery::getMltMaxWordLength()
SolrQuery::getMltMaxNumTokens()
SolrQuery::getMltMaxNumQueryTerms()
SolrQuery::getMltBoost()
SolrQuery::getTerms()
SolrQuery::getTermsField()
SolrQuery::getTermsLowerBound()
SolrQuery::getTermsUpperBound()
SolrQuery::getTermsIncludeLowerBound()
SolrQuery::getTermsIncludeUpperBound()
SolrQuery::getTermsMinCount()
SolrQuery::getTermsMaxCount()
SolrQuery::getTermsPrefix()
SolrQuery::getTermsLimit()
SolrQuery::getTermsReturnRaw()
SolrQuery::getTermsSort()
Israel Ekpoiekpoiekpo@php.netyes0.9.10.9.1betabeta2009-10-07PHP License
- Fixed bug #16864 (Build failure in Non-ZTS builds)
Israel Ekpoiekpoiekpo@php.netyes0.9.00.9.0betabeta2009-10-05PHP License
- Initial release after approximately 10 months of development and 3 weeks of testing. This is the beta version. Some of the features may be modified in future releases.
php-solr-2.5.1+2.4.0/solr-2.4.0/ 0000775 0000000 0000000 00000000000 13740415371 0015343 5 ustar 00root root 0000000 0000000 php-solr-2.5.1+2.4.0/solr-2.4.0/CREDITS 0000664 0000000 0000000 00000000042 13740415371 0016357 0 ustar 00root root 0000000 0000000 solr
Israel Koko Ekpo
Omar Shaban
php-solr-2.5.1+2.4.0/solr-2.4.0/LICENSE 0000664 0000000 0000000 00000006221 13740415371 0016351 0 ustar 00root root 0000000 0000000 --------------------------------------------------------------------
The PHP License, version 3.01
Copyright (c) 1999 - 2009 The PHP Group. All rights reserved.
--------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
modification, is permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. 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.
3. The name "PHP" must not be used to endorse or promote products
derived from this software without prior written permission. For
written permission, please contact group@php.net.
4. Products derived from this software may not be called "PHP", nor
may "PHP" appear in their name, without prior written permission
from group@php.net. You may indicate that your software works in
conjunction with PHP by saying "Foo for PHP" instead of calling
it "PHP Foo" or "phpfoo"
5. The PHP Group may publish revised and/or new versions of the
license from time to time. Each version will be given a
distinguishing version number.
Once covered code has been published under a particular version
of the license, you may always continue to use it under the terms
of that version. You may also choose to use such covered code
under the terms of any subsequent version of the license
published by the PHP Group. No one other than the PHP Group has
the right to modify the terms applicable to covered code created
under this License.
6. Redistributions of any form whatsoever must retain the following
acknowledgment:
"This product includes PHP software, freely available from
".
THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND
ANY EXPRESSED 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 PHP
DEVELOPMENT TEAM OR ITS 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.
--------------------------------------------------------------------
This software consists of voluntary contributions made by many
individuals on behalf of the PHP Group.
The PHP Group can be contacted via Email at group@php.net.
For more information on the PHP Group and the PHP project,
please see .
PHP includes the Zend Engine, freely available at
. php-solr-2.5.1+2.4.0/solr-2.4.0/README.ABOUT_SOLR_EXTENSION 0000664 0000000 0000000 00000014117 13740415371 0021373 0 ustar 00root root 0000000 0000000
$Id$
================================================================================
Introducing the Solr PHP Extension
================================================================================
The Solr extension is an extremely fast, light-weight, feature-rich library that
allows PHP developers to communicate effectively with Solr server instances.
There are tools to add documents and make updates to the solr server.
It also contains tools that allows you to build advanced queries to the server
when searching for documents.
There are also special objects that simplifies the sending of name-value requests
to the server. This includes the SolrParams class and all its child classes.
The SolrClient object allows one to communicate with Solr containers that are
behind proxy servers or that require HTTP Authentication to proceed.
The SolrClient constructor accepts options such as
http authentication username and passwor, proxy server name, port, login and
passwords etc.
Using an advanced http client like libcurl allows us to leverage the features
available with the library. We can reuse the HTTP connections without having
to create a separate one for each request.
================================================================================
How to Install
================================================================================
Please refer to the README.INSTALLATION file.
================================================================================
Magic Methods and Interfaces Implemented
================================================================================
SolrDocument implements the following interfaces.
(1) ArrayAccess - to access the fields as array keys using field names.
(2) Iterator - to iterate over the document fields using foreach()
(3) Serializable - provides custom serialization of the object.
SolrDocument also contains the __get and __set magic methods which allows developers
to access the fields directly. When setting fields, if the field already
has a value the new value will be appended to the list of values for that field.
Each field is a SolrDocumentField object with the following public properties :
(a) name - a string with name of the field.
(b) boost - a double representing the boost value of the field (intentionally empty)
(c) values - an array of all the field values as strings.
Custom Serialization
string SolrDocument::serialize(void) returns an XML document representing a
SolrDocument as shown below :
A0F43DIsrael EkpoIsrael.Ekpo@israel.ekpo.comReadingWritingSoccerTeachingInglésEspanól
Here is a complete example of a serialized SolrDocument object:
C:12:"SolrDocument":679:{
A0F43DIsrael EkpoIsrael.Ekpo@israel.ekpo.comReadingWritingSoccerTeachingInglésEspanól
}
One of the items on my todo list is to create a response writer to return
serialized SolrDocument objects instead of document arrays.
SolrDocument::unserialize(string $serialized) accepts an XML document
representing the SolrDocument object. It will the bring the object back to live.
The SolrDocument class also has the method SolrDocument::getInputDocument() to
allow one do get the SolrInputDocument version of a SolrDocument instance.
This method may be helpful if one needs to resubmit the document to the server to
updates.
The Solr extension has the SolrQuery object (a child of SolrParams) that enables
the developer to send custom advanced name-value requests to the solr server.
The SolrQuery object can also be serialized and reused later, which makes it very
helpful to saving the state of the application across multiple requests. This may be
very useful in cases such as facet browsing where additional parameters may need to be
added to the current object or removed from it to get the desired results without
having to start over from scratch.
================================================================================
Parsing of XML Responses from the Solr Server
================================================================================
XML responses from the solr server are expected to be formatted using version 2.2
These xml documents are parsed into serialized php code and returned as
read-only SolrObject instances whose properties can also be accessed as array
keys in addition to being accessible directly via the object->member notation.
Having the properties accessible via object[member] notation is helpful in cases
where the property name is not valid (contains dots and other characters not
legal in php.
================================================================================
How to Report Bugs
================================================================================
Please report bugs to http://bugs.php.net
If you experience a crash due to a segmentation fault, please follow the instructions on the link below
to get a gdb backtrace and then submit the trace in your bug report as well
http://bugs.php.net/bugs-generating-backtrace.php
Thank you for using PHP
php-solr-2.5.1+2.4.0/solr-2.4.0/README.CONTRIBUTORS 0000664 0000000 0000000 00000006344 13740415371 0020166 0 ustar 00root root 0000000 0000000
================================================================================
Omar Shaban (omars@php.net)
================================================================================
- Lead Maintainer
================================================================================
Thanks to all our [contributors](https://github.com/php/pecl-search_engine-solr/graphs/contributors).
================================================================================
These are the people that made version 1.0 release of the Apache Solr PECL extension possible.
If I have left anyone out or mis-stated your contributions, please let me know so that
it can be correct to reflect your contributions accurately.
Thanks again for making this possible.
================================================================================
Israel Ekpo (iekpo@php.net)
================================================================================
- Orignal Author of the Apache Solr PECL extension
- Orignal Extension Concept and Design
- Lead Maintainer
================================================================================
Pierre-Alain Joye (pajoye@php.net)
================================================================================
- Fine tuned and created the final version of the config.w32 script (291135)
- Compiled and made available several versions of the .dll binaries for Windows.
- Currently hosting the windows .dll binaries for the Apache Solr PECL extension.
================================================================================
Kalle Sommer Nielsen (kalle@php.net)
================================================================================
- Significant refactoring of the config.w32 script for Windows (288890)
- Corrected Windows C++ compiler bugs (288890)
================================================================================
Pierrick Charron (pierrick@php.net)
================================================================================
- Assisted in the testing of the extension using various test cases.
- Uncovered and reported several bugs due to his insight of the extension internals.
- Discovered bugs 16943 and 16924
- Patched the config.w32 for its first successful compilation on Windows (291101).
================================================================================
Felipe Pena (felipe@php.net)
================================================================================
- Participated significantly after the intial release and uncovered a serious bug that lead to segfaults.
- Discovered bugs 16855 thru 16859
- Contributed to development of UNIX config.m4 script (289148)
================================================================================
Alex Samorukov (alexey.samorukov@varien.com)
================================================================================
- Lowered minimum supported version for libcurl to 7.15.0
- Lowered minimum supported version for libxml2 to 2.6.26
================================================================================
(trevor at blubolt dot com, max at blubolt dot com)
================================================================================
- Fixed PECL Bug# 17172 MoreLikeThis only parses one doc
php-solr-2.5.1+2.4.0/solr-2.4.0/README.INSTALLATION 0000664 0000000 0000000 00000016611 13740415371 0020130 0 ustar 00root root 0000000 0000000
$Id$
================================================================================
PHP VERSION Dependencies
================================================================================
PHP version 5.3 or later is needed
================================================================================
Extension Dependencies
================================================================================
LIBXML extension
JSON extension
================================================================================
Library Dependencies
================================================================================
libxml2 2.6.26 or later is required
libcurl 7.15.0 or later is required
================================================================================
On UNIX
================================================================================
As mentioned before, the libxml and curl extensions must be enabled for the Apache Solr extension to be functional.
Do not attempt to hack the code to make it compile. It will fail, possibly with errors that could be hard to debug
To install the Apache Solr extension directly from PECL, please enter the following command, then follow the prompts
pecl install solr
To compile from source, please follow the following steps
$ phpize
$ ./configure
$ make && make install
This should compile the code and install it in the extension_dir specified in the ini file.
Then open your php.ini file and add the following line to it
extension=solr.so
Then restart your webserver. For CLI only, you do not have to restart your webserver.
Note :
If your system does not have the minimum version of the libcurl or libxml libraries, you can download the libraries
and compile them from source into a separate install prefix.
wget http://curl.haxx.se/download/curl-7.19.6.tar.gz
tar -zxvf curl-7.19.6.tar.gz
cd curl-7.19.6
configure --prefix=/root/custom/software
make && make install
cd ..
wget ftp://xmlsoft.org/libxml2/libxml2-2.7.6.tar.gz
tar -zxvf libxml2-2.7.6.tar.gz
cd libxml2-2.7.6
configure --prefix=/root/custom/software
make && make install
This example assumes that the libxml2 and libcurl libraries were compiled from source
and installed using "/root/custom/software" as the --prefix
So the absolute path to the easy.h header file will be
/root/custom/software/include/curl/easy.h
And the absolute path to the libxml/parser.h header file wil be
/root/custom/software/include/libxml2/libxml/parser.h
The absolute path to the xml2-config script will be /root/custom/software/bin/xml2-config
And the absolute path to the curl-config script will be /root/custom/software/bin/curl-config
Then you can pass libcurl prefix to the configure script for CURL and LIBXML respectively
during the configuration phase as shown here :
4B ./configure --enable-solr --with-curl=/root/custom/software --with-libxml-dir=/root/custom/software
If you already have the latest versions of the libraries then the step listed in 4A alone is sufficient.
5. make && make install
This should compile the code and install it in the extension_dir specified in the ini file.
Then open your php.ini file and add the following line to it
extension=solr.so
If you would prefer to compile the Solr extension statically into php,
you will need to follow the following steps.
1. copy the solr_xxx folder into the ext folder in the php source
2. Include the --enable-solr flag as one of the options when configuring php
This will build the Solr extension statically into php.
After the installation is completed, you will have to restart your webserver for the changes to take effect.
For CLI only use, you do not have to restart your webserver.
================================================================================
On Windows
================================================================================
If you are using a pre-compiled dll, simply copy the php_solr.dll file
to your extension_dir specified in the ini file.
Then open your php.ini file and add the following line to it
extension=php_solr.dll
Then restart your webserver. For CLI only, you do not have to restart your webserver.
If you are building from source, you will need to download the library dependencies
for libxml and libcurl from the following link to the deps folder before
running buildconf.bat
http://wiki.php.net/internals/windows/libs
http://pecl2.php.net/downloads/php-windows-builds/php-libs/
More details are avialable here
http://wiki.php.net/internals/windows
Windows DLLs are now available here
http://downloads.php.net/pierre/
If you are building from source, you will need to download the library dependencies
for libxml and libcurl from the following link to the deps folder before
running buildconf.bat
The Apache Solr extension can be compiled statically or shared.
- Shared compilation creates a php_solr.dll file.
- Static compilation puts the Solr extension directly into PHP (therefore it does not need to be loaded and cannot be unloaded).
You can toggle between compiling statically or as library by adding =static or =shared to the configure.js command during the compilation.
configure --with-solr=static
configure --with-solr=shared
- In the first configure command, the Apache Solr extension will be included in PHP
- In the second configure command, the Apache Solr extension will be compiled as separate DLL
Here is a more detail list of steps to follow :
1. Get visual studio 2008 ((express edition or professional) and install it.
2. Get and install windows sdk 6.1.
3. Get a php 5.3 snapshot (do not extract yet!).
4. Create the folder "c:\php-sdk"
5. Unpack the binary tools archive into this directory, there should be one sub-directory called "bin" and one called "script"
6. Open the "windows sdk 6.1 shell" (which is available from the start menu group) and execute the following commands in it:
setenv /x86 /xp /release
cd c:\php-sdk\
bin\phpsdk_setvars.bat
bin\phpsdk_buildtree.bat php53dev
7. Now extract the snapshot from Step 3 to C:\php-sdk\php53dev\vc9\x86 with your favourite unpacker so that the following directory gets created:
C:\php-sdk\php53dev\vc9\x86\php5.3-xyz
8. run in the windows-sdk-shell:
cd C:\php-sdk\php53dev\vc9\x86\php5.3-xyz
buildconf
9. now run configure --help, to get an overview of the compiling flags
10. configure --disable-all --enable-cli --with-solr=yes --with-curl=yes --with-libxml=yes
11. nmake
If you are using Visual Studio 2005, use vc8 wherever you see vc9.
If you are on a 64-bit system, use x64 instead of x86.
The following resources can provide you with more information :
http://wiki.php.net/internals/windows/libs
http://pecl2.php.net/downloads/php-windows-builds/php-libs/
More details are avialable here :
http://wiki.php.net/internals/windows
The binary tools archive is available at :
http://pecl2.php.net/downloads/php-windows-builds/php-libs/binary-tools.zip
Windows SDK 6.1 is available at :
http://www.microsoft.com/downloads/details.aspx?FamilyId=E6E1C3DF-A74F-4207-8586-711EBE331CDC&displaylang=en
The PHP 5.3 shapshot is available at:
http://windows.php.net/downloads/snaps/php-5.3/php-5.3-src-latest.zip
================================================================================
How to Report Bugs
================================================================================
Please report bugs to omars@php.net
You can also register bugs here
http://pecl.php.net/bugs/report.php?package=solr
Thank you for using PHP
php-solr-2.5.1+2.4.0/solr-2.4.0/README.MEMORY_ALLOCATION 0000664 0000000 0000000 00000005315 13740415371 0020743 0 ustar 00root root 0000000 0000000
$Id$
================================================================================
Solr Notes about Memory Allocation and interaction with HashTables
================================================================================
The following notes are for C-space PHP developers.
If you are not really familiar with how the Zend HashTable API or the
memory allocation marcros really works, please take sometime to read the notes below :
This is correct as of Zend Engine version 2.3.0
- If memory was allocated with emalloc(), it has to be freed with efree().
- If memory was allocated using pemalloc(), the same value for the persistent
parameter must be used during pefree() to deallocated the allocated memory.
The memory manager for the Zend API will then decide whether to use free() or
efree() depending on whether persistent is 1 or 0 respectively. The same
principle applies to pestrdup(), pecalloc() and the other memory allocation
macros.
- When inserting values into the HashTables, if the value for the persistent
parameter is set, then the memory allocation for the entered item should be
persistent to i.e. pemalloc() with persistent set to 1.
The following will apply when adding new values into a HashTable for items
that were dynamically allocated :
(a) If the value for the nDataSize parameter is the size of that of a
pointer sizeof(void *), the HashTable API copies the contents of
the pData parameter into the Bucket->pDataPtr member for that data Bucket.
Then it sets the Bucket->pData member to the address of the Bucket->pDataPtr
member for that data Bucket.
(b) If the value for the nDataSize parameter is not equal to sizeof(void *),
the HashTable API allocates new memory for the Bucket->pData member using
the size equivalent to nDataSize and the same value for the persistent flag
set for the target HashTable. The the contents of the pData parameter is
copied into the Bucket->pData member in this newly allocated memory location.
Then the Bucket->pDataPtr member for this Bucket is set to NULL.
Do not worry about the newly allocated memory allocated by the HashTable API;
if the nDataSize parameter was not equal to sizeof(void *), then
during the cleanup process, the Zend API will free the new memory it allocated
during the insert process.
It will also call the destructor function if a valid one was passed when the
HashTable was initialized with zend_hash_init().
In the extension, I have used the p* version of the memory allocation functions
to allow me toggle if there is any need to do so in the future. This will prevent
a massive search and replace effort.
For all the HashTables, I set the intial size to 8 to reduce the looping when
zend_hash_init() is setting up the HashTable pointer to use.
php-solr-2.5.1+2.4.0/solr-2.4.0/README.SUBMITTING_CONTRIBUTIONS 0000664 0000000 0000000 00000004332 13740415371 0022033 0 ustar 00root root 0000000 0000000
$Id$
================================================================================
Submitting contributions
================================================================================
A lot of time has been put into designing, implementing and documenting this extension.
A lot of work has also been put into ensuring that users of the extension
experience very minimal defects during usage.
New ideas, corrections, bug fixes, feature improvements are always welcome.
However, you must discuss any changes you are about to make to any of
the source files prior to making or submitting such changes either in the
PECL developers mailing list (pecl-dev@lists.php.net) or by contacting the
current author(s) or maintainer(s) of this extension directly.
Test scripts should be included when making the submissions.
Also explain thoroughly what has been fixed/added/changed by your patch.
If your patch is easy to review and has obviously no side-effects,
it might take up to a few hours until it is committed.
Since this is a volunteer-driven effort, more complex patches will
require more patience on the part of the submitter.
================================================================================
Testing thoroughly before submissions
================================================================================
This is a fairly large library and each component is dependent on another
component either directly or indirectly.
As a consequence, any and all changes must be tested thoroughly before commiting them.
It is only polite to the users, author(s) or maintainer(s) that you do so.
================================================================================
Checklist for making submissions
================================================================================
- Did you run "make test" to check if your patch didn't break
other features?
- Did you compile PHP with --enable-debug and check the PHP and
web server error logs when you test your patch?
- Did you build PHP for multi-threaded web servers.
- Did you create test script for "make test"? (Recommended)
- Did you check your patch is unified format and it does not
contain white space changes?
- Did you read the patch again?
php-solr-2.5.1+2.4.0/solr-2.4.0/TODO 0000664 0000000 0000000 00000001467 13740415371 0016043 0 ustar 00root root 0000000 0000000
2014-02-17
$Id$
================================================================================
Features and things to do in the library
================================================================================
- Set up php.ini entries for default servlet values.
This will allow developers to set custom values for the servlets.
- Ability to send custom requests to Solr (custom url, custom request contents)
- Ability to add files (pdf, office documents, etc)
- Ensure the SolrQuery::getFields(), SolrQuery::getFacets() et all returns an array consistently.
- More frequent compilations of releases for PHP 5.3 on Windows
- Support JSON Writer
- Support Solr Spatial Features Natively
- Introduce SolrServerException to parse and return Solr Server error messages instead of dumping xml docs
php-solr-2.5.1+2.4.0/solr-2.4.0/config.m4 0000664 0000000 0000000 00000012617 13740415371 0017061 0 ustar 00root root 0000000 0000000
dnl $Id$
dnl config.m4 for the solr extension
dnl Configuring the CURL external library
dnl This folder is the grand-parent folder of easy.h
PHP_ARG_WITH(curl, for cURL support, [ --with-curl[=DIR] SOLR : libcurl install prefix])
if test -r $PHP_CURL/include/curl/easy.h; then
CURL_DIR=$PHP_CURL
AC_MSG_RESULT(curl headers found in $PHP_CURL)
else
AC_MSG_CHECKING(for cURL in default path)
for i in /usr/local /usr; do
if test -r $i/include/curl/easy.h; then
CURL_DIR=$i
AC_MSG_RESULT(found in $i)
break
fi
done
fi
if test -z "$CURL_DIR"; then
AC_MSG_RESULT(not found)
AC_MSG_ERROR([Please reinstall the libcurl distribution -
easy.h should be in /include/curl/])
fi
CURL_CONFIG="curl-config"
AC_MSG_CHECKING(for cURL 7.15.0 or greater)
if ${CURL_DIR}/bin/curl-config --libs > /dev/null 2>&1; then
CURL_CONFIG=${CURL_DIR}/bin/curl-config
else
if ${CURL_DIR}/curl-config --libs > /dev/null 2>&1; then
CURL_CONFIG=${CURL_DIR}/curl-config
fi
fi
curl_version_full=`$CURL_CONFIG --version`
curl_version=`echo ${curl_version_full} | sed -e 's/libcurl //' | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
if test "$curl_version" -ge 7015000; then
AC_MSG_RESULT($curl_version_full)
CURL_LIBS=`$CURL_CONFIG --libs`
else
AC_MSG_ERROR([The Solr extension does not support libcurl libraries < 7.15.0. Please update your libraries])
fi
PHP_ARG_ENABLE(solr, whether to enable the Solr extension,
[ --enable-solr Enable solr support])
PHP_ARG_ENABLE(solr-debug, whether to compile with solr in verbose mode,
[ --enable-solr-debug Compile with solr in verbose mode], no, no)
dnl Configuring the LibXML external Library
if test -z "$PHP_LIBXML_DIR"; then
PHP_ARG_WITH(libxml-dir, libxml2 install dir,
[ --with-libxml-dir=[DIR] SOLR : libxml2 install prefix], no, no)
fi
PHP_ARG_ENABLE(coverage, whether to enable code coverage,
[ --enable-coverage Enable developer code coverage information],, no)
dnl Setting up the apache Solr extension
if test "$PHP_SOLR" != "no"; then
if test "$PHP_CURL" = "no"; then
AC_MSG_ERROR([Solr extension requires curl extension, add --with-curl])
fi
PHP_CHECK_LIBRARY(curl,curl_easy_perform,
[
AC_DEFINE(HAVE_CURL,1,[ ])
],[
AC_MSG_ERROR(There is something wrong. Please check config.log for more information.)
],[
$CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR
])
PHP_ADD_INCLUDE($CURL_DIR/include)
PHP_EVAL_LIBLINE($CURL_LIBS, SOLR_SHARED_LIBADD)
PHP_ADD_LIBRARY_WITH_PATH(curl, $CURL_DIR/lib, SOLR_SHARED_LIBADD)
if test "$PHP_LIBXML" = "no"; then
AC_MSG_ERROR([Solr extension requires LIBXML extension, add --enable-libxml])
fi
AC_MSG_CHECKING(for JSON)
if test -f "$phpincludedir/ext/json/php_json.h" || test "$HAVE_JSON" != "no"; then
AC_DEFINE(HAVE_JSON, 1, [JSON support])
AC_MSG_RESULT(Yes)
else
AC_MSG_ERROR([Solr extension requires json or jsonc support])
fi
PHP_SETUP_LIBXML(SOLR_SHARED_LIBADD, [
AC_DEFINE(HAVE_SOLR, 1,[Setting the value of HAVE_SOLR to 1 ])
if test "$PHP_SOLR_DEBUG" != "no"; then
AC_DEFINE(SOLR_DEBUG, 1, [Setting the value of SOLR_DEBUG to 1 ])
else
AC_DEFINE(SOLR_DEBUG_OFF, 1, [Setting the value of SOLR_DEBUG_OFF to 1 ])
fi
if test "$PHP_COVERAGE" = "yes"; then
PHP_CHECK_GCC_ARG(-fprofile-arcs, COVERAGE_CFLAGS="$COVERAGE_CFLAGS -fprofile-arcs")
PHP_CHECK_GCC_ARG(-ftest-coverage, COVERAGE_CFLAGS="$COVERAGE_CFLAGS -ftest-coverage")
EXTRA_LDFLAGS="$COVERAGE_CFLAGS"
fi
export OLD_CPPFLAGS="$CPPFLAGS"
export CPPFLAGS="$CPPFLAGS $INCLUDES"
AC_MSG_CHECKING(PHP version)
AC_TRY_COMPILE([
#include
],[
#if PHP_MAJOR_VERSION > 5
#error PHP > 5
#endif
],[
subdir=src/php5
AC_MSG_RESULT([PHP 5])
],[
subdir=src/php7
AC_MSG_RESULT([PHP 7])
])
PHP_SOLR_SRC_FILES="$subdir/php_solr.c \
$subdir/php_solr_object.c \
$subdir/php_solr_document.c \
$subdir/php_solr_input_document.c \
$subdir/php_solr_client.c \
$subdir/php_solr_params.c \
$subdir/php_solr_query.c \
$subdir/php_solr_response.c \
$subdir/php_solr_exception.c \
$subdir/php_solr_utils.c \
$subdir/php_solr_dismax_query.c \
$subdir/php_solr_collapse_function.c \
$subdir/solr_string.c \
$subdir/solr_functions_document.c \
$subdir/solr_functions_client.c \
$subdir/solr_functions_helpers.c \
$subdir/solr_functions_params.c \
$subdir/solr_functions_response.c \
$subdir/solr_functions_debug.c"
PHP_NEW_EXTENSION(solr, $PHP_SOLR_SRC_FILES,
$ext_shared,, [$COVERAGE_CFLAGS])
PHP_ADD_BUILD_DIR($abs_builddir/$subdir, 1)
PHP_SUBST(SOLR_SHARED_LIBADD)
], [
AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.])
])
fi
php-solr-2.5.1+2.4.0/solr-2.4.0/config.w32 0000664 0000000 0000000 00000006550 13740415371 0017153 0 ustar 00root root 0000000 0000000 // $Id$
// vim:ft=javascript
// config.w32 for solr extension
ARG_ENABLE('solr', 'Whether to enable Apache Solr support', 'no');
ARG_ENABLE('solr-debug', 'Whether to enable Solr debugging support', 'no');
if(PHP_SOLR != 'no')
{
if(!CHECK_LIB('libcurl_a.lib;libcurl.lib', 'solr', PHP_SOLR) ||
!CHECK_HEADER_ADD_INCLUDE('curl/easy.h', 'CFLAGS_SOLR')) {
WARNING('solr was not enabled; curl libraries and/or headers not found');
PHP_SOLR = "no";
}
if(!CHECK_LIB('ssleay32.lib', 'solr', PHP_SOLR)
|| !CHECK_LIB('libeay32.lib', 'solr', PHP_SOLR)) {
WARNING('solr was not enabled; openssl libraries not found');
PHP_SOLR = "no";
}
if(!CHECK_LIB('winmm.lib', 'solr', PHP_SOLR)
|| !CHECK_LIB('wldap32.lib', 'solr', PHP_SOLR)) {
WARNING('solr not enabled; ldap libraries not found');
PHP_SOLR = "no";
}
if(!((PHP_ZLIB == 'no' && CHECK_LIB('zlib_a.lib;zlib.lib', 'solr', PHP_SOLR))
|| (PHP_ZLIB_SHARED && CHECK_LIB('zlib.lib', 'solr', PHP_SOLR))
|| (PHP_ZLIB == 'yes' && !PHP_ZLIB_SHARED))) {
WARNING('solr not enabled; zlib libraries not found');
PHP_SOLR = "no";
}
if(PHP_LIBXML == 'no' || !ADD_EXTENSION_DEP('solr', 'libxml')) {
WARNING('solr was not enabled; libxml is not enabled');
PHP_SOLR = "no";
} else {
if (!CHECK_LIB("libxml2_a_dll.lib;libxml2_a.lib", "solr", PHP_SOLR) ||
!CHECK_LIB("libiconv_a.lib;iconv_a.lib;libiconv.lib;iconv.lib", "solr", PHP_SOLR) ||
!CHECK_HEADER_ADD_INCLUDE('libxml/parser.h', 'CFLAGS_SOLR', PHP_PHP_BUILD + "\\include\\libxml2") ||
!CHECK_HEADER_ADD_INCLUDE('libxml/tree.h', 'CFLAGS_SOLR', PHP_PHP_BUILD + "\\include\\libxml2")
) {
WARNING('solr was not enabled; libxml or iconv not found');
PHP_SOLR = "no";
}
}
if(PHP_JSON == 'no' || !ADD_EXTENSION_DEP('solr', 'json')) {
WARNING('solr was not enabled; json is not enabled');
PHP_SOLR = "no";
}
if(PHP_SOLR != 'no') {
if(PHP_SOLR_DEBUG == 'no') {
AC_DEFINE('SOLR_DEBUG_OFF', 1, 'Solr debugging set to off');
} else {
AC_DEFINE('SOLR_DEBUG', 1, 'Solr debugging set to on');
}
var dll = get_define('PHPDLL');
var old_conf_dir = configure_module_dirname;
/* XXX tricky job here, override configure_module_dirname, define the basic extension,
then set it back*/
if (null != dll.match(/^php5/)) {
configure_module_dirname = configure_module_dirname + "\\src\\php5";
} else if (null != dll.match(/^php7/)) {
configure_module_dirname = configure_module_dirname + "\\src\\php7";
} else {
ERROR("Cannot match any known PHP version with '" + dll + "'");
}
EXTENSION('solr',
'php_solr.c php_solr_client.c php_solr_document.c php_solr_exception.c ' +
'php_solr_input_document.c php_solr_object.c php_solr_params.c php_solr_query.c ' +
'php_solr_response.c php_solr_utils.c solr_functions_client.c solr_functions_debug.c ' +
'solr_functions_document.c solr_functions_helpers.c solr_functions_params.c ' +
'solr_functions_response.c solr_string.c php_solr_dismax_query.c ' +
'php_solr_collapse_function.c'
);
configure_module_dirname = old_conf_dir;
ADD_FLAG('CFLAGS_SOLR', '/I"' + configure_module_dirname + '" /D CURL_STATICLIB /D LIBXML_STATICLIB');
AC_DEFINE('HAVE_SOLR', 1, 'Solr support');
if (!PHP_SOLR_SHARED) {
ADD_FLAG("CFLAGS_SOLR", "/D LIBXML_STATIC");
}
ADD_EXTENSION_DEP('solr', 'libxml');
}
}
php-solr-2.5.1+2.4.0/solr-2.4.0/docs/ 0000775 0000000 0000000 00000000000 13740415371 0016273 5 ustar 00root root 0000000 0000000 php-solr-2.5.1+2.4.0/solr-2.4.0/docs/documentation.php 0000664 0000000 0000000 00000244477 13740415371 0021677 0 ustar 00root root 0000000 0000000 |
| Omar Shaban |
+----------------------------------------------------------------------+
*/
/* $Id$ */
define('SOLR_MAJOR_VERSION', 2);
define('SOLR_MINOR_VERSION', 3);
define('SOLR_PATCH_VERSION', 0);
define('SOLR_EXTENSION_VERSION', '2.3.0');
/**
* Returns the current version of the Apache Solr extension
*
* @return string
*/
function solr_get_version()
{
return SOLR_EXTENSION_VERSION;
}
/**
* This is the base class for all exception thrown by the Solr extension classes.
*
* @author Israel Ekpo
*/
class SolrException extends Exception
{
/* Properties */
protected $sourceline;
protected $sourcefile;
protected $zif_name;
/**
* Returns internal information where the Exception was thrown
* @return array
* @link http://docs.php.net/manual/en/solrexception.getinternalinfo.php
*/
public function getInternalInfo() {}
}
/**
* An exception thrown when there is an error while making a request to the server from the client.
* @author Israel Ekpo
*/
class SolrClientException extends SolrException
{
/**
* Returns internal information where the Exception was thrown
*
* @return array
* @link http://docs.php.net/manual/en/solrclientexception.getinternalinfo.php
*/
public function getInternalInfo() {}
}
/**
* Used for Solr Related Exceptions
*
* @author Omar Shaban
*/
class SolrServerException extends SolrException
{
/**
* Returns internal information where the Exception was thrown
*
* @return array
* @link http://docs.php.net/manual/en/solrserverexception.getinternalinfo.php
*/
public function getInternalInfo() {}
}
/**
* This object is thrown when an illeglal or invalid argument is passed to a method.
*
* @link http://docs.php.net/manual/en/class.solrillegalargumentexception.php
* @author Israel Ekpo
*/
class SolrIllegalArgumentException extends SolrException
{
/**
* Returns internal information where the Exception was thrown
* @return string
* @link http://docs.php.net/manual/en/solrillegalargumentexception.getinternalinfo.php
*/
public function getInternalInfo() {}
}
/**
* @link http://docs.php.net/manual/en/class.solrillegaloperationexception.php
* @author Israel Ekpo
*/
class SolrIllegalOperationException extends SolrException
{
/**
* Returns internal information where the Exception was thrown
*
* @return string
* @link http://docs.php.net/manual/en/solrillegaloperationexception.getinternalinfo.php
*/
public function getInternalInfo() {}
}
/**
* @author Omar Shaban
*/
class SolrMissingMandatoryParameterException extends SolrException
{
}
/**
*
* @author Israel Ekpo
*/
abstract class SolrUtils
{
/**
* Parses an response XML string into a SolrObject
*
* @param string $xmlresponse
* @param int $parse_mode
* @return SolrObject
* @link http://docs.php.net/manual/en/solrutils.digestxmlresponse.php
*/
public static function digestXmlResponse($xmlresponse, $parse_mode = 0) {}
/**
* Escapes a lucene query string
*
* @param string $str String to be escaped
* @return string
* @link http://docs.php.net/manual/en/solrutils.escapequerychars.php
*/
public static function escapeQueryChars($str) {}
/**
* Returns the current version of the Solr extension
* @return string
* @link http://docs.php.net/manual/en/solrutils.getsolrversion.php
*/
public static function getSolrVersion() {}
/**
* Prepares a phrase from an unescaped lucene string
*
* @param string $str
* @return string
* @link http://docs.php.net/manual/en/solrutils.queryphrase.php
*/
public static function queryPhrase($str) {}
}
/**
* Represents a field in a Solr document. All its properties are read-only.
*
* @author Israel Ekpo
*/
class SolrDocumentField
{
/**
* The name of the field
*
* @var string
*/
public $name;
/**
* The boost value for the field
*
* @var float
*/
public $boost;
/**
* An array of values for this field
* @var array
*/
public $values;
/**
* Constructor
*/
public function __construct() {}
/**
* Destructor
*/
public function __destruct() {}
}
/**
* Represents a Solr document that is about to be submitted to the Solr index
*
* @link http://docs.php.net/manual/en/class.solrinputdocument.php
* @author Israel Ekpo
*/
final class SolrInputDocument
{
/**
* Sorts the fields in ascending order
*/
const SORT_DEFAULT = 1 ;
/**
* Sorts the fields in ascending order
*/
const SORT_ASC = 1 ;
/**
* Sorts the fields in descending order
*/
const SORT_DESC = 2 ;
/**
* Sorts the fields by name
*/
const SORT_FIELD_NAME = 1 ;
/**
* Sorts the fields by number of values
*/
const SORT_FIELD_VALUE_COUNT = 2 ;
/**
* Sorts the fields by boost value
*/
const SORT_FIELD_BOOST_VALUE = 4 ;
/**
* Adds a field to the document
*
* @param string $fieldName The name of the field
* @param string $fieldValue The value for the field
* @param float $fieldBoostValue The index time boost for the field. Though this cannot be negative, you can still pass values less than 1.0 but they must be greater than zero.
* @link http://docs.php.net/manual/en/solrinputdocument.addfield.php
*/
public function addField($fieldName, $fieldValue, $fieldBoostValue = 0.0) {}
/**
* Resets the document by dropping all the fields and resets the document boost to zero
*
* @link http://docs.php.net/manual/en/solrinputdocument.clear.php
* @return bool Returns TRUE on success or FALSE on failure
*/
public function clear() {}
public function __clone() {}
public function __construct() {}
public function __destruct() {}
/**
* Removes a field from the document
* @param string $fieldName
* @link http://docs.php.net/manual/en/solrinputdocument.deletefield.php
*/
public function deleteField($fieldName) {}
/**
* Checks if a field exists
*
* @param $fieldName
* @return bool
* @link http://docs.php.net/manual/en/solrinputdocument.fieldexists.php
*/
public function fieldExists($fieldName) {}
/**
* Retrieves the current boost value for the document
*
* @return float
* @link http://docs.php.net/manual/en/solrinputdocument.getboost.php
*/
public function getBoost() {}
/**
* Retrieves a field by name
*
* @param string $fieldName
* @return SolrDocumentField
*/
public function getField($fieldName) {}
/**
* Retrieves the boost value for a particular field
*
* @param string $fieldName
* @return float
* @link http://docs.php.net/manual/en/solrinputdocument.getfieldboost.php
*/
public function getFieldBoost($fieldName) {}
/**
* Returns the number of fields in the document
*
* @return int
* @link http://docs.php.net/manual/en/solrinputdocument.getfieldcount.php
*/
public function getFieldCount() {}
/**
* Returns an array containing all the fields in the document
*
* @return array
* @link http://docs.php.net/manual/en/solrinputdocument.getfieldnames.php
*/
public function getFieldNames() {}
/**
* Merges one input document into another
*
* @param SolrInputDocument $sourceDoc
* @param bool $overwrite
* @link http://docs.php.net/manual/en/solrinputdocument.merge.php
*/
public function merge(SolrInputDocument $sourceDoc, $overwrite = true) {}
/**
* This is an alias of SolrInputDocument::clear
*
* @return bool
* @link http://docs.php.net/manual/en/solrinputdocument.reset.php
*/
public function reset() {}
/**
* Sets the boost value for this document
*
* @param float $documentBoostValue
* @link http://docs.php.net/manual/en/solrinputdocument.setboost.php
*/
public function setBoost($documentBoostValue) {}
/**
* Sets the index-time boost value for a field
*
* @param string $fieldName
* @param float $fieldBoostValue
* @link http://docs.php.net/manual/en/solrinputdocument.setfieldboost.php
*/
public function setFieldBoost($fieldName, $fieldBoostValue) {}
/**
* Sorts the fields within the document
*
* @param int $sortOrderBy
* @param int $sortDirection One of the SolrInputDocument::SORT_* constants
* @link http://docs.php.net/manual/en/solrinputdocument.sort.php
*/
public function sort($sortOrderBy, $sortDirection = SolrInputDocument::SORT_ASC) {}
/**
* Returns an array representation of the input document
*
* @return array
* @link http://docs.php.net/manual/en/solrinputdocument.toarray.php
*/
public function toArray() {}
/**
* Adds a child document
*
* @param SolrInputDocument $child
* @return void
* @throws SolrIllegalArgumentException
* @throws SolrException
*/
public function addChildDocument(SolrInputDocument $child) {}
/**
* Adds child documents
*
* @param array $children
* @return void
* @throws SolrIllegalArgumentException
* @throws SolrException
*/
public function addChildDocuments(array $children) {}
/**
* Whether this input document has child documents
*
* @return bool
*/
public function hasChildDocuments() {}
/**
* Returns an array of child documents (SolrInputDocument)
*
* @return array
*/
public function getChildDocuments() {}
/**
* Returns the number of child documents
*
* @return int
*/
public function getChildDocumentsCount() {}
}
/**
* Represents a Solr document retrieved from a query response
*
* @link http://docs.php.net/manual/en/class.solrdocument.php
* @author Israel Ekpo
* @author Omar Shaban
*/
final class SolrDocument implements ArrayAccess, Iterator, Serializable
{
const SORT_DEFAULT = 1 ;
const SORT_ASC = 1 ;
const SORT_DESC = 2 ;
const SORT_FIELD_NAME = 1 ;
const SORT_FIELD_VALUE_COUNT = 2 ;
const SORT_FIELD_BOOST_VALUE = 4 ;
public function __construct() {}
public function __clone() {}
public function __destruct() {}
/**
* Adds a field to the document
*
* @param string $fieldName
* @param string $fieldValue
* @return Returns TRUE on success or FALSE on failure
* @link http://docs.php.net/manual/en/solrdocument.addfield.php
*/
public function addField($fieldName, $fieldValue) {}
/**
* Drops all the fields in the document
*
* @return Returns TRUE on success or FALSE on failure
* @link http://docs.php.net/manual/en/solrdocument.addfield.php
*/
public function clear() {}
/**
* Retrieves the current field
*
* @return SolrDocumentField
* @link http://docs.php.net/manual/en/solrdocument.current.php
*/
public function current() {}
/**
* Removes a field from the document
*
* @param string $fieldName
* @link http://docs.php.net/manual/en/solrdocument.deletefield.php
*/
public function deleteField($fieldName) {}
/**
* Checks if a field exists in the document
* @param string $fieldName
* @return Returns TRUE if the field is present and FALSE if it does not
* @link http://docs.php.net/manual/en/solrdocument.fieldexists.php
*/
public function fieldExists($fieldName) {}
/**
* Magic method for accessing the field as a property
*
* @param string $fieldName
* @link http://docs.php.net/manual/en/solrdocument.get.php
*/
public function __get($fieldName) {}
/**
* Retrieves a field by name
*
* @param string $fieldName
* @return SolrDocumentField
*/
public function getField($fieldName) {}
/**
* Returns the number of fields in this document. Multi-value fields are only counted once.
*
* @return int
* @link http://docs.php.net/manual/en/solrdocument.getfieldcount.php
*/
public function getFieldCount() {}
/**
* Returns an array of fields names in the document
*
* @return array
* @link http://docs.php.net/manual/en/solrdocument.getfieldcount.php
*/
public function getFieldNames() {}
/**
* Returns a SolrInputDocument equivalent of the object
*
* @return SolrInputDocument
* @link http://docs.php.net/manual/en/solrdocument.getinputdocument.php
*/
public function getInputDocument() {}
public function __isset($fieldName) {}
public function key() {}
/**
* Merges source to the current SolrDocument
*
* @param SolrDocument $sourceDoc
* @param bool $overwrite
* @link http://docs.php.net/manual/en/solrdocument.merge.php
*/
public function merge(SolrDocument $sourceDoc, $overwrite = true) {}
public function next() {}
public function offsetExists($fieldName) {}
public function offsetGet($fieldName) {}
public function offsetSet($fieldName, $fieldValue) {}
public function offsetUnset($fieldName) {}
public function reset() {}
public function rewind() {}
public function serialize() {}
public function __set($fieldName, $fieldValue) {}
public function sort($sortOrderBy, $sortDirection) {}
public function toArray() {}
public function unserialize($serialized) {}
public function __unset($fieldName) {}
public function valid() {}
/**
* Checks whether this document contains child documents
*
* @return bool
*/
public function hasChildDocuments() {}
/**
* Returns an array of child documents (SolrDocument)
*
* @return array
*/
public function getChildDocuments() {}
/**
* Returns the number of child documents
*
* @return int
*/
public function getChildDocumentsCount() {}
}
/**
*
* @author Israel Ekpo
*/
class SolrObject implements ArrayAccess
{
/* Methods */
public function __construct() {}
public function __destruct() {}
public function getPropertyNames() {}
public function offsetExists($property_name) {}
public function offsetGet($property_name) {}
public function offsetSet($property_name, $property_value) {}
public function offsetUnset($property_name) {}
}
/**
*
* @author Israel Ekpo
* @author Omar Shaban
*/
final class SolrClient
{
/* Constants */
const SEARCH_SERVLET_TYPE = 1 ;
const UPDATE_SERVLET_TYPE = 2 ;
const THREADS_SERVLET_TYPE = 4 ;
const PING_SERVLET_TYPE = 8 ;
const TERMS_SERVLET_TYPE = 16 ;
const SYSTEM_SERVLET_TYPE = 32;
const DEFAULT_SEARCH_SERVLET = 'select' ;
const DEFAULT_UPDATE_SERVLET = 'update' ;
const DEFAULT_THREADS_SERVLET = 'admin/threads' ;
const DEFAULT_PING_SERVLET = 'admin/ping' ;
const DEFAULT_TERMS_SERVLET = 'terms' ;
const DEFAULT_SYSTEM_SERVLET = 'admin/system' ;
/**
* Constructor
*
* @param array $clientOptions
*/
public function __construct(array $clientOptions) {}
public function __destruct() {}
/**
* Adds a document to the index
*
* @param SolrInputDocument $doc
* @param bool $overwrite
* @param int $commitWithin 0 means disabled
* @return SolrUpdateResponse
*/
public function addDocument(SolrInputDocument &$doc, $overwrite = true, $commitWithin = 0) {}
/**
* Adds a collection of SolrInputDocument instances to the index
*
* @param array $docs An array of SolrInputDocument objects
* @param bool $overwrite
* @param int $commitWithin
* @return SolrUpdateResponse
*/
public function addDocuments(array &$docs, $overwrite = true, $commitWithin = 0) {}
/**
* Finalizes all add/deletes made to the index
*
* @param bool $softCommit
* @param bool $waitSearcher
* @param bool $expungeDeletes
* @return SolrUpdateResponse
*/
public function commit($softCommit = false, $waitSearcher = true, $expungeDeletes = false) {}
/**
* Get Document By Id. Utilizes Solr Realtime Get (RTG).
*
* @param string $id
* @return SolrQueryResponse
*/
public function getById($id) {}
/**
* Get Documents by their Ids. Utilizes Solr Realtime Get (RTG).
*
* @param array $ids
* @return SolrQueryResponse
*/
public function getByIds(array $ids) {}
/**
* Deletes the document with the specified ID.
*
* Where ID is the value of the uniqueKey field declared in the schema
*
* @param string $id
* @return SolrUpdateResponse
*/
public function deleteById($id) {}
/**
* Deletes a collection of documents with the specified set of ids
*
* @param array $ids
* @return SolrUpdateResponse
*/
public function deleteByIds(array $ids) {}
/**
* Removes all documents matching any of the queries
*
* @param array $queries
* @return SolrUpdateResponse
*/
public function deleteByQueries(array $queries) {}
/**
* Deletes all documents matching the given query
*
* @param string $query
* @return SolrUpdateResponse
*/
public function deleteByQuery($query) {}
/**
* Returns the debug data for the last connection attempt
*
* @return string
*/
public function getDebug() {}
/**
* Returns the client options set internally
*
* @return array
*/
public function getOptions() {}
/**
* Defragments the index for faster search performance
*
* @param int $maxSegments
* @param bool $softCommit
* @param bool $waitSearcher
* @return SolrUpdateResponse
*/
public function optimize($maxSegments = 1, $softCommit = false, $waitSearcher = true) {}
/**
* Checks if Solr server is still up
*
* @return SolrPingResponse
*/
public function ping() {}
/**
* Sends a query to the server
*
* @param SolrParams $query
* @return SolrQueryResponse
*/
public function query(SolrParams $query) {}
/**
* Sends a raw XML update request to the server
*
* @param string $raw_request
* @return SolrUpdateResponse
*/
public function request($raw_request) {}
/**
* Rollbacks all add/deletes made to the index since the last commit
*
* @return SolrUpdateResponse
*/
public function rollback() {}
/**
* Changes the specified servlet type to a new value
*
* @param int $type
* @param string $value
*
* @return bool
* @link http://docs.php.net/manual/en/solrclient.setservlet.php
*/
public function setServlet($type, $value) {}
/**
* Checks the threads status
*
* @return SolrGenericResponse
* @link http://docs.php.net/manual/en/solrclient.threads.php
*/
public function threads() {}
/**
* Retrieve Solr Server System Information
*
* @return SolrGenericResponse
*/
public function system() {}
}
/**
*
* @author Israel Ekpo
*/
class SolrResponse {
/* Constants */
const PARSE_SOLR_OBJ = 0 ;
const PARSE_SOLR_DOC = 1 ;
/* Properties */
protected $http_status;
protected $parser_mode;
protected $success;
protected $http_status_message;
protected $http_request_url;
protected $http_raw_request_headers;
protected $http_raw_request;
protected $http_raw_response_headers;
protected $http_raw_response;
protected $http_digested_response;
/* Methods */
public function __construct() {}
public function __destruct() {}
/**
* Returns the XML response as serialized PHP data
*
* @return string
* @link http://docs.php.net/manual/en/solrresponse.getdigestedresponse.php
*/
public function getDigestedResponse() {}
/**
* @return int
* @link http://docs.php.net/manual/en/solrresponse.gethttpstatus.php
*/
public function getHttpStatus() {}
/**
* @return string
* @link http://docs.php.net/manual/en/solrresponse.gethttpstatusmessage.php
*/
public function getHttpStatusMessage() {}
/**
* @return string
* @link http://docs.php.net/manual/en/solrresponse.getrawrequest.php
*/
public function getRawRequest() {}
/**
* @return string
* @link http://docs.php.net/manual/en/solrresponse.getrawrequestheaders.php
*/
public function getRawRequestHeaders() {}
/**
* @return string
* @link http://docs.php.net/manual/en/solrresponse.getrawresponse.php
*/
public function getRawResponse() {}
/**
* Returns the raw response headers from the server
*
* @return string
* @link http://docs.php.net/manual/en/solrresponse.getrawresponseheaders.php
*/
public function getRawResponseHeaders() {}
/**
* Returns the full URL the request was sent to
*
* @return string
* @link http://docs.php.net/manual/en/solrresponse.getrequesturl.php
*/
public function getRequestUrl() {}
/**
* Returns a SolrObject representing the XML response from the server
*
* @return SolrObject
* @link http://docs.php.net/manual/en/solrresponse.getresponse.php
*/
public function getResponse() {}
/**
* @param int $parser_mode
* @return bool
* @link http://docs.php.net/manual/en/solrresponse.setparsemode.php
*/
public function setParseMode($parser_mode) {}
/**
* @return bool
* @link http://docs.php.net/manual/en/solrresponse.success.php
*/
public function success() {}
}
/**
*
* @author Israel Ekpo
*/
class SolrQueryResponse extends SolrResponse
{
}
/**
*
* @author Israel Ekpo
*/
class SolrUpdateResponse extends SolrResponse
{
}
/**
*
* @author Israel Ekpo
*/
class SolrPingResponse extends SolrResponse
{
}
/**
*
* @author Israel Ekpo
*/
class SolrGenericResponse extends SolrResponse
{
}
/**
*
* @author Israel Ekpo
*/
abstract class SolrParams implements Serializable
{
/**
* This is an alias for SolrParams::addParam
*
* @param $name
* @param $value
* @return SolrParams
*/
public function add($name, $value) {}
/**
* Adds a parameter to the object
*
* @param string $name Param name
* @param string $value Param value
* @return SolrParams
*/
public function addParam($name, $value) {}
/**
* This is an alias for SolrParams::getParam
*
* Returns an array or string depending on the type of parameter
*
* @param string $param_name
*
* @return mixed
*/
public function get($param_name) {}
/**
* Returns an array or string depending on the type of parameter
*
* @param string $param_name
*
* @return mixed
*/
public function getParam($param_name) {}
/**
* Returns an array of non URL-encoded parameters
*
* @return array
*/
public function getParams() {}
/**
* Returns an array on URL-encoded parameters
*
* @return array
*/
public function getPreparedParams() {}
/**
* Used for custom serialization
*
* @return string
*/
public function serialize() {}
/**
*
* @param $name
* @param $value
* @return SolrParams
*/
public function set($name, $value) {}
/**
*
* @param $name
* @param $value
* @return SolrParams
*/
public function setParam($name, $value) {}
/**
* Returns all the name-value pair parameters in the object
*
* @param bool $url_encode Whether to return URL-encoded values
*
* @return string
*/
public function toString($url_encode) {}
/**
* Used for Custom serialization
*
* @param string $serialized
* @return void
*/
public function unserialize($serialized) {}
}
/**
* Represents a collection of name-value pairs sent to the Solr server during a request
*
* @author Israel Ekpo
*/
class SolrModifiableParams extends SolrParams implements Serializable
{
public function __construct() {}
public function __destruct() {}
/**
* This is an alias for SolrParams::addParam
*
* @param $name
* @param $value
* @return SolrModifiableParams
*/
public function add($name, $value) {}
/**
* Adds a parameter to the object
*
* @param string $name Param name
* @param string $value Param value
* @return SolrParams
*/
public function addParam($name, $value) {}
/**
* Returns an array on URL-encoded parameters
*
* @return array
*/
public function getPreparedParams() {}
/**
* Used for custom serialization
*
* @return string
*/
public function serialize() {}
/**
*
* @param $name
* @param $value
* @return SolrModifiableParams
*/
public function set($name, $value) {}
/**
*
* @param $name
* @param $value
* @return SolrModifiableParams
*/
public function setParam($name, $value) {}
/**
* Returns all the name-value pair parameters in the object
*
* @param bool $url_encode Whether to return URL-encoded values
*
* @return string
*/
public function toString($url_encode) {}
/**
* Used for Custom serialization
*
* @param string $serialized
* @return void
*/
public function unserialize($serialized) {}
}
/**
*
* @author Israel Ekpo
* @author Omar Shaban
*/
class SolrQuery extends SolrModifiableParams implements Serializable {
/* Constants */
const ORDER_ASC = 0 ;
const ORDER_DESC = 1 ;
const FACET_SORT_INDEX = 0 ;
const FACET_SORT_COUNT = 1 ;
const TERMS_SORT_INDEX = 0 ;
const TERMS_SORT_COUNT = 1 ;
/**
*
* @param string $q Query string
*/
public function __construct($q = null) {}
public function __destruct() {}
/**
* This is an alias for SolrParams::addParam
*
* @param $name
* @param $value
* @return SolrQuery
*/
public function add($name, $value) {}
/**
* Adds a parameter to the object
*
* @param string $name Param name
* @param string $value Param value
* @return SolrParams
*/
public function addParam($name, $value) {}
/**
* This is an alias for SolrParams::getParam
*
* Returns an array or string depending on the type of parameter
*
* @param string $param_name
*
* @return mixed
*/
public function get($param_name) {}
/**
* Returns an array or string depending on the type of parameter
*
* @param string $param_name
*
* @return mixed
*/
public function getParam($param_name) {}
/**
* Returns an array of non URL-encoded parameters
*
* @return array
*/
public function getParams() {}
/**
* Returns an array on URL-encoded parameters
*
* @return array
*/
public function getPreparedParams() {}
/**
* Used for custom serialization
*
* @return string
*/
public function serialize() {}
/**
*
* @param $name
* @param $value
* @return SolrQuery
*/
public function set($name, $value) {}
/**
*
* @param $name
* @param $value
* @return SolrQuery
*/
public function setParam($name, $value) {}
/**
* Returns all the name-value pair parameters in the object
*
* @param bool $url_encode Whether to return URL-encoded values
*
* @return string
*/
public function toString($url_encode) {}
/**
* Used for Custom serialization
*
* @param string $serialized
* @return void
*/
public function unserialize($serialized) {}
/**
* @param string $dateField
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.addfacetdatefield.php
*/
public function addFacetDateField($dateField) {}
/**
* Adds another facet.date.other parameter
*
* @param string $value
* @param string $field_override [optional] Field name for the override
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.addfacetdateother.php
*/
public function addFacetDateOther($value, $field_override = null) {}
/**
* Adds another field to the facet
*
* @param string $field
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.addfacetfield.php
*/
public function addFacetField($field) {}
/**
* @param string $facetQuery
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.addfacetquery.php
*/
public function addFacetQuery($facetQuery) {}
/**
* @param string $field
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.addfield.php
*/
public function addField($field) {}
/**
* @param string $fq
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.addfilterquery.php
*/
public function addFilterQuery($fq) {}
/**
* @param string $field
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.addhighlightfield.php
*/
public function addHighlightField($field) {}
/**
* @param string $field
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.addmltfield.php
*/
public function addMltField($field) {}
/**
* @param string $field
* @param float $boost
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.addmltqueryfield.php
*/
public function addMltQueryField($field, $boost) {}
/**
* @param string $field
* @param int $order
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.addsortfield.php
*/
public function addSortField($field, $order) {}
/**
* @param string $field
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.addstatsfacet.php
*/
public function addStatsFacet($field) {}
/**
* @param string $field
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.addstatsfield.php
*/
public function addStatsField($field) {}
/**
* @return bool
* @link http://docs.php.net/manual/en/solrquery.getfacet.php
*/
public function getFacet() {}
/**
* @param string $field_override [optional]
* @return string
* @link http://docs.php.net/manual/en/solrquery.getfacetdateend.php
*/
public function getFacetDateEnd($field_override = null) {}
/**
* @return array
* @link http://docs.php.net/manual/en/solrquery.getfacetdatefields.php
*/
public function getFacetDateFields() {}
/**
* @param string $field_override [optional]
* @return string
* @link http://docs.php.net/manual/en/solrquery.getfacetdategap.php
*/
public function getFacetDateGap($field_override = null) {}
/**
* @param string $field_override [optional]
* @return string
* @link http://docs.php.net/manual/en/solrquery.getfacetdatehardend.php
*/
public function getFacetDateHardEnd($field_override = null) {}
/**
* @param string $field_override [optional]
* @return array
* @link http://docs.php.net/manual/en/solrquery.getfacetdateother.php
*/
public function getFacetDateOther($field_override = null) {}
/**
* @param string $field_override [optional]
* @return string
* @link http://docs.php.net/manual/en/solrquery.getfacetdatestart.php
*/
public function getFacetDateStart($field_override = null) {}
/**
* @return array
* @link http://docs.php.net/manual/en/solrquery.getfacetfields.php
*/
public function getFacetFields() {}
/**
* @param string $field_override [optional]
* @return int
* @link http://docs.php.net/manual/en/solrquery.getfacetlimit.php
*/
public function getFacetLimit($field_override) {}
/**
* @param string $field_override [optional]
* @return string
* @link http://docs.php.net/manual/en/solrquery.getfacetmethod.php
*/
public function getFacetMethod($field_override) {}
/**
* @param string $field_override [optional]
* @return int
* @link http://docs.php.net/manual/en/solrquery.getfacetmincount.php
*/
public function getFacetMinCount($field_override) {}
/**
* @param string $field_override [optional]
*
* @return bool
* @link http://docs.php.net/manual/en/solrquery.getfacetmissing.php
*/
public function getFacetMissing($field_override) {}
/**
* @param string $field_override [optional]
*
* @return int
* @link http://docs.php.net/manual/en/solrquery.getfacetoffset.php
*/
public function getFacetOffset($field_override) {}
/**
* @param string $field_override [optional]
*
* @return string
* @link http://docs.php.net/manual/en/solrquery.getfacetprefix.php
*/
public function getFacetPrefix($field_override) {}
/**
* @return array
* @link http://docs.php.net/manual/en/solrquery.getfacetqueries.php
*/
public function getFacetQueries() {}
/**
* @param string $field_override [optional]
*
* @return int
* @link http://docs.php.net/manual/en/solrquery.getfacetsort.php
*/
public function getFacetSort($field_override) {}
/**
* @return array
* @link http://docs.php.net/manual/en/solrquery.getfields.php
*/
public function getFields() {}
/**
* @return array
* @link http://docs.php.net/manual/en/solrquery.getfilterqueries.php
*/
public function getFilterQueries() {}
/**
* @return bool
* @link http://docs.php.net/manual/en/solrquery.gethighlight.php
*/
public function getHighlight() {}
/**
* @param string $field_override [optional]
*
* @return string
* @link http://docs.php.net/manual/en/solrquery.gethighlightalternatefield.php
*/
public function getHighlightAlternateField($field_override = null) {}
/**
* @return array
* @link http://docs.php.net/manual/en/solrquery.gethighlightfields.php
*/
public function getHighlightFields() {}
/**
* @param string $field_override [optional]
*
* @return string
* @link http://docs.php.net/manual/en/solrquery.gethighlightformatter.php
*/
public function getHighlightFormatter($field_override = null) {}
/**
* @param string $field_override [optional]
* @return string
* @link http://docs.php.net/manual/en/solrquery.gethighlightfragmenter.php
*/
public function getHighlightFragmenter($field_override = null) {}
/**
* @param string $field_override [optional]
* @return int
* @link http://docs.php.net/manual/en/solrquery.gethighlightfragsize.php
*/
public function getHighlightFragsize($field_override = null) {}
/**
* @return bool
* @link http://docs.php.net/manual/en/solrquery.gethighlighthighlightmultiterm.php
*/
public function getHighlightHighlightMultiTerm() {}
/**
* @param string $field_override [optional]
* @return int
* @link http://docs.php.net/manual/en/solrquery.gethighlightmaxalternatefieldlength.php
*/
public function getHighlightMaxAlternateFieldLength($field_override = null) {}
/**
* @return int
* @link http://docs.php.net/manual/en/solrquery.gethighlightmaxanalyzedchars.php
*/
public function getHighlightMaxAnalyzedChars() {}
/**
* @param string $field_override [optional]
* @return bool
* @link http://docs.php.net/manual/en/solrquery.gethighlightmergecontiguous.php
*/
public function getHighlightMergeContiguous($field_override = null) {}
/**
* @return int
* @link http://docs.php.net/manual/en/solrquery.gethighlightregexmaxanalyzedchars.php
*/
public function getHighlightRegexMaxAnalyzedChars() {}
/**
* @return string
* @link http://docs.php.net/manual/en/solrquery.gethighlightregexpattern.php
*/
public function getHighlightRegexPattern() {}
/**
* @return float
* @link http://docs.php.net/manual/en/solrquery.gethighlightregexslop.php
*/
public function getHighlightRegexSlop() {}
/**
* @return bool
* @link http://docs.php.net/manual/en/solrquery.gethighlightrequirefieldmatch.php
*/
public function getHighlightRequireFieldMatch() {}
/**
* @param string $field_override [optional]
* @return string
* @link http://docs.php.net/manual/en/solrquery.gethighlightsimplepost.php
*/
public function getHighlightSimplePost($field_override = null) {}
/**
* @param string $field_override [optional]
* @return string
* @link http://docs.php.net/manual/en/solrquery.gethighlightsimplepre.php
*/
public function getHighlightSimplePre($field_override = null) {}
/**
* @param string $field_override [optional]
* @return int
* @link http://docs.php.net/manual/en/solrquery.gethighlightsnippets.php
*/
public function getHighlightSnippets($field_override = null) {}
/**
* @return bool
* @link http://docs.php.net/manual/en/solrquery.gethighlightusephrasehighlighter.php
*/
public function getHighlightUsePhraseHighlighter() {}
/**
* @return bool
* @link http://docs.php.net/manual/en/solrquery.getmlt.php
*/
public function getMlt() {}
/**
* @return bool
* @link http://docs.php.net/manual/en/solrquery.getmltboost.php
*/
public function getMltBoost() {}
/**
* @return int
* @link http://docs.php.net/manual/en/solrquery.getmltcount.php
*/
public function getMltCount() {}
/**
* @return array
* @link http://docs.php.net/manual/en/solrquery.getmltfields.php
*/
public function getMltFields() {}
/**
* @return int
* @link http://docs.php.net/manual/en/solrquery.getmltmaxnumqueryterms.php
*/
public function getMltMaxNumQueryTerms() {}
/**
* @return int
* @link http://docs.php.net/manual/en/solrquery.getmltmaxnumtokens.php
*/
public function getMltMaxNumTokens() {}
/**
* @return int
* @link http://docs.php.net/manual/en/solrquery.getmltmaxwordlength.php
*/
public function getMltMaxWordLength() {}
/**
* @return int
* @link http://docs.php.net/manual/en/solrquery.getmltmindocfrequency.php
*/
public function getMltMinDocFrequency() {}
/**
* @return int
* @link http://docs.php.net/manual/en/solrquery.getmltmintermfrequency.php
*/
public function getMltMinTermFrequency() {}
/**
* @return int
* @link http://docs.php.net/manual/en/solrquery.getmltminwordlength.php
*/
public function getMltMinWordLength() {}
/**
* @return array
* @link http://docs.php.net/manual/en/solrquery.getmltqueryfields.php
*/
public function getMltQueryFields() {}
/**
* @return string
* @link http://docs.php.net/manual/en/solrquery.getquery.php
*/
public function getQuery() {}
/**
* @return int
* @link http://docs.php.net/manual/en/solrquery.getrows.php
*/
public function getRows() {}
/**
* @return array
* @link http://docs.php.net/manual/en/solrquery.getsortfields.php
*/
public function getSortFields() {}
/**
* @return int
* @link http://docs.php.net/manual/en/solrquery.getstart.php
*/
public function getStart() {}
/**
* @return bool
* @link http://docs.php.net/manual/en/solrquery.getstats.php
*/
public function getStats() {}
/**
* @return array
* @link http://docs.php.net/manual/en/solrquery.getstatsfacets.php
*/
public function getStatsFacets() {}
/**
* @return array
* @link http://docs.php.net/manual/en/solrquery.getstatsfields.php
*/
public function getStatsFields() {}
/**
* @return bool
* @link http://docs.php.net/manual/en/solrquery.getterms.php
*/
public function getTerms() {}
/**
* @return string
* @link http://docs.php.net/manual/en/solrquery.gettermsfield.php
*/
public function getTermsField() {}
/**
* @return bool
* @link http://docs.php.net/manual/en/solrquery.gettermsincludelowerbound.php
*/
public function getTermsIncludeLowerBound() {}
/**
* @return bool
* @link http://docs.php.net/manual/en/solrquery.gettermsincludeupperbound.php
*/
public function getTermsIncludeUpperBound() {}
/**
* @return int
* @link http://docs.php.net/manual/en/solrquery.gettermslimit.php
*/
public function getTermsLimit() {}
/**
* @return string
* @link http://docs.php.net/manual/en/solrquery.gettermslowerbound.php
*/
public function getTermsLowerBound() {}
/**
* @return int
* @link http://docs.php.net/manual/en/solrquery.gettermsmaxcount.php
*/
public function getTermsMaxCount() {}
/**
* @return int
* @link http://docs.php.net/manual/en/solrquery.gettermsmincount.php
*/
public function getTermsMinCount() {}
/**
* @return string
* @link http://docs.php.net/manual/en/solrquery.gettermsprefix.php
*/
public function getTermsPrefix() {}
/**
* @return bool
* @link http://docs.php.net/manual/en/solrquery.gettermsreturnraw.php
*/
public function getTermsReturnRaw() {}
/**
* @return int
* @link http://docs.php.net/manual/en/solrquery.gettermssort.php
*/
public function getTermsSort() {}
/**
* @return string
* @link http://docs.php.net/manual/en/solrquery.gettermsupperbound.php
*/
public function getTermsUpperBound() {}
/**
* @return int
* @link http://docs.php.net/manual/en/solrquery.gettimeallowed.php
*/
public function getTimeAllowed() {}
/**
* @param string $field
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.removefacetdatefield.php
*/
public function removeFacetDateField($field) {}
/**
* @param string $value
* @param string $field_override [optional]
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.removefacetdateother.php
*/
public function removeFacetDateOther($value, $field_override) {}
/**
* @param string $field
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.removefacetfield.php
*/
public function removeFacetField($field) {}
/**
* @param string $value
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.removefacetquery.php
*/
public function removeFacetQuery($value) {}
/**
* @param string $field
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.removefield.php
*/
public function removeField($field) {}
/**
* @param string $fq
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.removefilterquery.php
*/
public function removeFilterQuery($fq) {}
/**
* @param string $field
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.removehighlightfield.php
*/
public function removeHighlightField($field) {}
/**
* @param string $field
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.removemltfield.php
*/
public function removeMltField($field) {}
/**
* @param string $queryField
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.removemltqueryfield.php
*/
public function removeMltQueryField($queryField) {}
/**
* @param string $field
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.removesortfield.php
*/
public function removeSortField($field) {}
/**
* @param string $value
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.removestatsfacet.php
*/
public function removeStatsFacet($value) {}
/**
* @param string $field
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.removestatsfield.php
*/
public function removeStatsField($field) {}
/**
* @param bool $flag
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.setechohandler.php
*/
public function setEchoHandler($flag) {}
/**
* @param string $type
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.setechoparams.php
*/
public function setEchoParams($type) {}
/**
* @param string $query
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.setexplainother.php
*/
public function setExplainOther($query) {}
/**
* @param bool $flag
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.setfacet.php
*/
public function setFacet($flag) {}
/**
* @param string $value
* @param string $field_override [optional]
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.setfacetdateend.php
*/
public function setFacetDateEnd($value, $field_override) {}
/**
* @param string $value
* @param string $field_override [optional]
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.setfacetdategap.php
*/
public function setFacetDateGap($value, $field_override) {}
/**
* @param bool $value
* @param string $field_override [optional]
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.setfacetdatehardend.php
*/
public function setFacetDateHardEnd($value, $field_override) {}
/**
* @param string $value
* @param string $field_override [optional]
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.setfacetdatestart.php
*/
public function setFacetDateStart($value, $field_override) {}
/**
* @param int $frequency
* @param string $field_override [optional]
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.setfacetenumcachemindefaultfrequency.php
*/
public function setFacetEnumCacheMinDefaultFrequency($frequency, $field_override = null) {}
/**
* @param int $limit
* @param string $field_override [optional]
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.setfacetlimit.php
*/
public function setFacetLimit($limit, $field_override = null) {}
/**
* @param string $method
* @param string $field_override [optional]
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.setfacetmethod.php
*/
public function setFacetMethod($method, $field_override = null) {}
/**
* @param int $mincount
* @param string $field_override [optional]
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.setfacetmincount.php
*/
public function setFacetMinCount($mincount, $field_override = null) {}
/**
* @param bool $flag
* @param string $field_override [optional]
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.setfacetmissing.php
*/
public function setFacetMissing($flag, $field_override = null) {}
/**
* @param int $offset
* @param string $field_override [optional]
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.setfacetoffset.php
*/
public function setFacetOffset($offset, $field_override = null) {}
/**
* @param string $prefix
* @param string $field_override [optional]
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.setfacetprefix.php
*/
public function setFacetPrefix($prefix, $field_override = null) {}
/**
* @param int $facetSort
* @param string $field_override [optional]
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.setfacetsort.php
*/
public function setFacetSort($facetSort, $field_override = null) {}
/**
* Enables or disables highlighting
*
* @param bool $flag
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.sethighlight.php
*/
public function setHighlight($flag) {}
/**
* Specifies the highlithing backup field to use
*
* @param string $field
* @param string $field_override [optional]
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.sethighlightalternatefield.php
*/
public function setHighlightAlternateField($field, $field_override = null) {}
/**
* Specify a formatter for the highlight output
*
* @param string $formatter
* @param string $field_override [optional]
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.sethighlightformatter.php
*/
public function setHighlightFormatter($formatter, $field_override) {}
/**
* Sets a text snippet generator for highlighted text
*
* @param string $fragmenter
* @param string $field_override
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.sethighlightfragmenter.php
*/
public function setHighlightFragmenter($fragmenter, $field_override = null) {}
/**
* The size of fragments to consider for highlighting
*
* @param int $size Size (in characters) of fragments to consider for highlighting
* @param string $field_override Name of the field
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.sethighlightfragsize.php
*/
public function setHighlightFragsize($size, $field_override = null) {}
/**
* @param bool $flag
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.sethighlighthighlightmultiterm.php
*/
public function setHighlightHighlightMultiTerm($flag) {}
/**
* Sets the maximum number of characters of the field to return
*
* @param int $fieldLength Length of the field
* @param string $field_override Name of the field
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.sethighlightmaxalternatefieldlength.php
*/
public function setHighlightMaxAlternateFieldLength($fieldLength, $field_override = null) {}
/**
* Specifies the number of characters into a document to look for suitable snippets
*
* @param int $value The number of characters into a document to look for suitable snippets
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.sethighlightmaxanalyzedchars.php
*/
public function setHighlightMaxAnalyzedChars($value) {}
/**
* Sets whether or not to collapse contiguous fragments into a single fragment
*
* @param bool $flag Whether or not to collapse contiguous fragments into a single fragment
* @param null $field_override
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.sethighlightmergecontiguous.php
*/
public function setHighlightMergeContiguous($flag, $field_override = null) {}
/**
* Specify the maximum number of characters to analyze
*
* @param int $maxAnalyzedChars
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.sethighlightregexmaxanalyzedchars.php
*/
public function setHighlightRegexMaxAnalyzedChars($maxAnalyzedChars) {}
/**
* Specify the regular expression for fragmenting
*
* @param string $value The regular expression for fragmenting. This could be used to extract sentences
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.sethighlightregexpattern.php
*/
public function setHighlightRegexPattern($value) {}
/**
* Sets the factor by which the regex fragmenter can stray from the ideal fragment size
*
* @param float $factor The factor by which the regex fragmenter can stray from the ideal fragment size
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.sethighlightregexslop.php
*/
public function setHighlightRegexSlop($factor) {}
/**
* Sets whether field matching is required when highlighting
*
* @param bool $flag If TRUE, then a field will only be highlighted if the query
* matched in this particular field. This will only work if
* SolrQuery::setHighlightUsePhraseHighlighter() was set to TRUE
*
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.sethighlightrequirefieldmatch.php
*/
public function setHighlightRequireFieldMatch($flag) {}
/**
* Sets the text which appears after a highlighted term
*
* @param string $simplePost
* @param string $field_override [optional] Name of the field
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.sethighlightsimplepost.php
*/
public function setHighlightSimplePost($simplePost, $field_override = null) {}
/**
* Sets the text which appears before a highlighted term
*
* @param string $simplePre
* @param string $field_override [optional] Name of the field
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.sethighlightsimplepre.php
*/
public function setHighlightSimplePre($simplePre, $field_override = null) {}
/**
* @param int $value Maximum number of highlighted snippets to generate per field
* @param string $field_override [optional] Name of the field
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.sethighlightsnippets.php
*/
public function setHighlightSnippets($value, $field_override = null) {}
/**
* Whether to highlight phrase terms only when they appear within the query phrase
*
* @param bool $flag
* @return SolrQuery
* @link http://docs.php.net/manual/en/solrquery.sethighlightusephrasehighlighter.php
*/
public function setHighlightUsePhraseHighlighter($flag) {}
/**
* Enables or disables moreLikeThis
*
* @param bool $flag TRUE enables it and FALSE turns it off
*
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.setmlt.php
*/
public function setMlt($flag) {}
/**
* Set if the query will be boosted by the interesting term relevance
*
* @param bool $flag
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.setmltboost.php
*/
public function setMltBoost($flag) {}
/**
* Set the number of similar documents to return for each result
*
* @param int $count
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.setmltcount.php
*/
public function setMltCount($count) {}
/**
* Sets the maximum number of query terms included
*
* @param int $value The maximum number of query terms that will be included in any generated query
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.setmltmaxnumqueryterms.php
*/
public function setMltMaxNumQueryTerms($value) {}
/**
* Specifies the maximum number of tokens to parse
*
* @param int $value The maximum number of tokens to parse
*
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.setmltmaxnumtokens.php
*/
public function setMltMaxNumTokens($value) {}
/**
* Sets the maximum word length
*
* @param int $maxWordLength The maximum word length above which words will be ignored
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.setmltmaxwordlength.php
*/
public function setMltMaxWordLength($maxWordLength) {}
/**
* The frequency at which words will be ignored which do not occur in at least this many docs
*
* @param int $minDocFrequency
*
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.setmltmindocfrequency.php
*/
public function setMltMinDocFrequency($minDocFrequency) {}
/**
* Sets the frequency below which terms will be ignored in the source docs
*
* @param int $minTermFrequency
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.setmltmintermfrequency.php
*/
public function setMltMinTermFrequency($minTermFrequency) {}
/**
* Sets the minimum word length below which words will be ignored
*
* @param int $minWordLength
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.setmltminwordlength.php
*/
public function setMltMinWordLength($minWordLength) {}
/**
* Exclude the header from the returned results
*
* @param bool $flag TRUE excludes the header from the result
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.setomitheader.php
*/
public function setOmitHeader($flag) {}
/**
* Sets the search query
*
* @param string $query
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.setquery.php
*/
public function setQuery($query) {}
/**
* Specifies the maximum number of rows to return in the result
*
* @param int $rows
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.setrows.php
*/
public function setRows($rows) {}
/**
* Flag to show debug information
*
* @param bool $flag
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.setshowdebuginfo.php
*/
public function setShowDebugInfo($flag) {}
/**
* Specifies the number of rows to skip
*
* @param int $start
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.setstart.php
*/
public function setStart($start) {}
/**
* Enables or disables the Stats component
*
* @param bool $flag
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.setstats.php
*/
public function setStats($flag) {}
/**
* Enables or disables the TermsComponent
*
* @param bool $flag
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.setterms.php
*/
public function setTerms($flag) {}
/**
* Sets the name of the field to get the Terms from
*
* @param string $fieldname
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.settermsfield.php
*/
public function setTermsField($fieldname) {}
/**
* Sets whether to include the lower bound term in the result set
*
* @param bool $flag
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.settermsincludelowerbound.php
*/
public function setTermsIncludeLowerBound($flag) {}
/**
* Include the upper bound term in the result set
*
* @param bool $flag
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.settermsincludeupperbound.php
*/
public function setTermsIncludeUpperBound($flag) {}
/**
* Sets the maximum number of terms to return
*
* @param int $limit
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.settermslimit.php
*/
public function setTermsLimit($limit) {}
/**
* Specifies the Term to start from
*
* @param string $lowerBound
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.settermslowerbound.php
*/
public function setTermsLowerBound($lowerBound) {}
/**
* Sets the maximum document frequency
*
* @param int $frequency
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.settermsmaxcount.php
*/
public function setTermsMaxCount($frequency) {}
/**
* Sets the minimum document frequency
*
* @param int $frequency
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.settermsmincount.php
*/
public function setTermsMinCount($frequency) {}
/**
* Restrict matches to terms that start with the prefix
*
* @param string $prefix
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.settermsprefix.php
*/
public function setTermsPrefix($prefix) {}
/**
* Return the raw characters of the indexed term
*
* @param bool $flag
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.settermsreturnraw.php
*/
public function setTermsReturnRaw($flag) {}
/**
* Specifies how to sort the returned terms
*
* @param int $sortType If SolrQuery::TERMS_SORT_COUNT, sorts the terms by the term frequency (highest count first). If SolrQuery::TERMS_SORT_INDEX, returns the terms in index order
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.settermssort.php
*/
public function setTermsSort($sortType) {}
/**
* Sets the term to stop at
*
* @param string $upperBound
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.settermsupperbound.php
*/
public function setTermsUpperBound($upperBound) {}
/**
* The time allowed for search to finish
*
* @param int $timeAllowed Time in milliseconds
* @return SolrQuery Returns the current SolrQuery object
* @link http://docs.php.net/manual/en/solrquery.settimeallowed.php
*/
public function setTimeAllowed($timeAllowed) {}
/**
* Collapses the result set to a single document per group before it forwards
* the result set to the rest of the search components.
* So all downstream components (faceting, highlighting, etc...) will work with
* the collapsed result set.
*
* A collapse function object is passed to collapse the query
*
* @param SolrCollapseFunction $function
* @throws SolrMissingMandatoryParameterException
* @return SolrQuery
*/
public function collapse(SolrCollapseFunction $function) {}
/**
* Enable/Disable result grouping (group parameter)
*
* @param bool $value
* @return SolrQuery
*/
public function setGroup($value) {}
/**
* Returns true if grouping is enabled
* @return bool
*/
public function getGroup() {}
/**
* The name of the field by which to group results. The field must be single-valued, and either be indexed
* or a field type that has a value source and works in a function query,
* such as ExternalFileField. It must also be a string-based field, such as StrField or TextField
*
* @param string $value
* @return SolrQuery
*/
public function addGroupField($value) {}
/**
* Returns group fields (group.field parameter values)
*
* @return array
*/
public function getGroupFields() {}
/**
* Adds a group function (group.func parameter)
* Allows grouping results based on the unique values of a function query.
*
* @param string $value
* @return SolrQuery
*/
public function addGroupFunction($value) {}
/**
* Returns group functions (group.func parameter values)
*
* @return array
*/
public function getGroupFunctions () {}
/**
* Adds query to the group.query parameter
* Allows grouping of documents that match the given query.
*
* @param string $value
* @return SolrQuery
*/
public function addGroupQuery($value) {}
/**
* Returns all the group.query parameter values
*
* @return array
*/
public function getGroupQueries() {}
/**
* Specifies the number of results to return for each group. The server default value is 1.
*
* @param integer $value
* @return SolrQuery
*/
public function setGroupLimit($value) {}
/**
* Returns the group.limit value
* @return integer
*/
public function getGroupLimit() {}
/**
* Sets the group.offset parameter.
* @param integer $offset
* @return SolrQuery
*/
public function setGroupOffset($offset) {}
/**
* Returns the group.offset value
*
* @return integer
*/
public function getGroupOffset() {}
/**
* Adds a group sort field (group.sort parameter).
*
* @param string $sort
* @param integer $direction
* @return SolrQuery
*/
public function addGroupSortField($sort, $direction) {}
/**
* Returns the group.sort value
*
* @return array
*/
public function getGroupSortFields() {}
/**
* Sets the group.format parameter.
* If this parameter is set to simple, the grouped documents are presented in a single flat list, and the start and
* rows parameters affect the numbers of documents instead of groups.
*
* @param string $value
* @return SolrQuery
*/
public function setGroupFormat($value) {}
/**
* Returns the group.format value
*
* @return string
*/
public function getGroupFormat() {}
/**
* If true, the result of the first field grouping command is used as the main result list in the response, using group.format=simple.
*
* @param bool $value
* @return SolrQuery
*/
public function setGroupMain($value) {}
/**
* Returns the group.main value
*
* @return bool
*/
public function getGroupMain() {}
/**
* If true, Solr includes the number of groups that have matched the query in the results.
* The default value is false. (group.ngroups parameter)
*
* @param bool $value
* @return SolrQuery
*/
public function setGroupNGroups($value) {}
/**
* Returns the group.ngroups value
* @return bool
*/
public function getGroupNGroups() {}
/**
* If true, facet counts are based on the most relevant document of each group matching the query.
* The server default value is false.
* group.truncate parameter
*
* @param bool $value
* @return SolrQuery
*/
public function setGroupTruncate($value) {}
/**
* Returns the group.truncate value
*
* @return bool
*/
public function getGroupTruncate() {}
/**
* Determines whether to compute grouped facets for the field facets specified in facet.field parameters.
* Grouped facets are computed based on the first specified group.
* group.facet parameter
*
* @param bool $value
* @return SolrQuery
*/
public function setGroupFacet($value) {}
/**
* Returns the group.facet parameter value
*
* @return bool
*/
public function getGroupFacet() {}
/**
* Setting this parameter to a number greater than 0 enables caching for result grouping.
* Result Grouping executes two searches; this option caches the second search. The default value is 0.
*
* Testing has shown that group caching only improves search time with Boolean, wildcard, and fuzzy queries. For simple queries like term or "match all" queries, group caching degrades performance.
* group.cache.percent parameter
*
* @param integer
* @throws SolrIllegalArgumentException
* @return SolrQuery
*/
public function setGroupCachePercent($value) {}
/**
* Returns the group cache percent group.cache.percent value
*
* @return integer
*/
public function getGroupCachePercent() {}
/**
* Sets the expand parameter. This enables or disables group expanding.
*
* @param bool $value
* @return SolrQuery
*/
public function setExpand($value) {}
/**
* Returns true if group expanding is enabled
* @return bool
*/
public function getExpand() {}
/**
* Orders the documents within the expanded groups (expand.sort parameter).
*
* @param string $sort
* @param integer $direction defaults to DESC
* @return SolrQuery
*/
public function addExpandSortField($sort, $direction = SolrQuery::ORDER_DESC) {}
/**
* Removes an expand sort field from the expand.sort parameter.
*
* @param string $field
* @return SolrQuery
*/
public function removeExpandSortField($field) {}
/**
* Returns an array of fields
*
* @return array
*/
public function getExpandSortFields() {}
/**
* Sets the number of rows to display in each group (expand.rows). Server Default 5
* @param integer $rows
* @return SolrQuery
*/
public function setExpandRows($rows) {}
/**
* Returns The number of rows to display in each group (expand.rows)
*
* @return integer
*/
public function getExpandRows() {}
/**
* Sets the expand.q parameter. Overrides the main q parameter,
* determines which documents to include in the main group.
*
* @param string $q
* @return SolrQuery
*/
public function setExpandQuery($q) {}
/**
* Returns the expand query expand.q parameter
*
* @return string
*/
public function getExpandQuery() {}
/**
* Overrides main fq's, determines which documents to include in the main group.
*
* @param string $fq
* @return SolrQuery
*/
public function addExpandFilterQuery($fq) {}
/**
* Removes an expand filter query.
*
* @param string $fq
* @return SolrQuery
*/
public function removeExpandFilterQuery($fq) {}
/**
* Returns the expand filter queries
*
* @return array
*/
public function getExpandFilterQueries() {}
}
/**
* SolrDisMaxQuery Makes use of the Solr's DisMax query parser
* and eases the use of it using class methods
*
* @author Omar Shaban
*/
class SolrDisMaxQuery extends SolrQuery {
public function __construct($q = null) {}
/**
* Switch Query Parser to dismax
*/
public function useDisMaxQueryParser() {}
/**
* Switch Query Parser to edismax
*/
public function useEDisMaxQueryParser() {}
/**
* Set Query Alternate (q.alt parameter)
* When the main q parameter is not specified or is blank. The q.alt parameter is used
*
* @param string $q
*/
public function setQueryAlt($q) {}
/**
* Add a query field with optional boost (qf parameter)
*
* @see https://cwiki.apache.org/confluence/display/solr/The+DisMax+Query+Parser#TheDisMaxQueryParser-Theqf%28QueryFields%29Parameter
* @param string $field
* @param string $boost
* @return SolrDisMaxQuery
*/
public function addQueryField ($field, $boost=null) {}
/**
* Remove query field (qf parameter)
*
* @param string $field
* @return SolrDisMaxQuery
*/
public function removeQueryField($field) {}
/**
* Add a phrase field (pf parameter)
* output format: field~slop^boost
*
* Sample output: title~2^4
*
* @see https://cwiki.apache.org/confluence/display/solr/The+DisMax+Query+Parser#TheDisMaxQueryParser-Thepf%28PhraseFields%29Parameter
* @param string $field
* @param float $boost
* @param integer $slop
* @return SolrDisMaxQuery
*/
public function addPhraseField($field, $boost, $slop=null) {}
/**
* Removes a phrase field (pf parameter)
* @param string $field
* @return SolrDisMaxQuery
*/
public function removePhraseField($field) {}
/**
* Set Phrase Fields (pf parameter)
* @param string $fields
* @return SolrDisMaxQuery
*/
public function setPhraseFields($fields) {}
/**
* Set Phrase Slop (ps parameter)
* @see https://cwiki.apache.org/confluence/display/solr/The+DisMax+Query+Parser#TheDisMaxQueryParser-Theps%28PhraseSlop%29Parameter
* @param integer $slop
* @return SolrDisMaxQuery
*/
public function setPhraseSlop($slop) {}
/**
* Set Query Phrase Slop (qs parameter)
*
* @see https://cwiki.apache.org/confluence/display/solr/The+DisMax+Query+Parser#TheDisMaxQueryParser-Theqs%28QueryPhraseSlop%29Parameter
* @param integer $slop
* @return SolrDisMaxQuery
*/
public function setQueryPhraseSlop($slop) {}
/**
* Add a boost query field with value and boost
* Sample Output: type:lucene^2
*
* @see https://cwiki.apache.org/confluence/display/solr/The+DisMax+Query+Parser#TheDisMaxQueryParser-Thebq%28BoostQuery%29Parameter
*
* @param string $field
* @param string $value
* @param string $boost
* @return SolrDisMaxQuery
*/
public function addBoostQuery($field, $value, $boost=null) {}
/**
* Remove a boost query field
*
* @param string $field
* @return SolrDisMaxQuery
*/
public function removeBoostQuery($field) {}
/**
* Sets Boost Query Parameter (bq)
*
* @see https://cwiki.apache.org/confluence/display/solr/The+DisMax+Query+Parser#TheDisMaxQueryParser-Thebq%28BoostQuery%29Parameter
*
* @param string $q
* @return SolrDisMaxQuery
*
*/
public function setBoostQuery($q) {}
/**
* Sets the boost function (bf)
*
* @see https://cwiki.apache.org/confluence/display/solr/The+DisMax+Query+Parser#TheDisMaxQueryParser-Thebf%28BoostFunctions%29Parameter
*
* @param string $function
* @return SolrDisMaxQuery
*/
public function setBoostFunction($function) {}
/**
* Set Tie Minimum *Should* Match parameter (mm)
*
* @see https://cwiki.apache.org/confluence/display/solr/The+DisMax+Query+Parser#TheDisMaxQueryParser-Themm%28MinimumShouldMatch%29Parameter
*
* @param mixed $value
* @return SolrDisMaxQuery
*/
public function setMinimumMatch($value) {}
/**
* Set Tie Breaker parameter (tie)
*
* @see https://cwiki.apache.org/confluence/display/solr/The+DisMax+Query+Parser#TheDisMaxQueryParser-Thetie%28TieBreaker%29Parameter
* @param float $tieBreaker
* @return SolrDisMaxQuery
*/
public function setTieBreaker($tieBreaker) {}
/**
* Set Bigram Phrase Slop (ps2 parameter)
*
* @see https://cwiki.apache.org/confluence/display/solr/The+Extended+DisMax+Query+Parser
*
* @param integer $slop
* @return SolrDisMaxQuery
*/
public function setBigramPhraseSlop($slop) {}
/**
* Add a phrase Bigram field (pf2 parameter)
* output format: field~slop^boost
*
* Sample output: title~2^4
*
* @see https://cwiki.apache.org/confluence/display/solr/The+DisMax+Query+Parser#TheDisMaxQueryParser-Thepf%28PhraseFields%29Parameter
*
* @param string $field
* @param float $boost
* @param integer $slop
* @return SolrDisMaxQuery
*/
public function addBigramPhraseField($field, $boost, $slop=null) {}
/**
* Removes phrase bigram field (pf2 parameter)
*
* @param string $field
* @return SolrDisMaxQuery
*/
public function removeBigramPhraseField($field) {}
/**
* Sets pf2 parameter
*
* @param string $fields
* @return SolrDisMaxQuery
*/
public function setBigramPhraseFields($fields) {}
/**
* Add a Trigram Phrase Field (pf3 parameter)
* output format: field~slop^boost
*
* Sample output: title~2^4
*
* @see https://cwiki.apache.org/confluence/display/solr/The+DisMax+Query+Parser#TheDisMaxQueryParser-Thepf%28PhraseFields%29Parameter
* @param string $field
* @param float $boost
* @param integer $slop
* @return SolrDisMaxQuery
*/
public function addTrigramPhraseField($field, $boost, $slop=null) {}
/**
* Removes a Trigram Phrase Field (pf3 parameter)
* @param string $field
* @return SolrDisMaxQuery
*/
public function removeTrigramPhraseField($field) {}
/**
* Sets pf3 parameter
*
* @param string $fields
* @return SolrDisMaxQuery
*/
public function setTrigramPhraseFields($fields) {}
/**
* Set Trigram Phrase Slop (ps3 parameter)
*
* @see https://cwiki.apache.org/confluence/display/solr/The+Extended+DisMax+Query+Parser
*
* @param integer $slop
* @return SolrDisMaxQuery
*/
public function setTrigramPhraseSlop ($slop) {}
/**
* Adds a field to User Fields Parameter (uf)
*
* Specifies which schema fields the end user shall be allowed to query for explicitly.
* This parameter supports wildcards.
*
* @param string $field
* @return SolrDisMaxQuery
*/
public function addUserField($field){}
/**
* Removes a field from User Fields Parameter (uf)
*
* @param string $field
* @return SolrDisMaxQuery
*/
public function removeUserField($field){}
/**
* Sets User Fields parameter (uf)
*
* Specifies which schema fields the end user shall be allowed to query for explicitly.
* This parameter supports wildcards.
*
* @param string $fields
* @return SolrDisMaxQuery
*/
public function setUserFields($fields){}
}
/**
* Collapses the result set to a single document per group before it forwards
* the result set to the rest of the search components.
* So all downstream components (faceting, highlighting, etc...) will work with
* the collapsed result set.
*
* @see https://cwiki.apache.org/confluence/display/solr/Collapse+and+Expand+Results
*
* @author Omar Shaban
*/
class SolrCollapseFunction
{
const NULLPOLICY_IGNORE = 'ignore';
const NULLPOLICY_EXPAND = 'expand';
const NULLPOLICY_COLLAPSE = 'collapse';
/**
* Accepts the field to collapse on.
*
* @param string $field
*/
public function __construct($field = null) {}
/**
* Set the field that is being collapsed on.
* In order to collapse a result. The field type must be a single valued String, Int or Float.
*
* @param string $field
* @return SolrCollapseFunction
*/
public function setField($field) {}
/**
* Get the field that is being collapsed on.
*
* @return string
*/
public function getField() {}
/**
* Selects the group heads by the max value of a numeric field or function query.
*
* @param string $max
* @return SolrCollapseFunction
*/
public function setMax($max) {}
/**
* Get max
*
* @return string
*/
public function getMax() {}
/**
* Sets the initial size of the collapse data structures when collapsing on a numeric field only.
*
* @param string $min
* @return SolrCollapseFunction
*/
public function setMin($min) {}
/**
* Return min parameter
*
* @return string
*/
public function getMin() {}
/**
* Currently there is only one hint available "top_fc", which stands for top level FieldCache.
*
* @param string $hint
* @return SolrCollapseFunction
*/
public function setHint($hint) {}
/**
* Get collapse hint.
*
* @return string
*/
public function getHint() {}
/**
* Sets the NULL Policy.
* Accepts ignore, expand, or collapse.
*
* @param string $policy
* @return SolrCollapseFunction
*/
public function setNullPolicy($policy) {}
/**
* Returns null policy
*
* @return string
*/
public function getNullPolicy() {}
/**
* Sets the initial size of the collapse data structures when collapsing on a numeric field only.
*
* @param integer $size
* @return SolrCollapseFunction
*/
public function setSize($size) {}
/**
* Gets the initial size of the collapse data structures when collapsing on a numeric field only.
*
* @return integer
*/
public function getSize() {}
/**
* A string representation (Solr LocalParams) of the function.
* @return string
*/
public function __toString() {}
}
/* phpdoc -f documentation.php --title Solr --parseprivate on --defaultpackagename Solr --output "HTML:frames:phphtmllib" -t solr_phpdoc */
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* End:
* vim600: fdm=marker
* vim: noet sw=4 ts=4
*/
php-solr-2.5.1+2.4.0/solr-2.4.0/examples/ 0000775 0000000 0000000 00000000000 13740415371 0017161 5 ustar 00root root 0000000 0000000 php-solr-2.5.1+2.4.0/solr-2.4.0/examples/bootstrap.php 0000664 0000000 0000000 00000000042 13740415371 0021703 0 ustar 00root root 0000000 0000000 SOLR_SERVER_HOSTNAME,
'login' => SOLR_SERVER_USERNAME,
'password' => SOLR_SERVER_PASSWORD,
'port' => SOLR_SERVER_PORT,
'path' => SOLR_SERVER_PATH,
);
$client = new SolrClient($options);
$query = new SolrQuery('*:*');
$query->setFacet(true);
$query->addFacetField('cat')->addFacetField('name')->setFacetMinCount(2);
$updateResponse = $client->query($query);
$response_array = $updateResponse->getResponse();
$facet_data = $response_array->facet_counts->facet_fields;
print_r($facet_data);
php-solr-2.5.1+2.4.0/solr-2.4.0/examples/facet_002.php 0000664 0000000 0000000 00000001167 13740415371 0021342 0 ustar 00root root 0000000 0000000 SOLR_SERVER_HOSTNAME,
'login' => SOLR_SERVER_USERNAME,
'password' => SOLR_SERVER_PASSWORD,
'port' => SOLR_SERVER_PORT,
'path' => SOLR_SERVER_PATH,
);
$client = new SolrClient($options);
$query = new SolrQuery('*:*');
$query->setFacet(true);
$query->addFacetField('cat')->addFacetField('name')->setFacetMinCount(2);
$query->setFacetMinCount(4, 'name');
$updateResponse = $client->query($query);
$response_array = $updateResponse->getResponse();
$facet_data = $response_array->facet_counts->facet_fields;
print_r($facet_data);
php-solr-2.5.1+2.4.0/solr-2.4.0/examples/solrclient_001_adddocument_01.php 0000664 0000000 0000000 00000001141 13740415371 0025274 0 ustar 00root root 0000000 0000000 SOLR_SERVER_HOSTNAME,
'login' => SOLR_SERVER_USERNAME,
'password' => SOLR_SERVER_PASSWORD,
'port' => SOLR_SERVER_PORT,
'path' => SOLR_SERVER_PATH,
);
$client = new SolrClient($options);
$doc = new SolrInputDocument();
$doc->addField('id', 334455);
$doc->addField('cat', 'Software');
$doc->addField('cat', 'Lucene');
$updateResponse = $client->addDocument($doc);
print_r($updateResponse->getResponse());
/* you will have to commit changes to be written if you didn't use $commitWithin */
$client->commit();
php-solr-2.5.1+2.4.0/solr-2.4.0/examples/solrclient_002_adddocument_02.php 0000664 0000000 0000000 00000001166 13740415371 0025305 0 ustar 00root root 0000000 0000000 SOLR_SERVER_HOSTNAME,
'login' => SOLR_SERVER_USERNAME,
'password' => SOLR_SERVER_PASSWORD,
'port' => SOLR_SERVER_PORT,
'path' => SOLR_SERVER_PATH,
);
$client = new SolrClient($options);
$doc = new SolrInputDocument();
$doc->addField('id', 334455);
$doc->addField('cat', 'Software');
$doc->addField('cat', 'Lucene');
// No need to call commit() because $commitWithin is passed, so Solr Server will auto commit within 10 seconds
$updateResponse = $client->addDocument($doc, false, 10000);
print_r($updateResponse->getResponse());
php-solr-2.5.1+2.4.0/solr-2.4.0/examples/solrclient_002_adddocument_03_child_docs.php 0000664 0000000 0000000 00000003122 13740415371 0027453 0 ustar 00root root 0000000 0000000 SOLR_SERVER_HOSTNAME,
'login' => SOLR_SERVER_USERNAME,
'password' => SOLR_SERVER_PASSWORD,
'port' => SOLR_SERVER_PORT,
'path' => SOLR_SERVER_STORE_PATH,
);
$client = new SolrClient($options);
$product = new SolrInputDocument();
$product->addField('id', 'black');
$product->addField('cat', 'tshirt');
$product->addField('cat', 'polo');
$product->addField('content_type', 'product');
$small = new SolrInputDocument();
$small->addField('id', 'TS-BLK-S');
$small->addField('content_type', 'sku');
$small->addField('size', 'S');
$small->addField('inventory', 100);
$medium = new SolrInputDocument();
$medium->addField('id', 'TS-BLK-M');
$medium->addField('content_type', 'sku');
$medium->addField('size', 'M');
$medium->addField('inventory', 200);
$large = new SolrInputDocument();
$large->addField('id', 'TS-BLK-L');
$large->addField('content_type', 'sku');
$large->addField('size', 'L');
$large->addField('inventory', 300);
// add child documents
$product->addChildDocument($small);
$product->addChildDocument($medium);
$product->addChildDocument($large);
// or
// $skus = [$small, $medium, $large];
// $product->addChildDocuments($skus);
// add product document to the index
$updateResponse = $client->addDocument(
$product,
true, // overwrite if the document exists
10000 // commit within 10 seconds
);
print_r($updateResponse->getResponse());
/* OUTPUT SIMILAR TO:
SolrObject Object
(
[responseHeader] => SolrObject Object
(
[status] => 0
[QTime] => 5
)
)
*/
php-solr-2.5.1+2.4.0/solr-2.4.0/examples/solrclient_003_adddocuments_01.php 0000664 0000000 0000000 00000001317 13740415371 0025466 0 ustar 00root root 0000000 0000000 SOLR_SERVER_HOSTNAME,
'login' => SOLR_SERVER_USERNAME,
'password' => SOLR_SERVER_PASSWORD,
'port' => SOLR_SERVER_PORT,
'path' => SOLR_SERVER_PATH,
);
$client = new SolrClient($options);
$doc = new SolrInputDocument();
$doc->addField('id', 334455);
$doc->addField('cat', 'Software');
$doc->addField('cat', 'Lucene');
$doc2 = clone $doc;
$doc2->deleteField('id');
$doc2->addField('id', 334456);
$docs = array($doc, $doc2);
$updateResponse = $client->addDocuments($docs);
/* you will have to commit changes to be written if you didn't use $commitWithin */
$client->commit();
print_r($updateResponse->getResponse());
php-solr-2.5.1+2.4.0/solr-2.4.0/examples/solrclient_004_adddocuments_02.php 0000664 0000000 0000000 00000001162 13740415371 0025466 0 ustar 00root root 0000000 0000000 SOLR_SERVER_HOSTNAME,
'login' => SOLR_SERVER_USERNAME,
'password' => SOLR_SERVER_PASSWORD,
'port' => SOLR_SERVER_PORT,
'path' => SOLR_SERVER_PATH,
);
$client = new SolrClient($options);
$doc = new SolrInputDocument();
$doc->addField('id', 334455);
$doc->addField('cat', 'Software');
$doc->addField('cat', 'Lucene');
$doc2 = clone $doc;
$doc2->deleteField('id');
$doc2->addField('id', 334456);
$docs = array($doc, $doc2);
$updateResponse = $client->addDocuments($docs, true, 1024);
print $updateResponse->getRawRequest();
php-solr-2.5.1+2.4.0/solr-2.4.0/examples/solrclient_005_optimize.php 0000664 0000000 0000000 00000000631 13740415371 0024354 0 ustar 00root root 0000000 0000000 SOLR_SERVER_HOSTNAME,
'login' => SOLR_SERVER_USERNAME,
'password' => SOLR_SERVER_PASSWORD,
'port' => SOLR_SERVER_PORT,
'path' => SOLR_SERVER_PATH,
);
$client = new SolrClient($options);
$update_response = $client->optimize(4, false, false);
$response = $update_response->getRawRequest();
print_r($response);
php-solr-2.5.1+2.4.0/solr-2.4.0/examples/solrclient_006_commit.php 0000664 0000000 0000000 00000000632 13740415371 0024006 0 ustar 00root root 0000000 0000000 SOLR_SERVER_HOSTNAME,
'login' => SOLR_SERVER_USERNAME,
'password' => SOLR_SERVER_PASSWORD,
'port' => SOLR_SERVER_PORT,
'path' => SOLR_SERVER_PATH,
);
$client = new SolrClient($options);
$update_response = $client->commit(true, false, false);
$response = $update_response->getRawRequest();
print_r($response);
php-solr-2.5.1+2.4.0/solr-2.4.0/examples/solrclient_007_query.php 0000664 0000000 0000000 00000001104 13740415371 0023657 0 ustar 00root root 0000000 0000000 SOLR_SERVER_HOSTNAME,
'login' => SOLR_SERVER_USERNAME,
'password' => SOLR_SERVER_PASSWORD,
'port' => SOLR_SERVER_PORT,
'path' => SOLR_SERVER_PATH,
);
$client = new SolrClient($options);
$query = new SolrQuery();
$query->setQuery('lucene');
$query->setStart(0);
$query->setRows(50);
$query->addField('cat')->addField('features')->addField('id')->addField('timestamp');
$query_response = $client->query($query);
$response = $query_response->getResponse();
print_r($response);
php-solr-2.5.1+2.4.0/solr-2.4.0/examples/solrclient_008_query_lucene.php 0000664 0000000 0000000 00000001146 13740415371 0025221 0 ustar 00root root 0000000 0000000 SOLR_SERVER_HOSTNAME,
'login' => SOLR_SERVER_USERNAME,
'password' => SOLR_SERVER_PASSWORD,
'port' => SOLR_SERVER_PORT,
'path' => SOLR_SERVER_PATH,
);
$client = new SolrClient($options);
$query = new SolrQuery();
$query->setQuery('manu:"Apple Computer Inc." OR text:apple');
$query->setStart(0);
$query->setRows(50);
$query->addField('cat')->addField('features')->addField('id')->addField('timestamp');
$query_response = $client->query($query);
$response = $query_response->getResponse();
print_r($response);
php-solr-2.5.1+2.4.0/solr-2.4.0/examples/solrclient_009_query_parsemode.php 0000664 0000000 0000000 00000001207 13740415371 0025724 0 ustar 00root root 0000000 0000000 SOLR_SERVER_HOSTNAME,
'login' => SOLR_SERVER_USERNAME,
'password' => SOLR_SERVER_PASSWORD,
'port' => SOLR_SERVER_PORT,
'path' => SOLR_SERVER_PATH,
);
$client = new SolrClient($options);
$query = new SolrQuery();
$query->setQuery('lucene');
$query->setStart(0);
$query->setRows(50);
$query->addField('cat')->addField('features')->addField('id')->addField('timestamp');
$query_response = $client->query($query);
$query_response->setParseMode(SolrQueryResponse::PARSE_SOLR_DOC);
$response = $query_response->getResponse();
print_r($response);
php-solr-2.5.1+2.4.0/solr-2.4.0/examples/solrclient_010_getbyid.php 0000664 0000000 0000000 00000000547 13740415371 0024145 0 ustar 00root root 0000000 0000000 SOLR_SERVER_HOSTNAME,
'login' => SOLR_SERVER_USERNAME,
'password' => SOLR_SERVER_PASSWORD,
'port' => SOLR_SERVER_PORT,
'path' => SOLR_SERVER_PATH
);
$client = new SolrClient($options);
$response = $client->getById('GB18030TEST');
print_r($response->getResponse());
php-solr-2.5.1+2.4.0/solr-2.4.0/examples/solrclient_011_getbyids.php 0000664 0000000 0000000 00000000566 13740415371 0024332 0 ustar 00root root 0000000 0000000 SOLR_SERVER_HOSTNAME,
'login' => SOLR_SERVER_USERNAME,
'password' => SOLR_SERVER_PASSWORD,
'port' => SOLR_SERVER_PORT,
'path' => SOLR_SERVER_PATH
);
$client = new SolrClient($options);
$response = $client->getByIds(['GB18030TEST', '6H500F0']);
print_r($response->getResponse());
php-solr-2.5.1+2.4.0/solr-2.4.0/examples/solrclient_012_system.php 0000664 0000000 0000000 00000000604 13740415371 0024036 0 ustar 00root root 0000000 0000000 SOLR_SERVER_HOSTNAME,
'login' => SOLR_SERVER_USERNAME,
'password' => SOLR_SERVER_PASSWORD,
'port' => SOLR_SERVER_PORT,
'path' => SOLR_SERVER_PATH,
);
$client = new SolrClient($options);
$query_response = $client->system();
$response = $query_response->getResponse();
print_r($response);
php-solr-2.5.1+2.4.0/solr-2.4.0/examples/solrdismaxquery_001.php 0000664 0000000 0000000 00000001745 13740415371 0023534 0 ustar 00root root 0000000 0000000 SOLR_SERVER_HOSTNAME,
'login' => SOLR_SERVER_USERNAME,
'password' => SOLR_SERVER_PASSWORD,
'port' => SOLR_SERVER_PORT,
'path' => SOLR_SERVER_PATH,
);
$client = new SolrClient($options);
$disMaxQuery = new SolrDisMaxQuery();
$disMaxQuery->setStart(0)->setQuery('solr')->setTimeAllowed(500)->setRows(17);
$disMaxQuery->addSortField('price', 0);
$disMaxQuery
->setQueryAlt('*:*')->addQueryField('text', 1.5)
->addQueryField('title', 5)
->addBoostQuery('cat', 'electronics', 2)
->setQueryPhraseSlop(1)
->setBigramPhraseSlop(3)
->addBigramPhraseField('text', 2.5)
->addBigramPhraseField('type', 3, 4)
->setTrigramPhraseFields('content^0.5 anchor~4^1.5 title^1.2 site^1.5')
;
$queryResponse = $client->query($disMaxQuery);
$response = $queryResponse->getResponse();
if($response->response->numFound > 0) {
$docs = $response->response->docs;
print_r($docs);
} else {
echo "No Documents Found".PHP_EOL;
}
php-solr-2.5.1+2.4.0/solr-2.4.0/examples/solrdocument_001.php 0000664 0000000 0000000 00000000452 13740415371 0022771 0 ustar 00root root 0000000 0000000 addField('id', 1123);
$doc->features = "PHP Client Side";
$doc->features = "Fast development cycles";
$doc['cat'] = 'Software';
$doc['cat'] = 'Custom Search';
$doc->cat = 'Information Technology';
print_r($doc->toArray());
?> php-solr-2.5.1+2.4.0/solr-2.4.0/examples/solrdocument_002.php 0000664 0000000 0000000 00000000567 13740415371 0023001 0 ustar 00root root 0000000 0000000 addField('id', 1123);
$doc->features = "PHP Client Side";
$doc->features = "Fast development cycles";
$doc['cat'] = 'Software';
$doc['cat'] = 'Custom Search';
$doc->cat = 'Information Technology';
foreach ($doc as $fieldname => $fieldvalues)
{
print "$fieldname\n";
print_r($fieldvalues);
}
?> php-solr-2.5.1+2.4.0/solr-2.4.0/examples/solrdocument_003.php 0000664 0000000 0000000 00000000532 13740415371 0022772 0 ustar 00root root 0000000 0000000 addField('id', 1123);
$doc->features = "PHP Client Side";
$doc->features = "Fast development cycles";
$doc['cat'] = 'Software';
$doc['cat'] = 'Custom Search';
$doc->cat = 'Information Technology';
$input_doc = $doc->getInputDocument();
var_dump(get_class($input_doc));
?> php-solr-2.5.1+2.4.0/solr-2.4.0/examples/solrdocument_004.php 0000664 0000000 0000000 00000000646 13740415371 0023001 0 ustar 00root root 0000000 0000000 addField('id', 1123);
$doc->features = "PHP Client Side";
$doc->features = "Fast development cycles";
$doc['cat'] = 'Software';
$doc['cat'] = 'Custom Search';
$doc->cat = 'Information Technology';
$second_doc->addField('cat', 'Lucene Search');
$second_doc->merge($doc, true);
print_r($second_doc->toArray());
?> php-solr-2.5.1+2.4.0/solr-2.4.0/examples/solrobject_001.php 0000664 0000000 0000000 00000000260 13740415371 0022416 0 ustar 00root root 0000000 0000000