Browse Source

Index both notice 'verb' and 'type'

Chimo 1 year ago
parent
commit
66bd973fb2
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      lib/ElasticSearch.php

+ 5
- 1
lib/ElasticSearch.php View File

@@ -43,6 +43,9 @@ class ElasticSearch extends SearchEngine
43 43
                     'text' => [
44 44
                         'type' => 'string'
45 45
                     ],
46
+                    'verb' => [
47
+                        'type' => 'string'
48
+                    ],
46 49
                     'type' => [
47 50
                         'type' => 'string'
48 51
                     ],
@@ -177,7 +180,8 @@ class ElasticSearch extends SearchEngine
177 180
             'body' => [
178 181
                 'author' => $webfinger,
179 182
                 'text' => $notice->content,
180
-                'type' => $notice->getVerb(true),
183
+                'verb' => $notice->getVerb(true),
184
+                'type' => $object_type,
181 185
                 'created' => $notice->created
182 186
             ]
183 187
         ];

Loading…
Cancel
Save