Skip to content

Commit a5bb12e

Browse files
Doc fixes (#910)
1 parent b9556f7 commit a5bb12e

102 files changed

Lines changed: 164 additions & 164 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# CHANGELOG
2-
All notable changes to the solarium library will be documented in this file.
2+
All notable changes to the Solarium library will be documented in this file.
33

4-
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5-
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77

88
## [unreleased]
@@ -78,7 +78,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7878
- \Solarium\Support\Utility::getXmlEncoding()
7979

8080
### Fixed
81-
- MoreLikeThis result parsing fails on Solr Cloud
81+
- MoreLikeThis result parsing fails on SolrCloud
8282
- MinimumScoreFilter plugin might fail on Solr 7 in cloud mode
8383

8484

@@ -168,7 +168,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
168168

169169
## [5.1.3]
170170
### Fixed
171-
- Solarium\Component\ResponseParser\Debug fails on Solr Cloud 6.x during extracting timing phases
171+
- Solarium\Component\ResponseParser\Debug fails on SolrCloud 6.x during extracting timing phases
172172

173173

174174
## [5.1.2]
@@ -415,7 +415,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
415415

416416
## [4.0.0-rc.1]
417417
### Added
418-
- Basic support for Solr Cloud streaming expressions
418+
- Basic support for SolrCloud streaming expressions
419419

420420

421421
## [4.0.0-beta.1]
@@ -430,7 +430,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
430430
- More integration tests
431431

432432
### Removed
433-
- Outdated symfony versions on test environment
433+
- Outdated Symfony versions on test environment
434434

435435
### Fixed
436436
- Don't escape the '*' in range queries

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## What is Solarium?
44

5-
Solarium is a PHP Solr client library that accurately model Solr concepts. Where many other Solr libraries only handle
5+
Solarium is a PHP Solr client library that accurately models Solr concepts. Where many other Solr libraries only handle
66
the communication with Solr, Solarium also relieves you of handling all the complex Solr query parameters using a
77
well documented API.
88

@@ -12,8 +12,8 @@ Please see the [docs](http://solarium.readthedocs.io/en/stable/) for a more deta
1212

1313
Solarium 6.x only supports PHP 7.2 and up.
1414

15-
It's highly recommended to have Curl enabled in your PHP environment. However if you don't have Curl available you can
16-
switch from using Curl (the default) to a pure PHP based HTTP client adapter which works for the essential stuff but
15+
It's highly recommended to have cURL enabled in your PHP environment. However if you don't have cURL available you can
16+
switch from using cURL (the default) to a pure PHP based HTTP client adapter which works for the essential stuff but
1717
doesn't support things like parallel query execution.
1818

1919
Alternatively you can inject any PSR-18 compatible HTTP Client using the `Psr18Adapter`.
@@ -34,7 +34,7 @@ Setting "timeout" as "option" in the HTTP Client Adapter is deprecated since Sol
3434
could handle it. The adapters which can handle it now implement the `TimeoutAwareInterface` and you need to set the
3535
timeout using the `setTimeout()` function after creating the adapter instance.
3636

37-
In order to fix some issues with complex queries using local parameters solarium 6 destinguishs between query parameters
37+
In order to fix some issues with complex queries using local parameters Solarium 6 distinguishes between query parameters
3838
and local parameters to be embedded in a query. Solarium 5.2 already informed you about the deprecation of some
3939
parameter names which are in fact local parameters. Solarium doen't convert them magically anymore.
4040
Local parameter names now have to be prefixed with `local_` if set as option of a constructor.

docs/customizing-solarium.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Solarium was designed to be highly customizable, in the following ways:
99
What method of customization to use depends on your case:
1010

1111
- if you want to use only some parts of Solarium, but not modify it, go with method 1
12-
- if you want to customize solarium by altering/adding behaviour use the plugin structure. This has many advantages over extending:
12+
- if you want to customize Solarium by altering/adding behaviour use the plugin structure. This has many advantages over extending:
1313
- Plugins are easily reusable
1414
- You can combine multiple plugins
1515
- By leaving your Solarium library stock you can add plugins developed by others without issues
@@ -56,7 +56,7 @@ $response = $client->executeRequest($request);
5656
// and finally you can convert the response into a result
5757
$result = $client->createResult($query, $response);
5858

59-
// display the total number of documents found by solr
59+
// display the total number of documents found by Solr
6060
echo 'NumFound: '.$result->getNumFound();
6161

6262
// show documents using the resultset iterator

docs/documents.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ $query = $client->createQuery($client::QUERY_SELECT);
4545
// this executes the query and returns the result
4646
$resultset = $client->execute($query);
4747

48-
// display the total number of documents found by solr
48+
// display the total number of documents found by Solr
4949
echo 'NumFound: '.$resultset->getNumFound();
5050

5151
// show documents using the resultset iterator
@@ -167,7 +167,7 @@ $query->createFilterQuery('newprice')->setQuery('price:374');
167167
// this executes the query and returns the result
168168
$resultset = $client->select($query);
169169

170-
// display the total number of documents found by solr
170+
// display the total number of documents found by Solr
171171
echo '<hr/>NumFound: '.$resultset->getNumFound();
172172

173173
// show documents using the resultset iterator

docs/exceptions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,4 @@ This exception indicates that a problem occurred in the communication with the S
128128

129129
#### `StreamException`
130130

131-
This exception indicates that a problem occurred with a streaming expression. You should catch this (or a more generic exception) for every streaming exception request that is executed.
131+
This exception indicates that a problem occurred with a streaming expression. You should catch this (or a more generic exception) for every streaming expression request that is executed.

docs/getting-started.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Installation
1111

1212
For installing Solarium a minimal PHP version 7.2 is required.
1313

14-
There is no Solr version requirement. But it's highly recommended that you use at least 7.7. All older version are EOL.
14+
There is no Solr version requirement. But it's highly recommended that you use at least 7.7. All older versions are EOL.
1515

1616
### Getting Solarium
1717

@@ -51,7 +51,7 @@ To check your installation you can do a Solarium version check with the followin
5151
require_once(__DIR__.'/init.php');
5252
htmlHeader();
5353

54-
// check solarium version available
54+
// check Solarium version available
5555
echo 'Solarium library version: ' . Solarium\Client::VERSION . ' - ';
5656

5757
// create a client instance
@@ -115,7 +115,7 @@ If you know of any other integrations please let it know!
115115
Basic usage
116116
===========
117117

118-
All the code display below can be found in the /examples dir of the project, where you can also easily execute the code. For more info see [Example code](V3:Example_code "wikilink").
118+
All the code displayed below can be found in the /examples dir of the project, where you can also easily execute the code. For more info see [Example code](V3:Example_code "wikilink").
119119

120120
All the examples use the init.php file. This file registers the Solarium autoloader, sets up a client adapter and event dispatcher, and also loads the `$config` array for use in the client constructor.
121121

@@ -140,7 +140,7 @@ $config = array(
140140
'port' => 8983,
141141
'path' => '/',
142142
'core' => 'techproducts',
143-
// For Solr Cloud you need to provide a collection instead of core:
143+
// For SolrCloud you need to provide a collection instead of core:
144144
// 'collection' => 'techproducts',
145145
)
146146
)
@@ -166,7 +166,7 @@ $query = $client->createQuery($client::QUERY_SELECT);
166166
// this executes the query and returns the result
167167
$resultset = $client->execute($query);
168168

169-
// display the total number of documents found by solr
169+
// display the total number of documents found by Solr
170170
echo 'NumFound: '.$resultset->getNumFound();
171171

172172
// show documents using the resultset iterator
@@ -218,7 +218,7 @@ $facetSet->createFacetField('stock')->setField('inStock');
218218
// this executes the query and returns the result
219219
$resultset = $client->select($query);
220220

221-
// display the total number of documents found by solr
221+
// display the total number of documents found by Solr
222222
echo 'NumFound: '.$resultset->getNumFound();
223223

224224
// display facet counts
@@ -273,7 +273,7 @@ htmlFooter();
273273

274274
```
275275

276-
Or by id
276+
Or by id:
277277

278278
```php
279279
<?php
@@ -354,7 +354,7 @@ Example code
354354
============
355355

356356
With Solarium a set of examples is available to demonstrate the usage and to test your Solr environment. But since the
357-
examples are not included in the distribution you need a git checkout of solarium and install the dependencies:
357+
examples are not included in the distribution you need a git checkout of Solarium and install the dependencies:
358358
```
359359
git clone https://github.com/solariumphp/solarium.git
360360
cd solarium

docs/plugins.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,16 +145,16 @@ $customizer->createCustomization('id')
145145
// create a basic query to execute
146146
$query = $client->createSelect();
147147

148-
// execute query (you should be able to see the extra params in the solr log file)
148+
// execute query (you should be able to see the extra params in the Solr log file)
149149
$resultset = $client->select($query);
150150

151-
// display the total number of documents found by solr
151+
// display the total number of documents found by Solr
152152
echo 'NumFound: '.$resultset->getNumFound() . '<br/>';
153153

154154
// execute the same query again (this time the 'id' param should no longer show up in the logs)
155155
$resultset = $client->select($query);
156156

157-
// display the total number of documents found by solr
157+
// display the total number of documents found by Solr
158158
echo 'NumFound: '.$resultset->getNumFound();
159159

160160
htmlFooter();
@@ -212,7 +212,7 @@ for ($i = 1; $i <= 8; $i++) {
212212
echo 'Server: ' . $loadbalancer->getLastEndpoint() .'<hr/>';
213213
}
214214

215-
// force a server for a query (normally solr 3 is extremely unlikely based on its weight)
215+
// force a server for a query (normally 'local3' is extremely unlikely based on its weight)
216216
$loadbalancer->setForcedEndpointForNextQuery('local3');
217217

218218
$resultset = $client->select($query);
@@ -275,7 +275,7 @@ $query->setFilterMode($query::FILTER_MODE_MARK);
275275
// this executes the query and returns the result
276276
$resultset = $client->execute($query);
277277

278-
// display the total number of documents found by solr and the maximum score
278+
// display the total number of documents found by Solr and the maximum score
279279
echo 'NumFound: '.$resultset->getNumFound();
280280
echo '<br/>MaxScore: '.$resultset->getMaxScore();
281281

@@ -377,7 +377,7 @@ htmlFooter();
377377

378378
// Note: for this example on a default Solr index (with a tiny index) running on localhost the performance gain is
379379
// minimal to none, sometimes even slightly slower!
380-
// In a realworld scenario with network latency, a bigger dataset, more complex queries or multiple solr instances the
380+
// In a realworld scenario with network latency, a bigger dataset, more complex queries or multiple Solr instances the
381381
// performance gain is much more.
382382

383383
```
@@ -422,7 +422,7 @@ $query->createFilterQuery('fq')->setQuery($fq);
422422
// without the plugin this query would fail as it is bigger than the default servlet container header buffer
423423
$resultset = $client->select($query);
424424

425-
// display the total number of documents found by solr
425+
// display the total number of documents found by Solr
426426
echo 'NumFound: '.$resultset->getNumFound();
427427

428428
// show documents using the resultset iterator
@@ -481,7 +481,7 @@ $prefetch = $client->getPlugin('prefetchiterator');
481481
$prefetch->setPrefetch(2); //fetch 2 rows per query (for real world use this can be way higher)
482482
$prefetch->setQuery($query);
483483

484-
// display the total number of documents found by solr
484+
// display the total number of documents found by Solr
485485
echo 'NumFound: ' . count($prefetch);
486486

487487
// show document IDs using the resultset iterator

docs/queries/morelikethis-query.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Use the `moreLikeThis` method of the client to execute the query object. See the
4141
Result of a MLT query
4242
---------------------
4343

44-
The result of a mlt query shares the features of the select query result. On top of that the following is added:
44+
The result of a MLT query shares the features of the select query result. On top of that the following is added:
4545

4646
### Interestingterms
4747

@@ -76,7 +76,7 @@ $query->createFilterQuery('stock')->setQuery('inStock:true');
7676
$query->setInterestingTerms('details');
7777
$query->setMatchInclude(true);
7878

79-
// enable mlt component
79+
// enable MLT component
8080
$mlt = $query->getMoreLikeThis();
8181
$mlt->setCount(10);
8282

@@ -94,7 +94,7 @@ foreach ($resultset->getMatch() as $field => $value) {
9494
}
9595
echo '</table><hr/>';
9696

97-
// display the total number of MLT documents found by solr
97+
// display the total number of MLT documents found by Solr
9898
echo 'Number of MLT matches found: '.$resultset->getNumFound().'<br/><br/>';
9999
echo '<b>Listing of matched docs:</b>';
100100

docs/queries/ping-query.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Example
3535
require_once(__DIR__.'/init.php');
3636
htmlHeader();
3737

38-
// check solarium version available
38+
// check Solarium version available
3939
echo 'Solarium library version: ' . Solarium\Client::VERSION . ' - ';
4040

4141
// create a client instance

docs/queries/query-helper/escaping.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ $query->setQuery('features:' . $helper->escapePhrase($input));
2525
// this executes the query and returns the result
2626
$resultset = $client->select($query);
2727

28-
// display the total number of documents found by solr
28+
// display the total number of documents found by Solr
2929
echo 'NumFound: '.$resultset->getNumFound();
3030

3131
// show documents using the resultset iterator

0 commit comments

Comments
 (0)