Slide 1

Slide 1 text

Neos Elasticsearch

Slide 2

Slide 2 text

Daniel Lienert • Software Architect
 @ punkt.de / Karlsruhe • Neos Core Team Member • @dlienert

Slide 3

Slide 3 text

Flowpack. ElasticSearch. ContentRepositoryAdaptor

Slide 4

Slide 4 text

1. Why you want to use it 2. What it provides 3. Whats new in version 7 4. Packages around the CR Adapter

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

Search

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

Flowpack.SearchPlugin

Slide 10

Slide 10 text

Amazon S3 H1 Amazon S3 H3 Amazon S3 H… Amazon S3 text Amazon S3 H2

Slide 11

Slide 11 text

Fulltext Indexing

Slide 12

Slide 12 text

Custom result rendering

Slide 13

Slide 13 text

Query Data

Slide 14

Slide 14 text

FlowQuery

Slide 15

Slide 15 text

Find And Filter

Slide 16

Slide 16 text

Sort And Limit

Slide 17

Slide 17 text

Elasticsearch

Slide 18

Slide 18 text

Find And Filter

Slide 19

Slide 19 text

Sort And Limit

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

Aggregations

Slide 22

Slide 22 text

Aggregations

Slide 23

Slide 23 text

Elasticsearch Contentrepository Adapter v7

Slide 24

Slide 24 text

Compatible to Elasticsearch 6.x and 7.x

Slide 25

Slide 25 text

Version 5.6 not longer supported Version EOL Date 5.6.x 2019-03-11 6.8.x 2020-11-20 7.6.x 2021-08-11

Slide 26

Slide 26 text

Removal of mapping types Flow Classname Neos NodeType _type

Slide 27

Slide 27 text

Elasticsearch Data Storage - History Elasticsearch v1 Index 1 Index 2 Type A Type B Type A Type … field_a: integer field_a: string

Slide 28

Slide 28 text

Elasticsearch Data Storage - History Elasticsearch > v2 Index 1 Index 2 Type A Type B Type A Type … field_a: integer field_a: integer

Slide 29

Slide 29 text

Removal of mapping types Elasticsearch > v6 Index 1 Index 2 field_a: integer field_a: integer field_a: string field_a: string

Slide 30

Slide 30 text

Flow Classname Neos NodeType neos_type Removal of mapping types

Slide 31

Slide 31 text

One Index per Dimension Combination

Slide 32

Slide 32 text

1. Language Specific Analyzer and Filter 2. Language Specific StopWords 3. Indexes are easier to maintain

Slide 33

Slide 33 text

As before. Same configuration apply to all indices

Slide 34

Slide 34 text

Configure every dimension index separately

Slide 35

Slide 35 text

Caution: The configurations are not merged

Slide 36

Slide 36 text

Index Names until v6 Pattern: - Example neoscr-1586069025 Alias neoscr -> neoscr-1586069025

Slide 37

Slide 37 text

Index Names v7 Pattern: -- Example •neoscr-4f534b1eb0c1a785da31e681fb5e91ff-1586069025 •neoscr-0359ed5c416567b8bc2e5ade0f277b36-1586069025 Alias neoscr-0359ed5c416567b8bc2e5ade0f277b36 -> neoscr-0359ed5c416567b8bc2e5ade0f277b36-1586069025

Slide 38

Slide 38 text

Show Dimension to Index Mapping ./flow nodeindexmaping:indices

Slide 39

Slide 39 text

Exclude NodeTypes from Indexing

Slide 40

Slide 40 text

Configuration per NodeType

Slide 41

Slide 41 text

Show Indexable Configuration ./flow nodetype:showIndexableConfiguration

Slide 42

Slide 42 text

Index build steps / parts are executed in isolated subcommands

Slide 43

Slide 43 text

Isolated index build steps

Slide 44

Slide 44 text

New commands help debugging

Slide 45

Slide 45 text

Test fulltext search ./flow search:fulltext

Slide 46

Slide 46 text

Show what has been indexed ./flow search:viewnode [] [<field>]

Slide 47

Slide 47 text

Show what has been indexed ./flow search:viewnode [] [<field>]

Slide 48

Slide 48 text

Elasticsearch Packages

Slide 49

Slide 49 text

Queue Indexer

Slide 50

Slide 50 text

Slicer Worker Worker Worker Worker Work

Slide 51

Slide 51 text

No content

Slide 52

Slide 52 text

Flowpack.ElasticSearch.ContentRepositoryQueueIndexer

Slide 53

Slide 53 text

Elastic Sync

Slide 54

Slide 54 text

Elasticsearch Neos Neos Local Elasticsearch Staging

Slide 55

Slide 55 text

No content

Slide 56

Slide 56 text

PunktDe.Elastic.Sync

Slide 57

Slide 57 text

Asset Usage

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

PunktDe.Elastic.AssetUsageInNodes

Slide 60

Slide 60 text

@dlienert daniellienert