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: README.md
+45-39Lines changed: 45 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,24 +29,30 @@ Finally, run `./flow nodeindex:build`, and add the search plugin to your page. I
29
29
30
30
## Elastic version support
31
31
32
-
**HINT: the Master of this package only supports modern versions of ES. If you need ES 1.x or 2.x support, please [see the 4.x branch of this repository](https://github.com/Flowpack/Flowpack.ElasticSearch.ContentRepositoryAdaptor/tree/4.0#elastic-version-support).**
32
+
**HINT: this package only supports modern versions of Elasticsearch. If you need 1.x or 2.x support, please [see the 4.x branch of this repository](https://github.com/Flowpack/Flowpack.ElasticSearch.ContentRepositoryAdaptor/tree/4.0#elastic-version-support).**
33
33
34
-
You can switch the Elastic driver by editing ```Settings.yaml```
35
-
(```Flowpack.ElasticSearch.ContentRepositoryAdaptor.driver.version```) with the following value:
34
+
You can switch the Elasticsearch driver by editing `Settings.yaml`
35
+
(`Flowpack.ElasticSearch.ContentRepositoryAdaptor.driver.version`) with the following value:
36
36
37
-
*```5.x``` to support Elastic 5.x
37
+
*`5.x` to support Elasticsearch 5.x
38
38
39
39
_Currently the Driver interfaces are not marked as API, and can be changed to adapt to future needs._
40
40
41
-
**Note:** When using Elasticsearch 5.x changes to the types may need to be done in your mapping.
42
-
More information on the [mapping in ElasticSearch 5.x](Documentation/ElasticMapping-5.x.md).
@@ -531,7 +537,7 @@ This configuration contains two parts:
531
537
specified. It has access to the current `value` and the current `node`.
532
538
533
539
Example (from the default configuration):
534
-
```
540
+
```yaml
535
541
# Settings.yaml
536
542
Neos:
537
543
ContentRepository:
@@ -545,7 +551,7 @@ Neos:
545
551
indexing: '${value}'
546
552
```
547
553
548
-
```
554
+
```yaml
549
555
# NodeTypes.yaml
550
556
'Neos.Neos:Timable':
551
557
properties:
@@ -581,7 +587,7 @@ the standard indexing configuration:
581
587
In order to enable fulltext indexing, every `Document` node must be configured as *fulltext root*. Thus,
582
588
the following is configured in the default configuration:
583
589
584
-
```
590
+
```yaml
585
591
'Neos.Neos:Document':
586
592
search:
587
593
fulltext:
@@ -596,7 +602,7 @@ in `NodeTypes.yaml` at `properties.[propertyName].search.fulltextExtractor`.
596
602
597
603
An example:
598
604
599
-
```
605
+
```yaml
600
606
'Neos.Neos.NodeTypes:Text':
601
607
properties:
602
608
'text':
@@ -621,7 +627,7 @@ An example:
621
627
As a default, Elasticsearch indexes dates in the UTC Timezone. In order to have it index using the timezone
622
628
currently configured in PHP, the configuration for any property in a node which represents a date should look like this:
623
629
624
-
```
630
+
```yaml
625
631
'My.Blog:Post':
626
632
properties:
627
633
date:
@@ -650,7 +656,7 @@ For more information on Elasticsearch's Date Formats,
650
656
If you want to index attachments, you need to install the [Elasticsearch Attachment Plugin](https://github.com/elastic/elasticsearch-mapper-attachments).
651
657
Then, you can add the following to your `Settings.yaml`:
652
658
653
-
```
659
+
```yaml
654
660
Neos:
655
661
ContentRepository:
656
662
Search:
@@ -674,7 +680,7 @@ If you want to fine-tune the indexing and mapping on a more detailed level, you
674
680
675
681
First, configure the index settings as you need them, e.g. configuring analyzers:
676
682
677
-
```
683
+
```yaml
678
684
Flowpack:
679
685
ElasticSearch:
680
686
indexes:
@@ -697,7 +703,7 @@ Flowpack:
697
703
Then, you can change the analyzers on a per-field level; or e.g. reconfigure the _all field with the following snippet
698
704
in the NodeTypes.yaml. Generally this works by defining the global mapping at `[nodeType].search.elasticSearchMapping`:
699
705
700
-
```
706
+
```yaml
701
707
'Neos.Neos:Node':
702
708
search:
703
709
elasticSearchMapping:
@@ -719,7 +725,7 @@ If you need to run serveral (different) neos instances on the same elasticsearch
719
725
720
726
So `./flow nodeindex:build` or `./flow nodeindex:cleanup` won't overwrite your other sites index.
721
727
722
-
```
728
+
```yaml
723
729
Neos:
724
730
ContentRepository:
725
731
Search:
@@ -755,4 +761,4 @@ In order to understand what's going on, the following commands are helpful:
755
761
3. Replace `ElasticSeach.fulltext` by `Indexing`
756
762
4. Search for `ElasticSearch.` (inside the `indexing` expressions) and replace them by `Indexing.`
757
763
758
-
Created by Sebastian Kurfürst; [contributions by Karsten Dambekalns, Robert Lemke and others](https://github.com/Flowpack/Flowpack.ElasticSearch.ContentRepositoryAdaptor/graphs/contributors).
764
+
Created by [Sebastian Kurfürst; contributions by Karsten Dambekalns, Robert Lemke and others](https://github.com/Flowpack/Flowpack.ElasticSearch.ContentRepositoryAdaptor/graphs/contributors).
0 commit comments