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
[TASK] Adjust configuration docs for Elasticsearch versions
The documentation contains configuration hints/examples for Elasticsearch up to 1.4.
This changes the documentation to state that versions up to 1.7 are actually working and
provides configuration examples for later versions as well.
*supporting ElasticSearch Version 1.2.x and 1.3.x and 1.4.x*
5
+
*supporting Elasticsearch versions 1.2.x to 1.7.x*
6
6
7
-
Created by Sebastian Kurfürst; contributions by Karsten Dambekalns and Robert Lemke.
7
+
Created by Sebastian Kurfürst; [contributions by Karsten Dambekalns, Robert Lemke and others](https://github.com/Flowpack/Flowpack.ElasticSearch.ContentRepositoryAdaptor/graphs/contributors).
8
8
9
-
This project connects the Neos Content Repository (TYPO3CR) to ElasticSearch; enabling two
9
+
This project connects the Neos Content Repository (TYPO3CR) to Elasticsearch; enabling two
10
10
main functionalities:
11
11
12
12
* finding Nodes in TypoScript / Eel by arbitrary queries
If you are using ElasticSearch version 1.2 you have also to install groovy as a plugin. To install the plugin just run
119
+
If you are using Elasticsearch version 1.2 you have also to install groovy as a plugin. To install the plugin just run
96
120
the following command in the root folder of your elastic:
97
121
98
122
```
@@ -157,11 +181,11 @@ If you use multiple client configurations, please change the *default* key just
157
181
158
182
## Doing Arbitrary Queries
159
183
160
-
We'll first show how to do arbitrary ElasticSearch Queries in TypoScript. This is a more powerful
184
+
We'll first show how to do arbitrary Elasticsearch Queries in TypoScript. This is a more powerful
161
185
alternative to FlowQuery. In the long run, we might be able to integrate this API back into FlowQuery,
162
186
but for now it works well as-is.
163
187
164
-
Generally, ElasticSearch queries are done using the `Search` Eel helper. In case you want
188
+
Generally, Elasticsearch queries are done using the `Search` Eel helper. In case you want
165
189
to retrieve a *list of nodes*, you'll generally do:
166
190
```
167
191
nodes = ${Search.query(site)....execute()}
@@ -189,17 +213,17 @@ Furthermore, the following operators are supported:
189
213
*`lessThan('propertyName', value)` -- range filter with property values less than the given value
190
214
*`lessThanOrEqual('propertyName', value)` -- range filter with property values less than or equal to the given value
191
215
*`sortAsc('propertyName')` and `sortDesc('propertyName')` -- can also be used multiple times, e.g. `sortAsc('tag').sortDesc(`date')` will first sort by tag ascending, and then by date descending.
192
-
*`limit(5)` -- only return five results. If not specified, the default limit by ElasticSearch applies (which is at 10 by default)
216
+
*`limit(5)` -- only return five results. If not specified, the default limit by Elasticsearch applies (which is at 10 by default)
193
217
*`from(5)` -- return the results starting from the 6th one
194
218
*`fulltext(...)` -- do a query_string query on the Fulltext Index
195
219
196
-
Furthermore, there is a more low-level operator which can be used to add arbitrary ElasticSearch filters:
220
+
Furthermore, there is a more low-level operator which can be used to add arbitrary Elasticsearch filters:
197
221
198
222
*`queryFilter("filterType", {option1: "value1"})`
199
223
200
224
In order to debug the query more easily, the following operation is helpful:
201
225
202
-
*`log()` log the full query on execution into the ElasticSearch log (i.e. in `Data/Logs/ElasticSearch.log`)
226
+
*`log()` log the full query on execution into the Elasticsearch log (i.e. in `Data/Logs/ElasticSearch.log`)
If you want to index attachments, you need to install the [ElasticSearch Attachment Plugin](https://github.com/elastic/elasticsearch-mapper-attachments).
523
+
If you want to index attachments, you need to install the [Elasticsearch Attachment Plugin](https://github.com/elastic/elasticsearch-mapper-attachments).
500
524
Then, you can add the following to your `Settings.yaml`:
501
525
502
526
```
@@ -517,7 +541,7 @@ TYPO3:
517
541
indexing: ${Indexing.indexAsset(value)}
518
542
```
519
543
520
-
## Configurable ElasticSearch Mapping
544
+
## Configurable Elasticsearch Mapping
521
545
522
546
(included in version >= 2.1)
523
547
@@ -562,14 +586,14 @@ in the NodeTypes.yaml. Generally this works by defining the global mapping at `[
562
586
563
587
In order to understand what's going on, the following commands are helpful:
564
588
565
-
* use `./flow nodeindex:showMapping` to show the currently defined ElasticSearch Mapping
566
-
* use the `.log()` statement inside queries to dump them to the ElasticSearch Log
589
+
* use `./flow nodeindex:showMapping` to show the currently defined Elasticsearch Mapping
590
+
* use the `.log()` statement inside queries to dump them to the Elasticsearch Log
567
591
* the logfile `Data/Logs/ElasticSearch.log` contains loads of helpful information.
568
592
569
593
570
594
## Version 2 vs Version 1
571
595
572
-
* Version 1 is the initial, productive version of the Neos ElasticSearch adapter.
596
+
* Version 1 is the initial, productive version of the Neos Elasticsearch adapter.
573
597
* Version 2 has a dependency on TYPO3.TYPO3CR.Search; which contains base functionality
574
598
which is also relevant for other search implementations (like the SQLite based SimpleSearch).
0 commit comments