You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting-started.md
+26-5Lines changed: 26 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,9 @@ Installation
9
9
10
10
### Requirements
11
11
12
-
For installing Solarium a minimal PHP version 5.3 is required. While previous Solarium versions with any PHP5 version, Solarium 3 uses interfaces so 5.3+ is a hard requirement.
12
+
For installing Solarium a minimal PHP version 7.1 is required.
13
13
14
-
There is no Solr version requirement. Solr versions 1.4 and upwards have been tested with Solarium. Ofcourse, if you want to use version specific features like spatial search you need the right Solr version. For spatial search you will need at least 3.1.
14
+
There is no Solr version requirement. But it's highly recommended that you use at least 6.6.6.
15
15
16
16
### Getting Solarium
17
17
@@ -28,7 +28,7 @@ See [<https://packagist.org>](https://packagist.org) for other packages.
28
28
```json
29
29
{
30
30
"require": {
31
-
"solarium/solarium": "3.6.0"
31
+
"solarium/solarium": "~5.0.0"
32
32
}
33
33
}
34
34
```
@@ -75,6 +75,25 @@ htmlFooter();
75
75
76
76
```
77
77
78
+
### Pitfall when upgrading from earlier versions to 5.x
79
+
80
+
In the past, the V1 API endpoint **_solr_** was not added automatically, so most users set it as path on the endpoint.
81
+
This bug was discovered with the addition of V2 API support. In almost every setup, the path has to be set to `/`
82
+
instead of `/solr` with this release!
83
+
84
+
For the same reason it is a must to explicit configure the _core_ or _collection_.
85
+
86
+
So an old setting like
87
+
```
88
+
'path' => '/solr/xxxx/'
89
+
```
90
+
has to be changed to something like
91
+
```
92
+
'path' => '/',
93
+
'collection' => 'xxxx',
94
+
```
95
+
96
+
78
97
### Available integrations
79
98
80
99
Some users of Solarium have been nice enough to create easy ways of integrating Solarium:
@@ -105,11 +124,13 @@ $config = array(
105
124
'localhost' => array(
106
125
'host' => '127.0.0.1',
107
126
'port' => 8983,
108
-
'path' => '/solr/',
127
+
'path' => '/',
128
+
'core' => 'techproducts',
129
+
// For Solr Cloud you need to provide a collection instead of core:
0 commit comments