@magicpages/ghost-typesense-cli 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -35,9 +35,11 @@ Minimal configuration:
|
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
The tool comes with default field configurations optimized for Ghost CMS. These include:
|
|
38
|
-
- Required fields: `id`, `title`, `url`, `slug`, `html`, `excerpt`, `published_at`, `updated_at`
|
|
38
|
+
- Required fields: `id`, `title`, `url`, `slug`, `html`, `plaintext`, `excerpt`, `published_at`, `updated_at`
|
|
39
39
|
- Optional fields: `feature_image`, `tags`, `authors`
|
|
40
40
|
|
|
41
|
+
The `plaintext` field is automatically generated from HTML content if not provided by Ghost, ensuring better search quality.
|
|
42
|
+
|
|
41
43
|
You can override or add additional fields by specifying them in the config:
|
|
42
44
|
|
|
43
45
|
```json
|
|
@@ -46,6 +48,7 @@ You can override or add additional fields by specifying them in the config:
|
|
|
46
48
|
"name": "ghost",
|
|
47
49
|
"fields": [
|
|
48
50
|
{ "name": "title", "type": "string", "index": true, "sort": true },
|
|
51
|
+
{ "name": "plaintext", "type": "string", "index": true },
|
|
49
52
|
{ "name": "custom_field", "type": "string", "optional": true }
|
|
50
53
|
]
|
|
51
54
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magicpages/ghost-typesense-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "CLI tool for managing Ghost content in Typesense",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"typecheck": "tsc --noEmit"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@magicpages/ghost-typesense-config": "^1.
|
|
23
|
-
"@magicpages/ghost-typesense-core": "^1.
|
|
22
|
+
"@magicpages/ghost-typesense-config": "^1.6.0",
|
|
23
|
+
"@magicpages/ghost-typesense-core": "^1.6.0",
|
|
24
24
|
"chalk": "^5.3.0",
|
|
25
25
|
"commander": "^12.0.0",
|
|
26
26
|
"ora": "^8.0.1"
|