Skip to content

Commit f656b5d

Browse files
authored
add body field to file content indexing docs (#21)
1 parent bfa29a2 commit f656b5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ SEARCH_INDEX_FILES=1
118118

119119
Silverstripe Search supports content extraction for many different file types. These can be attached to your Documents using an `_attachment` field of type `binary`.
120120

121-
This field needs to contain a base 64 encoded string of binary for the file you wish to process.
121+
This field needs to contain a base 64 encoded string of binary for the file you wish to process. You should also define the special `body` field with type `text` which will automatically be created to store the extracted file content.
122122

123123
```yaml
124124
SilverStripe\Forager\Service\IndexConfiguration:
@@ -128,6 +128,7 @@ SilverStripe\Forager\Service\IndexConfiguration:
128128
SilverStripe\Assets\File:
129129
fields:
130130
title: true
131+
body: true # this is the field that will contain the extract content
131132
_attachment:
132133
property: getBase64String
133134
options:

0 commit comments

Comments
 (0)