Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
solarium
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
solarium
Commits
c16f0b31
Commit
c16f0b31
authored
Feb 23, 2011
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- changed defaults to reflect a default 'example' Solr install
- updated phpdoc
parent
0e42de11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
2 deletions
+26
-2
library/Solarium/Client.php
library/Solarium/Client.php
+26
-2
No files found.
library/Solarium/Client.php
View file @
c16f0b31
...
...
@@ -27,10 +27,28 @@
* The views and conclusions contained in the software and documentation are
* those of the authors and should not be interpreted as representing official
* policies, either expressed or implied, of the copyright holder.
*
* @copyright Copyright 2011 Bas de Nooijer <solarium@raspberry.nl>
* @licence http://github.com/basdenooijer/solarium/raw/master/COPYING
*
* @package Solarium
* @subpackage Client
*/
/**
* The Solarium Client is the main accesspoint for interaction with Solr
* Main interface for interaction with Solr
*
* The client holds the Solr connection settings and uses an adapter instance to
* execute queries and return the results. This is the main interface for any
* user of the Solarium library.
*
* Example usage with default settings:
* <code>
* $client = new Solarium_Client;
* $query = new Solarium_Query_Select;
* $result = $client->select($query);
* </code>
*
*/
class
Solarium_Client
extends
Solarium_Configurable
{
...
...
@@ -38,11 +56,14 @@ class Solarium_Client extends Solarium_Configurable
/**
* Default options
*
* The defaults match a standard Solr example instance as distributed by
* the Apache Lucene Solr project.
*
* @var array
*/
protected
$_options
=
array
(
'host'
=>
'127.0.0.1'
,
'port'
=>
8
0
,
'port'
=>
8
983
,
'path'
=>
'/solr'
,
'core'
=>
null
,
'adapter'
=>
'Solarium_Client_Adapter_Stream'
,
...
...
@@ -51,6 +72,9 @@ class Solarium_Client extends Solarium_Configurable
/**
* Adapter instance
*
* The adapter is lazy-loading, it will be instantiated on first use by
* {@see getAdapter} based on the 'adapter' entry in {@see $_options}
*
* @var Solarium_Client_Adapter
*/
protected
$_adapter
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment