Skip to content

Commit 31de58d

Browse files
committed
[TASK] add documentation on how assets fulltexts can be indexed
Note: You need the most up-to-date version of TYPO3.TYPO3CR.Search which is: neos/content-repository-search@9e0aac4
1 parent 69b905e commit 31de58d

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,30 @@ For more information on ElasticSearch's Date Formats,
377377
[click here](http://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-date-format.html).
378378

379379

380+
## Working with Assets / Attachments
381+
382+
If you want to index attachments, you need to install the [ElasticSearch Attachment Plugin](https://github.com/elastic/elasticsearch-mapper-attachments).
383+
Then, you can add the following to your `Settings.yaml`:
384+
385+
```
386+
TYPO3:
387+
TYPO3CR:
388+
Search:
389+
defaultConfigurationPerType:
390+
'TYPO3\Media\Domain\Model\Asset':
391+
elasticSearchMapping:
392+
type: attachment
393+
include_in_all: true
394+
indexing: ${Indexing.indexAsset(value)}
395+
396+
'array<TYPO3\Media\Domain\Model\Asset>':
397+
elasticSearchMapping:
398+
type: attachment
399+
include_in_all: true
400+
indexing: ${Indexing.indexAsset(value)}
401+
```
402+
403+
380404
## Debugging
381405

382406
In order to understand what's going on, the following commands are helpful:

0 commit comments

Comments
 (0)